Question
Hi,
After upgrade for the last version of Twiki, (TWiki-4.1.2, Sat, 03 Mar 2007, build 13046, Plugin API version 1.11), I can register a new user but Twiki is returning a error message instead of a confirmation page. It is presenting the following:
Error registering new user
Internal error when sending email to
iaiweb@dirPLEASENOSPAM.iai.int.
Please contact postmaster_AT_dir.iai.int.
You have not been registered.
The strange part is that the user IS BEING CREATED. When looking at
TWikiUsers, the user is there. I can also access Twiki with this new account.
The point is that I can not find WHY it is showing that message. Besides that, in Apache log I can see the following:
150.163.35.22 - - [30/Mar/2007:15:57:19 -0300] "GET /twiki/bin/oops/Main/TWikiRegistration?template=oopsattention;def=registration_mail_failed;param1=iaiweb%26%2364%3bdir.iai.int;param2=ERROR:%20Exit%20code%2017152%20from%20TWiki::cfg%7bMailProgram%7d%20at%20/usr/lib/perl5/5.8.0/CGI/Carp.pm%20line%20314.%0a%09CGI::Carp::realdie('ERROR:%20Exit%20code%2017152%20from%20TWiki::cfg%7bMailProgram%7d')%20called%20at%20/usr/lib/perl5/5.8.0/CGI/Carp.pm%20line%20385%0a%09CGI::Carp::die('ERROR:%20Exit%20code%2017152%20from%20TWiki::cfg%7bMailProgram%7d')%20called%20at%20/usr/local/TWiki/lib/TWiki/Net.pm%20line%20285%0a%09TWiki::Net::_sendEmailBySendmail('TWiki::Net%3dHASH(0x9f35348)'%2c'Date:%20Fri%2c%2030%20Mar%202007%2015:57:18%20Local%5cx%7ba%7dFrom:%20Luis%20Marcelo%20Achi...')%20called%20at%20/usr/local/TWiki/lib/TWiki/Net.pm%20line%20244%0a%09TWiki::Net::__ANON__()%20called%20at%20/usr/local/TWiki/lib/CPAN/lib//Error.pm%20line%20379%0a%09eval%20%7b...%7d%20called%20at%20/usr/local/TWiki/lib/CPAN/lib//Error.pm%20line%20371%0a%09Error::subs::try('CODE(0xa373df8)'%2c'HASH(0xa40179c)')%20called%20at%20/usr/local/TWiki/lib/TWiki/Net.pm%20line%20260%0a%09TWiki::Net::sendEmail('TWiki::Net%3dHASH(0x9f35348)'%2c'From:%20Luis%20Marcelo%20Achite%20%3cpostmaster_AT_dir.iai.int%3e%5cx%7ba%7dTo:%20Ama...')%20called%20at%20/usr/local/TWiki/lib/TWiki/UI/Register.pm%20line%201178%0a%09TWiki::UI::Register::_sendEmail('TWiki%3dHASH(0x92f4c30)'%2c'registerconfirm'%2c'HASH(0xa221278)')%20called%20at%20/usr/local/TWiki/lib/TWiki/UI/Register.pm%20line%20446%0a%09TWiki::UI::Register::_requireVerification('TWiki%3dHASH(0x92f4c30)'%2c'/usr/local/TWiki/data/RegistrationApprovals')%20called%20at%20/usr/local/TWiki/lib/TWiki/UI/Register.pm%20line%20392%0a%09TWiki::UI::Register::registerAndNext('TWiki%3dHASH(0x92f4c30)'%2c'/usr/local/TWiki/data/RegistrationApprovals')%20called%20at%20/usr/local/TWiki/lib/TWiki/UI/Register.pm%20line%2091%0a%09TWiki::UI::Register::register_cgi('TWiki%3dHASH(0x92f4c30)')%20called%20at%20/usr/local/TWiki/lib/TWiki/UI.pm%20line%20159%0a%09TWiki::UI::__ANON__()%20called%20at%20/usr/local/TWiki/lib/CPAN/lib//Error.pm%20line%20379%0a%09eval%20%7b...%7d%20called%20at%20/usr/local/TWiki/lib/CPAN/lib//Error.pm%20line%20371%0a%09Error::subs::try('CODE(0x92e1cc0)'%2c'HASH(0xa22041c)')%20called%20at%20/usr/local/TWiki/lib/TWiki/UI.pm%20line%20199%0a%09TWiki::UI::run('CODE(0xa03bbb4)')%20called%0a%0aToo%20many%20failures%20sending%20mail HTTP/1.1" 200 4723 "https://iaibr3.iai.int/twiki/bin/view/TWiki/TWikiRegistration" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20061208 Firefox/2.0.0.1"
I dont know what to do. Can somebody help me on this matter?
Thanks for any help on this.
Regards.
Marcelo
Environment
--
TWikiGuest - 30 Mar 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Marcelo,
chances are that your registration emails are not being sent out? Maybe the email setting got lost on upgrade?
--
SvenDowideit - 24 Apr 2007
I was about to report the same issue! It just happened to me. In my case, the problem was that the webmaster email was not set (it is on the
Mail
section of the
configure
screen).
Hope this helps
--
RafaelAlvarez - 24 Apr 2007
Closing this after more than 30 days inactivity...
--
PeterThoeny - 02 Jun 2007
I've got the same error. I didn't manage to get smtp working, so I want to rely on sendmail, but this one neither works (it says that the e-mail was sent, but I do not receive one). Can someone suggest how to set up SMTP by giving a relevant example? Thanks
--
CosSum - 12 Jul 2007
If you are seeing the same error, then the same fix as suggested by Rafael Alvarez should work for you as well! If not, please give some more details: What are your configuration settings? Does your SMTP server need a userid and password? Can you send mail by using either
Net::SMTP
or
sendmail
outside TWiki? Check the settings in
bin/configure
section "Mail and Proxies", talk to your mail server admin - and perhaps enable the flag
{SMTP}{Debug}
to get more information.
Examples won't really help since mail server setup is pretty different from installation to installation (and I don't want you to use
my server and
my password anyway).
--
HaraldJoerg - 12 Jul 2007
I have solutioned this issue by accessing the configuration -> Mail and Proxies and setting the correct mailhost to: "mail.organisation.com"; and senderhost to: "Twiki.organisation" (since the hostname of the machine is Twiki (?))
--
TWikiGuest - 13 Jul 2007
I have the same error.
In my case the warning log for TWiki was
Insecure directory in $ENV{PATH} while running with -T switch at /var/www/twiki/lib/TWiki/Net.pm line 353.
at /var/www/twiki/lib/TWiki/Net.pm line 353
TWiki::Net::_sendEmailBySendmail('TWiki::Net=HASH(0x18ceb60)', 'Date: Thu, 21 Aug 2008 10:24:08 GMT\x{a}From: TWiki Administrator...') called at /var/www/twiki/lib/TWiki/Net.pm line 316
TWiki::Net::__ANON__() called at /usr/lib/perl5/site_perl/5.8.5/Error.pm line 415
eval {...} called at /usr/lib/perl5/site_perl/5.8.5/Error.pm line 407
Error::subs::try('CODE(0x19633f0)', 'HASH(0x1963590)') called at /var/www/twiki/lib/TWiki/Net.pm line 332
TWiki::Net::sendEmail('TWiki::Net=HASH(0x18ceb60)', 'From: TWiki Administrator <rlecca@it.tiscali.com>\x{a}To:
RobertL...') called at /var/www/twiki/lib/TWiki/UI/Register.pm line 1192
TWiki::UI::Register::_sendEmail('TWiki=HASH(0x7c3880)', 'registerconfirm', 'HASH(0x1762620)') called at /var/www/twiki/lib/TWiki/UI/Register.pm line 408
TWiki::UI::Register::_requireVerification('TWiki=HASH(0x7c3880)') called at /var/www/twiki/lib/TWiki/UI/Register.pm line 339
TWiki::UI::Register::registerAndNext('TWiki=HASH(0x7c3880)') called at /var/www/twiki/lib/TWiki/UI/Register.pm line 97
TWiki::UI::Register::register_cgi('TWiki=HASH(0x7c3880)') called at /var/www/twiki/lib/TWiki/UI.pm line 159
TWiki::UI::__ANON__() called at /usr/lib/perl5/site_perl/5.8.5/Error.pm line 415
eval {...} called at /usr/lib/perl5/site_perl/5.8.5/Error.pm line 407
Error::subs::try('CODE(0x518ce0)', 'HASH(0x176ff80)') called at /var/www/twiki/lib/TWiki/UI.pm line 197
TWiki::UI::run('CODE(0x7c2ed0)', 'register', 1) called at /var/www/twiki/bin/register line 31.
Anyone knows waht this mean?
Thanks in advance.
--
RobertaLe - 21 Aug 2008