incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Cottlehuber <d...@muse.net.nz>
Subject Re: couchdb returning empty response
Date Thu, 16 Aug 2012 20:07:53 GMT
On 16 August 2012 21:44, Dave Cottlehuber <dave@muse.net.nz> wrote:
> On 16 August 2012 17:16, Tim Tisdall <tisdall@gmail.com> 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

Mime
View raw message