Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Weird error log message

by Nik
on Jun 09, 2009 at 15:18 UTC ( #769946=perlquestion: print w/ replies, xml ) Need Help??
Nik has asked for the wisdom of the Perl Monks concerning the following question:

Hello, i have a running perl website locally but when i upload files on my free remote hosting service(freegrece.net) and prepare databases etc., when i try to run the perl web site as follows http://tech-nikos.gr/cgi-bin/index.pl i get the error message that you see When login to my cpanel and checking the apache error log i see thw following http://img37.imageshack.us/img37/4416/errorxrg.jpg It says somethign about cannot find a customr error page, but i don't know what to do about it, and although id did sent a report mail to support they dotn help in free accounts.

i like the free remote server, its very qucik and dotn want to change it but somehow i need help of determine why it refuses to work. Maybe nto a perl related question but it holds be back on making my perl web site work so any help would be appreceitable.

Comment on Weird error log message
Re: Weird error log message
by Anonymous Monk on Jun 09, 2009 at 15:22 UTC
Re: Weird error log message
by marto (Chancellor) on Jun 09, 2009 at 15:33 UTC

    You can't just copy and paste an error message rather than ask us to view some screen shot (the domain blocked by my employers)? What have you tried to resolve the issue? Did you search the web before posting here? Perhaps paying for support is an option if you don't want to have to search for the solutions to problems?

    "Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

    This suggests to me that the ErrorDocument issue is in "Addition" to your internal server error.

    You have been posting here and on other forums for years, you know the routine, (hint: How do I post a question effectively?).

    Martin

Re: Weird error log message
by ikegami (Pope) on Jun 09, 2009 at 15:37 UTC

    All those errors are safe to ignore. The server didn't log anything about your script's failure! Your server's logging is incomplete.

    On getting a request,

    1. Your script dies (Nothing logged!!!)
    2. Your server is configured to return 500.shtml when a 500 error occurs, but you didn't create it (harmless). So the web server logs this error and generates a 404 for 500.shtml.
    3. Your server is configured to return 404.shtml when a 404 error occurs, but you didn't create it (harmless). So the web server logs this and returns the default error message.

    Since you can't rely on the server logs, you'll need to use

    use CGI::Carp qw( fatalsToBrowser );
      Thank you ikegami, now tis clear to me what the server error log mean and really i didnt knew up until now that iam supposed to specify custom error logs, i though server was setup in a way to provide fixed error messages.

      As for the Carp module i'm already using it in all my perl files, including index.pl, so i dont have to log to cpanel every time to check the error log.

      it seems to me though that the runtime of index.pl never reaches the stage of carp module. which is my 2nd line in row, because if it did i would get a proper perl error message. So i still dont see why iam gettign these error messages, which as you say are safe to ignore, and why my script dies instanly without some king of perl error message.

      When something like this happened to me *locally* it was because i didnt had a proper shebang constructor, sicne iam on a vista machine, because i uplaod to a unix one. When i fixex that it worked and gave me perl error messages, but in this case the shebang constructo is correct, so then why it aint producing perl error messages? Does the script try to run at all? anf if yes why die instantly?

        As for the Carp module i'm already using it in all my perl files, including index.pl, so i dont have to log to cpanel every time to check the error log.

        Carp is a different module. I'm assuming you mean CGI::Carp and more specifically, its fatalsToBrowser functionality.

        it seems to me though that the runtime of index.pl never reaches the stage of carp module.

        use statements are executed as soon as they are compiled, so the "runtime of index.pl" is moot.

        So i still dont see why iam gettign these error messages, which as you say are safe to ignore,

        Because the browser was told to look for those files and they don't exist.

        so then why it aint producing perl error messages? Does the script try to run at all?

        All I know is that your browser isn't logging everything it should. It should have logged an error message even if your script had died instantly (saying it couldn't find the CGI headers).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2014-09-22 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls