Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #103051

Re: Weird and sparese cgi:error

Newsgroups comp.lang.python
Date 2016-02-17 05:47 -0800
References <813cd989-bc60-4d24-96ef-f20244d91362@googlegroups.com>
Message-ID <a0be3911-299e-4647-abca-3ed1f7acd453@googlegroups.com> (permalink)
Subject Re: Weird and sparese cgi:error
From Jeremy Leonard <jrmy.lnrd@gmail.com>

Show all headers | View raw


On Tuesday, February 16, 2016 at 3:02:40 PM UTC-5, Φώντας Λαδοπρακόπουλος wrote:
> Hello,
> 
> I recentely changed VPS server and when i try to load my webiste iam receiving 500 error which i wasnt receiving in my old VPS server with the same exact cgi scripts.
> 
> After looking at Apacher's error_log iam seeing the following output when i try to load scripts from cgi-bin directory.
> 
> 
> [Tue Feb 16 21:28:55.970302 2016] [cgi:error] [pid 17478] [client 180.76.15.28:21311] End of script output before headers: metrites.py
> [Tue Feb 16 21:29:31.193281 2016] [cgi:error] [pid 18802] [client 180.76.15.29:34155] End of script output before headers: metrites.py
> [Tue Feb 16 21:32:21.306627 2016] [cgi:error] [pid 17478] [client 188.138.124.110:40212] End of script output before headers: metrites.py
> [Tue Feb 16 21:37:21.128472 2016] [cgi:error] [pid 19731] [client 204.152.200.42:54376] End of script output before headers: metrites.py
> [Tue Feb 16 21:42:21.198207 2016] [cgi:error] [pid 17478] [client 184.75.210.226:57252] End of script output before headers: metrites.py
> [Tue Feb 16 21:47:21.228361 2016] [cgi:error] [pid 19731] [client 76.72.172.208:34730] End of script output before headers: metrites.py
> [Tue Feb 16 21:52:21.422066 2016] [cgi:error] [pid 18802] [client 85.17.156.11:52071] End of script output before headers: metrites.py
> 
> 
> Please i need your assistance to this.
> thank you.Prob

If you import the cgitb module and then put cgitb.enable() in the first line of your code this can help give you more descriptive error messages on the page that is producing the errors

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Weird and sparese cgi:error Φώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com> - 2016-02-16 12:02 -0800
  Re: Weird and sparese cgi:error Jeremy Leonard <jrmy.lnrd@gmail.com> - 2016-02-17 05:47 -0800
    Re: Weird and sparese cgi:error Chris Angelico <rosuav@gmail.com> - 2016-02-18 00:53 +1100
      Re: Weird and sparese cgi:error Φώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com> - 2016-02-18 06:47 -0800
    Re: Weird and sparese cgi:error Φώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com> - 2016-02-18 06:45 -0800

csiph-web