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


Groups > comp.lang.python > #103052

Re: Weird and sparese cgi:error

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: Weird and sparese cgi:error
Date Thu, 18 Feb 2016 00:53:23 +1100
Lines 45
Message-ID <mailman.208.1455717207.22075.python-list@python.org> (permalink)
References <813cd989-bc60-4d24-96ef-f20244d91362@googlegroups.com> <a0be3911-299e-4647-abca-3ed1f7acd453@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-Trace news.uni-berlin.de kz3WUr1lk5EEBAjWkGuiTwHeiqZxTNXolgEDYCapxnZw==
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; '16,': 0.03; 'cc:addr :python-list': 0.09; 'scripts': 0.09; 'python': 0.10; 'subject:error': 0.11; 'output': 0.13; 'interpreter': 0.15; 'producing': 0.15; 'thu,': 0.15; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'headers:': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'scripts.': 0.16; 'skip:7 20': 0.16; 'wrote:': 0.16; 'directory.': 0.18; 'load': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'work,': 0.21; 'am,': 0.23; 'feb': 0.23; 'errors': 0.23; 'import': 0.24; 'header :In-Reply-To:1': 0.24; 'module': 0.25; 'script': 0.25; "doesn't": 0.26; 'error': 0.27; 'message-id:@mail.gmail.com': 0.27; 'this.': 0.28; 'cgi': 0.29; 'code': 0.30; "i'd": 0.31; 'maybe': 0.33; 'run': 0.33; 'changed': 0.33; 'server': 0.34; 'received:google.com': 0.35; 'execution': 0.35; 'problem.': 0.35; 'received:209.85': 0.36; 'beginning': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'skip:8 10': 0.37; 'received:209': 0.38; 'thank': 0.38; 'end': 0.39; 'hello,': 0.40; 'your': 0.60; 'more': 0.63; '500': 0.63; '8bit%:100': 0.70; 'chrisa': 0.84; 'descriptive': 0.84; 'found?': 0.84; '\xce\xa6\xcf\x8e\xce\xbd\xcf\x84\xce\xb1\xcf\x82': 0.84; 'subject::': 0.85; 'to:none': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=NlUfJPlt5x9qrBIBlLtfNfOeVREvXtOVENBLclptq6Y=; b=mGm6KIfe6SjJGrTxn+9CPzcg51Ch4SYJ2d0RfC0aCCbYzgRFXO9cyKwT+LP/QMwPa5 muCIj92Y8J8pvX895qz83fTj4lDa4OOwJzYnUzVtI5LSNmMVSZ5HJ3vvNelVJ2MjjpaK umm73R+rCkihDe/ehPi/TQRV/Hpujz7Pu01OzdK83/Bp3x2q8Liq34WLPdNqF0LzDjUJ /Bxzdddn+4MEowHW76GrYRrR305Lr4WxdKL/RTJTRdiau75VW/JWB4U6NOovk8u/sF22 imiJefWe1S1CYDWpyc+O/ujdDsdWYqKASvbd5YALBA2QL1faeUV3FT0U/10nQosiMtm8 xObA==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-type:content-transfer-encoding; bh=NlUfJPlt5x9qrBIBlLtfNfOeVREvXtOVENBLclptq6Y=; b=NiET2GZmubva6ijbuoXXLeEVDlWzAi0DDFmObLchXWPmavNUsDfsQ1EPPwnCm613I8 c3MpPF6h/yF7vk4h4drP0HgivLdOb+Ca7XSsUV3HeWnBKXoTb4k8GYCWXyWSxes1s+tL A/2Tbgtps60Y18wTxlRX1EhDGtrKzU4B72fXN0pove/XLBHyifUIfNUCRH+t3RWeiH/Z cLdsF+45EYvKAxPiQo/tkoJlJj4kpgguWxQO60hPAoI0DRK466EWFQP7JCqL+G7fcSRr uTfY32tQvBYLcW3G3SE/LUfPoxuEMZM98E5NlHHUoPo/a8X0pBUMtBeK5oLs8HSMBwff UWJQ==
X-Gm-Message-State AG10YOTGajPKQ9PonknZBSlNU6z8BCNRNrvuY96wiWBDmsHLjx1OLuW9WiCM7eEHufxRayXD5prMHEjoKiXSgg==
X-Received by 10.50.30.2 with SMTP id o2mr18168653igh.13.1455717203615; Wed, 17 Feb 2016 05:53:23 -0800 (PST)
In-Reply-To <a0be3911-299e-4647-abca-3ed1f7acd453@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21rc2
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:103052

Show key headers only | View raw


On Thu, Feb 18, 2016 at 12:47 AM, Jeremy Leonard <jrmy.lnrd@gmail.com> wrote:
> 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
>

And if that doesn't work, I'd look at the very beginning of code
execution - can the Python interpreter even be found? What happens if
you run one of the scripts from a shell? Maybe there's a shebang
problem.

ChrisA

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