Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x00x05
TWiki plugins: ActionTrackerPlugin, CommentPlugin, EditTablePlugin, ExplicitNumberingPlugin, InterwikiPlugin, PreferencesPlugin, QuickCalendarPlugin, RenderListPlugin, SlideShowPlugin, SmiliesPlugin, SpreadSheetPlugin, TablePlugin, WysiwygPlugin
Server OS: Fedora Core 2, kernel 2.6.7-1.494.2.2
Web server: Apache 2.0.51
Perl version: 5.8.3
Client OS: Windows 2000
Web Browser: Firefox 2.0.0.1, Firefox 1.5
Categories: Installation, Htaccess

-- AlanDayley - 17 Jan 2007

Answer

ALERT! 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

Change status to:
Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt UpgradeEmailErrorTrace.txt r1 manage 5.0 K 2007-01-18 - 23:49 UnknownUser Longer trace 1 from "perl -d upgrade_emails.pl"
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2007-01-19 - AlanDayley
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.