Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 76035 invoked from network); 25 Jul 2008 18:38:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jul 2008 18:38:13 -0000 Received: (qmail 68702 invoked by uid 500); 25 Jul 2008 18:38:12 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 68673 invoked by uid 500); 25 Jul 2008 18:38:12 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 68662 invoked by uid 99); 25 Jul 2008 18:38:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jul 2008 11:38:11 -0700 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,URIBL_RHS_DOB X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lgastako@gmail.com designates 64.233.166.177 as permitted sender) Received: from [64.233.166.177] (HELO py-out-1112.google.com) (64.233.166.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jul 2008 18:37:18 +0000 Received: by py-out-1112.google.com with SMTP id u52so1950620pyb.13 for ; Fri, 25 Jul 2008 11:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type:references :x-google-sender-auth; bh=QfgP8BbiabQx3waiMYy6KfqAqQqo849rk8ygBA3qMVI=; b=K1+c6nqng/eIqlwjao3UOwTP8MAECm2ZgQkIukAoOwzXQGBceGhai55dGVXTFh8zNV rQ3hRmv++e44K4Z8RiB2vSikXHeXaBIAvvCRDQktM+HBIMJ6sVXvS224YCsvia+bi+H0 Gl7l1ruF9tOvZxDg10hbVXwyY+zwUJ77HHmM8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:references:x-google-sender-auth; b=SEsX5kzdDk6VKrVsInQ/k3pexsKcssMBKNyFYBIgN34oT0DICLXiyvRj/tooQGU9sL uaO7AUApeviB5OTgb3QUZpRrY3CaixOpLXbfXHeuGKoqdD0uxILjZDdvhwEpJ1iXArXS 1D1NXOh1l/aJ6lgPumDls2kDCQamkfcVReBDE= Received: by 10.65.249.3 with SMTP id b3mr3453108qbs.83.1217011046439; Fri, 25 Jul 2008 11:37:26 -0700 (PDT) Received: by 10.150.219.11 with HTTP; Fri, 25 Jul 2008 11:37:26 -0700 (PDT) Message-ID: <6f7ea56f0807251137q1ac6cbc8lbad2f000ee3c76e8@mail.gmail.com> Date: Fri, 25 Jul 2008 11:37:26 -0700 From: "John Evans" Sender: lgastako@gmail.com To: couchdb-user@incubator.apache.org Subject: Re: 500 Error ('EXIT', {noproc, ... In-Reply-To: <6f7ea56f0807251055n494bbf8se060c34b1f997e09@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8010_27852764.1217011046399" References: <6f7ea56f0807251055n494bbf8se060c34b1f997e09@mail.gmail.com> X-Google-Sender-Auth: 08dec4354f041143 X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_8010_27852764.1217011046399 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline As an additional data point, if I add "count=5" (or some other small value) it works fine (although only retrieves the first 5 documents obviously) but if I bump count up to a number greater than the number of documents in the database, or even a large number slightly below the number of documents in the database (around 30,000) then I get a slightly different 500 error: [info] [<0.117.0>] HTTP Error (code 500): {'EXIT', {wait_timeout, {gen_server,call, [<0.153.0>,{pread_bin,29459550}]}}} [info] [<0.117.0>] 127.0.0.1 - - "GET /my-database/_view/my-objects/all" 500 - John On Fri, Jul 25, 2008 at 10:55 AM, John Evans wrote: > I am trying to access a view on my server (from a python client) and am > getting back a 500 error. I see the following in the couchdb console: > > [info] [<0.60.0>] HTTP Error (code 500): {'EXIT', > {noproc, > {gen_server,call, > [<0.105.0>,{pread_bin,47322127}]}}} > [info] [<0.60.0>] 127.0.0.1 - - "GET /my-database/_view/my-objects/all" > 500 > > On the python side I get this: > ... > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py", > line 509, in read > return self._read_chunked(amt) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py", > line 548, in _read_chunked > chunk_left = int(line, 16) > ValueError: invalid literal for int() with base 16: 'HTTP/1.1 500 Internal > Server Error\r\n' > > But if I hit the same view with curl, everything works fine. My python > client has been working fine for everything else I've tried to do, but it > fails consistently in this same manner with this particular view. Obviously > the problem with the python code is that httplib is having trouble parsing > the response, but the root cause is the fact that I'm getting a 500 error in > the first palce. FWIW, I'm setting the same HTTP headers (just one > actually, "Accept: application/json") in the curl request as in the python > client. > > Has anyone seen this type of error before? Or is there anywhere I can look > for more detail on the cause of the 500 error within couchdb? > > - > John > ------=_Part_8010_27852764.1217011046399--