couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Cottlehuber <>
Subject Re: couchdb returning empty response
Date Thu, 16 Aug 2012 19:44:45 GMT
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.


View raw message