Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9A0F3D1E7 for ; Thu, 16 Aug 2012 20:08:24 +0000 (UTC) Received: (qmail 86552 invoked by uid 500); 16 Aug 2012 20:08:23 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 86512 invoked by uid 500); 16 Aug 2012 20:08:23 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 86504 invoked by uid 99); 16 Aug 2012 20:08:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2012 20:08:22 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dave@muse.net.nz designates 209.85.160.52 as permitted sender) Received: from [209.85.160.52] (HELO mail-pb0-f52.google.com) (209.85.160.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2012 20:08:15 +0000 Received: by pbcxa7 with SMTP id xa7so2205690pbc.11 for ; Thu, 16 Aug 2012 13:07:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muse.net.nz; s=google; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=uHQuzZtaklcA9qmby0K6adVcyAZAkGXdNHRFXYD4fdk=; b=OdtlACcNla4XCdOps3tiLbtE0MjV6NlaBLgNm+jiMIhTuslmtiCUnvjK8SYY7GmpKp JBFTueVaYbDpvy03TeyZz8ZBY3XJtmJZBAo7vsDcBQ9LVu2rRM3LXmOniIOfvva3D6UD qZPZuevfKakK0/E7hKj7NXS6EXn0uU1GfAhew= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=uHQuzZtaklcA9qmby0K6adVcyAZAkGXdNHRFXYD4fdk=; b=DKhcyoZxt5xpjGJ5pPhrVkB7ElfMIVZUZspPwL+X9pMB/XRtBDMGWGG3tMRAOV2n/Q +WFNHeCD960/bnUyGnidh/5u1Hdrqh03esS1ehMvs1jW+ZE9Wt5RsYAw4DC/4GiyecSN i9bbMvAyHRulTwd3Zds3BRoWq9fz9mO/aq25NWSLaxni1oWvTyOXrniIhbQCyCxpQXMT e69EyhTvt3zXsleb9s+5qSUMU6gPW2+XUkAA9rY8b8InBpJBojGK+IR0af15EnxJnEWS ivgLRne/1DKfzQwDaakbzZwLoPjITYlzJcy18NEiKnAH9Yeds+FnUCX3fiPcnRx9Vumi snzg== MIME-Version: 1.0 Received: by 10.68.217.69 with SMTP id ow5mr5859792pbc.35.1345147673492; Thu, 16 Aug 2012 13:07:53 -0700 (PDT) Received: by 10.68.223.6 with HTTP; Thu, 16 Aug 2012 13:07:53 -0700 (PDT) X-Originating-IP: [84.112.19.176] In-Reply-To: References: Date: Thu, 16 Aug 2012 22:07:53 +0200 Message-ID: Subject: Re: couchdb returning empty response From: Dave Cottlehuber To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQm2sZLGisirVrKhrFlKelMnTiMCVcBhTa6/I3DhQwNN8VptLppRnHapunuYGIWr9oPnjvmC On 16 August 2012 21:44, Dave Cottlehuber wrote: > On 16 August 2012 17:16, Tim Tisdall wrote: >> I tried running my code again and got a bunch of these entries in my logs: >> >> [Thu, 16 Aug 2012 14:53:03 GMT] [error] [<0.20.0>] {error_report,<0.9.0>, >> {<0.20.0>,std_error, >> "File operation error: eacces. >> >> Target: ./mochiweb_response.beam. Function: get_file. Process: >> code_server."}} >> >> here's the file listing for the file (as you can see it's readable by all): >> >> -rw-r--r-- 1 root staff 1420 Aug 7 21:11 >> /usr/local/lib/couchdb/erlang/lib/mochiweb-1.4.1/ebin/mochiweb_response.beam >> > > As you noticed, this is file permissions related. So check all of > those, esp permissions on the couchdb .beam files. > > If you're logged in as that user, does pushd > /usr/local/lib/couchdb/erlang/lib/mochiweb-1.4.1/ebin && cat > mochiweb_response.beam > /dev/null work? > > I usually do an > > $ sudo -u couchdb couchdb -i > > to start couchdb in interactive mode before switching to daemon usage. > > Maybe a recursive chmod / chown on/usr/local/lib/couchdb is in order? > > If you let me know what arch/platform this is on, I'll check tomorrow > on a fresh install if that doesn't fix it, using your notes provided. > > A+ > Dave Having said all that, I don't see how couch could start with these permissions, certainly not to the point of doing a bulk upload. So we must be running out of some resource. Are you able to provide the json privately to us for a look? A+ Dave