Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Problem with program

by joeg0812 (Initiate)
on Jan 03, 2013 at 15:45 UTC ( #1011476=perlquestion: print w/ replies, xml ) Need Help??
joeg0812 has asked for the wisdom of the Perl Monks concerning the following question:

Started getting this error below after a power failure. Have restarted all the procedures that I know, but can't get into my stuff. Maybe someone can decipher what is going on. Any help would be greatly appreciated. Not a tech guy.
----------------------------------
System error
error: __utma=203874504.918123167.1351114000.1352676410.1355952549.7; __utmz=203874504.1351114000.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none) at /usr/lib/perl5/site_perl/5.8.5/Apache/Session/Generate/MD5.pm line 40.
context: ...
36:
37: my $session = shift;
38:
39: if ($session->{data}->{_session_id} !~ /^a-fA-F0-9+$/) {
40: die $session->{data}->{_session_id};
41: }
42: }
43:
44: 1;
...
code stack: /usr/lib/perl5/site_perl/5.8.5/Apache/Session/Generate/MD5.pm:40
/usr/lib/perl5/site_perl/5.8.5/Apache/Session.pm:400
/usr/lib/perl5/site_perl/AuthDirect/Session.pm:54
/www/login.izones.net/htdocs/autohandler:10
raw error
-----------------------------------
clicking on the 'raw error' gives:
__utma=203874504.918123167.1351114000.1352676410.1355952549.7; __utmz= +203874504.1351114000.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none +) at /usr/lib/perl5/site_perl/5.8.5/Apache/Session/Generate/MD5.pm li +ne 40. Trace begun at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Exceptions.pm + line 131 HTML::Mason::Exceptions::rethrow_exception('__utma=203874504.918123167 +.1351114000.1352676410.1355952549.7; __utmz=203874504.1351114000.1.1. +utmcsr=(direct)|utmccn=(direct)|utmcmd=(none) at /usr/lib/perl5/site_ +perl/5.8.5/Apache/Session/Generate/MD5.pm line 40.^J') called at /usr +/lib/perl5/site_perl/5.8.5/Apache/Session/Generate/MD5.pm line 40 Apache::Session::Generate::MD5::validate('Apache::Session::MySQL=HASH( +0x992d60c)') called at /usr/lib/perl5/site_perl/5.8.5/Apache/Session. +pm line 400 Apache::Session::TIEHASH('Apache::Session::MySQL', '__utma=203874504.9 +18123167.1351114000.1352676410.1355952549.7; __utmz=203874504.1351114 +000.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)', 'HASH(0x99535 +24)') called at /usr/lib/perl5/site_perl/AuthDirect/Session.pm line 5 +4 AuthDirect::Session::get_session at /www/login.izones.net/htdocs/autoh +andler line 10 HTML::Mason::Commands::__ANON__('_page', 'home') called at /usr/lib/pe +rl5/site_perl/5.8.5/HTML/Mason/Component.pm line 136 HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x +999d034)', '_page', 'home') called at /usr/lib/perl5/site_perl/5.8.5/ +HTML/Mason/Request.pm line 1069 eval {...} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm lin +e 1068 HTML::Mason::Request::comp(undef, undef, undef, '_page', 'home') calle +d at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 338 eval {...} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm lin +e 338 eval {...} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm lin +e 297 HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0 +x9a85324)') called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Apach +eHandler.pm line 134 eval {...} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/ApacheHandler. +pm line 134 HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::Apach +eHandler=HASH(0x9a85324)') called at /usr/lib/perl5/site_perl/5.8.5/H +TML/Mason/ApacheHandler.pm line 827 HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler +=HASH(0x99672a0)', 'Apache=SCALAR(0x99fc118)') called at (eval 34) li +ne 8 HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apa +che=SCALAR(0x99fc118)') called at /dev/null line 0 eval {...} at /dev/null line 0

Comment on Problem with program
Download Code
Re: Problem with program
by blue_cowdawg (Prior) on Jan 03, 2013 at 15:51 UTC

    First off this is not the Apache administration forum. Some sort of bad-juju happened to your Apache infrastucture and you need to work with your admin to sort it all out.

    That said, with the contextual information you have provided there still isn't much to work with here.

    my $session = shift;
    Where is this coming from? Is the MySQL database hinted at by the raw error dump up and running and sane? What's in the error logs for the server?


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
Re: Problem with program
by Anonymous Monk on Jan 03, 2013 at 20:37 UTC
    If things went weird after a power-failure then what probably happened is that the filesystem on the disk is bonkers and hasn't been repaired and therefore by now is probably far worse.
Re: Problem with program
by Anonymous Monk on Jan 03, 2013 at 20:39 UTC
    ... not a tech guy.

    Get a tech-guy, and do it rightnow.
Re: Problem with program
by CountZero (Bishop) on Jan 03, 2013 at 21:18 UTC
    It is not a perl-error. Your script died because the supplied session data is not in the correct format (it is probably empty or NULL), hence line 40 was triggered and that just died your script. It is actually a safeguard to protect against invalid session data, so Perl may have saved you from worse.

    That being said, we cannot see what caused this invalid session data: it might be a filesystem or database problem. Some network or DB-admin needs to look into it.

    Another possible "solution" is to delete all cookies for this site on your client PC and log-in again. It may reset your session and issue new session data that allows you back in. It will not solve the fact that probably your database now contains some rubbish data you may have to delete manually.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1011476]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2014-07-31 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (248 votes), past polls