<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Good News & bad News (for me it is still bad News).....I took care of the complaint about "Undefined subroutine &RT::LoadConfig()", by placing all of the following lines in a single file (i.e., replace_password.pl), and executing the following code from the command line (I simply replaced the command-line portion "-MRT -MRT::User" with a single line of "use RT;" in the following code):<div><br></div><div>1) code:</div><div>======</div><div><div>#!/usr/bin/perl -w</div><div><br></div><div>use lib '/usr/local/src/oppresso/rt-3.8.4/lib';</div><div>use lib '/ngs/app/rt/oppresso/rt-3.8.4/lib';</div><div>use lib '/ngs/app/rt/oppresso/rt-3.8.4/local/plugins/RT-FM/lib';<span class="Apple-tab-span" style="white-space:pre"> </span>#if using RTFM</div><div>use lib '/ngs/app/rt/oppresso/rt-3.8.4/local/plugins/RT-IR/lib';<span class="Apple-tab-span" style="white-space:pre"> </span>#if using RTIR</div><div>use RT;</div><div><br></div><div>RT::LoadConfig();</div><div>RT::Init();</div><div><br></div><div>my $u = RT::User->new($RT::SystemUser);</div><div>$u->Load("root");</div><div>$u->setPassword("secret");</div></div><div><br></div><div><br></div><div><br></div><div>2) Executing it:</div><div>============</div><div><div>$sudo ./replace_password.pl </div><div><br></div><div>Change of config option 'MaxInlineBody' at /ngs/app/rt/oppresso/rt-3.8.4/local/plugins/RT-IR/etc/RTIR_Config.pm line 13 has been ignored. It's may be ok, but we want you to be aware. This option earlier has been set in /ngs/app/rt/oppresso/rt-3.8.4/etc/RT_SiteConfig.pm line 152. at /ngs/app/rt/oppresso/rt-3.8.4/lib/RT/Config.pm line 738.</div><div>Change of config option 'Active_MakeClicky' at /ngs/app/rt/oppresso/rt-3.8.4/local/plugins/RT-IR/etc/RTIR_Config.pm line 263 has been ignored. It's may be ok, but we want you to be aware. This option earlier has been set in /ngs/app/rt/oppresso/rt-3.8.4/etc/RT_SiteConfig.pm line 186. at /ngs/app/rt/oppresso/rt-3.8.4/lib/RT/Config.pm line 738.</div><div><br></div><div><br></div></div><div>3) Assumptions:</div><div>=============</div><div><br></div><div>I am assuming the above lines (per <a href="http://wiki.bestpractical.com/view/RecoverRootPassword)">http://wiki.bestpractical.com/view/RecoverRootPassword)</a> are sufficient.</div><div> </div><div><br></div><div>4)Results:</div><div>========</div><div>I did not get any other warnings (or error messages), which was good. However, I still can not log back in (using root) from the UI. The above warnings I received were trivial, so I am ignoring them.</div><div><br></div><div><br></div><div>Help please.</div><div><br></div><div><br></div><div>-Behzad</div><div><br><div><div>On Sep 25, 2009, at 1:58 PM, Behzad Mahini wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Since I had installed RT-FM & RT-IR, ...at the command line using the Perl command I decided to include the paths to RT-FM & RT-IR libraries (Plugins), and the error message changed (from what I had sent earlier) to the following:<div><br></div><div><br></div><div><div><div>$sudo perl -I/usr/local/src/oppresso/rt-3.8.4/lib -I/ngs/app/rt/oppresso/rt-3.8.4/lib -I/ngs/app/rt/oppresso/rt-3.8.4/local/plugins/RT-FM/lib -I/ngs/app/rt/oppresso/rt-3.8.4/local/plugins/RT-IR/lib -e 'RT::LoadConfig(); RT::Init(); my $u = RT::User->new($RT::SystemUser); $u->Load("root"); $u->setPassword("<my_secret_pass>")'</div><div><br></div><div>Undefined subroutine &RT::LoadConfig called at -e line 1.</div></div><div><br></div><div><br></div><div>So, without Including the path to Plugins, it complains about "RT/FM.pm" which was missing in the Included paths I had the first round, and I addressed it above, but it now complains about "RT::LoadConfig()", which it should be able to grab from:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>/my_above_path_2_RT/lib/RT.pm ........(<<sub LoadConfig {require RT::Config .........} >> </div><div><span class="Apple-tab-span" style="white-space:pre"> </span>& /my_above_path_2_RT/RT/Config.pm</div><div><br></div><div><br></div><div>So, why is complaining?</div><div><br></div><div>Thanks,</div><div>Behzad</div><div><div>On Sep 25, 2009, at 10:47 AM, Behzad Mahini wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">..I also looked at the real mysql log file (i.e., " <serverName>.err"), and that did not reveal any worthy information, besides its timestamp was also as of Aug 30th (again way before my password problem of last night).<div><br></div><div>-Behzad<br><div><div>On Sep 25, 2009, at 10:25 AM, Behzad Mahini wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>1) Systemlog & MySQL log points:</div><div>==========================</div>system.log file:<div><br></div><div>RT[350]: FAILED LOGIN for root from xx.xx.xx.xx (/some_dir_xx//share/html/autohandler:268)</div><div>..<<which is saying the same thing that my Apache error_log indicated>></div><div><br></div><div><br></div><div>Mysql log files:</div><div>The only log files that I have for MySQL are binary log files and they are:</div><div><br></div><div>mysql-bin.xxx0</div><div>mysql-bin.xxx1</div><div>...</div><div><br></div><div>and </div><div>ib_logfile0</div><div>ib_logfile1</div><div><br></div><div>..and timestamp associated to these ar as of Aug 30, 2009 (which way before I started having my password problem of yesterday!)</div><div><br></div><div>2) I rebooted my box, in the hopes of it clearing up some item that I am not aware of -- that did not do any good</div><div>===============================================================</div><div><br></div><div>3) Using the "RecoverRootPassword" Wiki page, I tried to change my password at the command/Perl level:</div><div>==================================================================================</div><div><br></div><div><span class=" argument-content"><pre>perl -I/opt/rt3/local/lib -I/opt/rt3/lib \
-MRT -MRT::User \
-e'RT::LoadConfig();RT::Init(); my $u = RT::User->new($RT::SystemUser); $u->Load("root"); $u->SetPassword("secret")'</pre></span></div><div>that did not help either, and I got the following complaint:</div><div><br></div><div><!--StartFragment--><p class="MsoNormal"><span style="font-size:8.0pt;mso-bidi-font-size:12.0pt">Change of config option 'MaxInlineBody' at /ngs/app/rt/oppresso/rt-3.8.4/local/plugins/RT-IR/etc/RTIR_Config.pm line 13 has been ignored. It's may be ok, but we want you to be aware. This option earlier has been set in /ngs/app/rt/oppresso/rt-3.8.4/etc/RT_SiteConfig.pm line 152. at /usr/local/src/oppresso/rt-3.8.4/lib/RT/Config.pm line 738.<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:8.0pt;mso-bidi-font-size:12.0pt">Change of config option 'Active_MakeClicky' at /ngs/app/rt/oppresso/rt-3.8.4/local/plugins/RT-IR/etc/RTIR_Config.pm line 263 has been ignored. It's may be ok, but we want you to be aware. This option earlier has been set in /ngs/app/rt/oppresso/rt-3.8.4/etc/RT_SiteConfig.pm line 186. at /usr/local/src/oppresso/rt-3.8.4/lib/RT/Config.pm line 738.<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:8.0pt;mso-bidi-font-size:12.0pt">[Fri Sep 25 16:59:45 2009] [crit]: Can't locate RT/FM.pm in @INC (@INC contains: /usr/local/src/oppresso/rt-3.8.4/lib /ngs/app/rt/oppresso/rt-3.8.4/lib /Library/Perl/Updates/5.8.8/darwin-thread-multi-2level /Library/Perl/Updates/5.8.8 /System/Library/Perl/5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6 /Library/Perl/5.8.1 .) at /usr/local/src/oppresso/rt-3.8.4/lib/RT.pm line 627. (/usr/local/src/oppresso/rt-3.8.4/lib/RT.pm:377)<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:8.0pt;mso-bidi-font-size:12.0pt">Can't locate RT/FM.pm in @INC (@INC contains: /usr/local/src/oppresso/rt-3.8.4/lib /ngs/app/rt/oppresso/rt-3.8.4/lib /Library/Perl/Updates/5.8.8/darwin-thread-multi-2level /Library/Perl/Updates/5.8.8 /System/Library/Perl/5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6 /Library/Perl/5.8.1 .) at /usr/local/src/oppresso/rt-3.8.4/lib/RT.pm line 627.<o:p></o:p></span></p> <!--EndFragment--> </div><div><br></div><div>-Behzad<br><div><div>On Sep 25, 2009, at 9:46 AM, Jesse Vincent wrote:</div></div></div></div></blockquote></div></div></div></blockquote></div></div></div>_______________________________________________<br><a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a><br><br>Community help: http://wiki.bestpractical.com<br>Commercial support: sales@bestpractical.com<br><br><br>Discover RT's hidden secrets with RT Essentials from O'Reilly Media. <br>Buy a copy at http://rtbook.bestpractical.com</blockquote></div><br></div></body></html>