Question
I am having nothing but problems running the
tools/upgrade_emails.pl script. It hangs on a user. Ctl-C out of it and run again and it will pass that user and hang on the next or maybe the next after that. In any case, I see no changes to the
data/.htpasswd file, if that is where the email addresses are secreted to.
I now have it hanging solidly on one user. Stumbling around, I found the Perl
-d switch and stepped through the users to the one that hangs. Pressing enter at that hang gave me the following report (user name changed to protect the innocent):
DB<1> n
TWiki::User::setEmails(/home/httpd/twiki/lib/TWiki/User.pm:346):
346: return $passwordHandler->setEmails($this->{login}, @_);
DB<1> n
at /home/httpd/twiki/lib/CPAN/lib///Error.pm line 150
Error::throw('Error::Simple=HASH(0xa86a958)') called at /home/httpd/twiki/lib/TWiki/Store.pm line 870
TWiki::Store::saveTopic('TWiki::Store=HASH(0xa46d0d8)','TWiki::User=HASH(0xa67e614)','Main','FailingUser','---+FailingUser\x{a} * Email: FailUser@example.com\x{a} * Internal...','TWiki::Meta=HASH(0xaa25400)') called at /home/httpd/twiki/lib/TWiki/Users/Password.pm line 239
TWiki::Users::Password::setEmails('TWiki::Users::Password=HASH(0xa563f5c)','FailingUser','FailUser@example.com') called at /home/httpd/twiki/lib/TWiki/User.pm line 346
TWiki::User::setEmails('TWiki::User=HASH(0xa67e614)','FailUser@example.com') called at ./upgrade_emails.pl line 56
Debugged program terminated. Use q to quit or R to restart,
use O inhibit_exit to avoid stopping after program termination,
h q, h R or h O to get additional info.
DB<1>
During this process I have set all file permissions to 666 and re-chown-ed them to the Apache server user and group. I am running the
upgrade_emails.pl script as user root in the tools directory. Oh, and I had to change line 29 to
require the specific path to setlib.cfg.
I'd like to get emails working on this upgraded installation. What more can I do help you help me get past this issue?
I have a more detailed trace by judicious use of the 's' and 'n' Perl debugger commands. I think it is at "the spot" were the problem occurs. It too long to drop in here so please see the
UpgradeEmailErrorTrace.txt.
I'm reluctant to dive in further here since my Perl skills are very low. Any help that can be provided is greatly appreciated!
--
AlanDayley - 18 Jan 2007
Environment
--
AlanDayley - 17 Jan 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.
With some help on the
TWikiIRC channel, my issue is "solved." I added the email addresses to the
data/.htpasswd file manually. This is not really a solution to the problem but it achieves the needed result.
--
AlanDayley - 19 Jan 2007