You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Tim <ca...@gmail.com> on 2010/08/26 23:03:24 UTC

1.0.1 eacces error in futon

Hi folks, I am running a 1.0.1 server compiled from source and for
some reason am receiving the error

{"error":"error","reason":"eacces"}

When I try to delete a database.

The full text of the error from couch in debug mode is




[debug] [<0.167.0>] 'DELETE' /mydatabase/ {1,1}
Headers: [{'Accept',"application/json, text/javascript, */*"},
          {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.3"},
          {'Accept-Encoding',"gzip,deflate,sdch"},
          {'Accept-Language',"en-US,en;q=0.8"},
          {'Connection',"keep-alive"},
          {'Content-Type',"application/json"},
          {'Host',"localhost:5984"},
          {"Origin","http://localhost:5984"},
          {'Referer',"http://localhost:5984/_utils/database.html?mydatabase"},
          {'User-Agent',"Mozilla/5.0 (X11; U; Linux i686; en-US)
AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.41
Safari/534.3"},
          {"X-Requested-With","XMLHttpRequest"}]
[Thu, 26 Aug 2010 20:56:41 GMT] [debug] [<0.167.0>] 'DELETE' /mydatabase/ {1,1}
Headers: [{'Accept',"application/json, text/javascript, */*"},
          {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.3"},
          {'Accept-Encoding',"gzip,deflate,sdch"},
          {'Accept-Language',"en-US,en;q=0.8"},
          {'Connection',"keep-alive"},
          {'Content-Type',"application/json"},
          {'Host',"localhost:5984"},
          {"Origin","http://localhost:5984"},
          {'Referer',"http://localhost:5984/_utils/database.html?mydatabase"},
          {'User-Agent',"Mozilla/5.0 (X11; U; Linux i686; en-US)
AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.41
Safari/534.3"},
          {"X-Requested-With","XMLHttpRequest"}]

[debug] [<0.167.0>] OAuth Params: []
[Thu, 26 Aug 2010 20:56:41 GMT] [debug] [<0.167.0>] OAuth Params: []

[debug] [<0.167.0>] Minor error in HTTP request: {error,eacces}
[Thu, 26 Aug 2010 20:56:41 GMT] [debug] [<0.167.0>] Minor error in
HTTP request: {error,eacces}

[debug] [<0.167.0>] Stacktrace: [{couch_httpd_db,delete_db_req,2},
             {couch_httpd,handle_request_int,5},
             {mochiweb_http,headers,5},
             {proc_lib,init_p_do_apply,3}]
[Thu, 26 Aug 2010 20:56:41 GMT] [debug] [<0.167.0>] Stacktrace:
[{couch_httpd_db,delete_db_req,2},
             {couch_httpd,handle_request_int,5},
             {mochiweb_http,headers,5},
             {proc_lib,init_p_do_apply,3}]

[info] [<0.167.0>] 127.0.0.1 - - 'DELETE' /mydatabase/ 500
[Thu, 26 Aug 2010 20:56:41 GMT] [info] [<0.167.0>] 127.0.0.1 - -
'DELETE' /mydatabase/ 500

[debug] [<0.167.0>] httpd 500 error response:
 {"error":"error","reason":"eacces"}

[Thu, 26 Aug 2010 20:56:41 GMT] [debug] [<0.167.0>] httpd 500 error response:
 {"error":"error","reason":"eacces"}



The server is a RHEL 5.3 system.

The permissions of the database files are as follows

-rw-r--r-- 1 couchdb couchdb   16240739 Aug 26 15:27 mydatabase.couch


The parent directory permissions are

drwxr-xr-x  5 couchdb couchdb  4096 Aug 26 15:14 couchdb-1.0.1

and the couch processes as running are


couchdb  11325     1  0 15:55 ?        00:00:00 /bin/sh -e
/opt/build-couchdb/build/bin/couchdb -a
/opt/build-couchdb/build/etc/couchdb/default.ini -a
/opt/build-couchdb/build/etc/couchdb/local.ini -b -r 5 -p
/opt/build-couchdb/build/var/run/couchdb/couchdb.pid -o
/opt/build-couchdb/build/var/log/couchdb/couch.log -e
/opt/build-couchdb/build/var/log/couchdb/couch.log -R
couchdb  11378 11325  0 15:55 ?        00:00:00 /bin/sh -e
/opt/build-couchdb/build/bin/couchdb -a
/opt/build-couchdb/build/etc/couchdb/default.ini -a
/opt/build-couchdb/build/etc/couchdb/local.ini -b -r 5 -p
/opt/build-couchdb/build/var/run/couchdb/couchdb.pid -o
/opt/build-couchdb/build/var/log/couchdb/couch.log -e
/opt/build-couchdb/build/var/log/couchdb/couch.log -R
couchdb  11379 11378  0 15:55 ?        00:00:01
/opt/build-couchdb/build/lib/erlang/erts-5.7.5/bin/beam.smp -Bd -K
true -A 4 -- -root /opt/build-couchdb/build/lib/erlang -progname erl
-- -home /var/lib/couchdb -- -noshell -noinput -sasl errlog_type error
-couch_ini /opt/build-couchdb/build/etc/couchdb/default.ini
/opt/build-couchdb/build/etc/couchdb/local.ini
/opt/build-couchdb/build/etc/couchdb/default.ini
/opt/build-couchdb/build/etc/couchdb/local.ini -s couch -pidfile
/opt/build-couchdb/build/var/run/couchdb/couchdb.pid -heart
couchdb  11394 11379  0 15:55 ?        00:00:00 heart -pid 11379 -ht 11
couchdb  11395 11379  0 15:55 ?        00:00:00 /usr/bin/python
/opt/savory/view_updater.py

I'm stuck as to why it's not deleting databases. Futon is running in
admin party, and I'm able to create databases fine as well as delete
individual documents without a problem.

Any ideas??

Thanks,
Tim

Re: 1.0.1 eacces error in futon

Posted by Alan Boyce <al...@alanboyce.com>.
Thanks for the detective work Tim. I can definitely see this getting someone else in the future. 

alan



On Aug 26, 2010, at 10:36 PM, Tim Rupp <ca...@gmail.com> wrote:

> After digging I'm answering my own question.
> 
> I was listing the couchdb database directory without showing hidden files, so while I had
> 
> -rw-r--r-- 1 couchdb couchdb   16240739 Aug 26 15:27 mydatabase.couch
> 
> I never saw the hidden directory
> 
> drwxr-xr-x 2 root root       4096 Aug 26 22:29 .delete
> 
> Which I only chanced to noticed when I was strac'ing the couchdb process and noticed that it was doing a lot more when deleting a database than I thought it was.
> 
> After I changed the permissions on the .delete directory to be owned by couchdb, everything went back to normal.
> 
> Live and learn.
> 
> -Tim
> 
> On 08/26/2010 04:03 PM, Tim wrote:
>> Hi folks, I am running a 1.0.1 server compiled from source and for
>> some reason am receiving the error
>> 
>> {"error":"error","reason":"eacces"}
>> 
>> When I try to delete a database.
>> 
>> The full text of the error from couch in debug mode is
>> 
>> 
>> 
>> 
>> [debug] [<0.167.0>] 'DELETE' /mydatabase/ {1,1}
>> Headers: [{'Accept',"application/json, text/javascript, */*"},
>>           {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.3"},
>>           {'Accept-Encoding',"gzip,deflate,sdch"},
>>           {'Accept-Language',"en-US,en;q=0.8"},
>>           {'Connection',"keep-alive"},
>>           {'Content-Type',"application/json"},
>>           {'Host',"localhost:5984"},
>>           {"Origin","http://localhost:5984"},
>>           {'Referer',"http://localhost:5984/_utils/database.html?mydatabase"},
>>           {'User-Agent',"Mozilla/5.0 (X11; U; Linux i686; en-US)
>> AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.41
>> Safari/534.3"},
>>           {"X-Requested-With","XMLHttpRequest"}]
>> [Thu, 26 Aug 2010 20:56:41 GMT] [debug] [<0.167.0>] 'DELETE' /mydatabase/ {1,1}
>> Headers: [{'Accept',"application/json, text/javascript, */*"},
>>           {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.3"},
>>           {'Accept-Encoding',"gzip,deflate,sdch"},
>>           {'Accept-Language',"en-US,en;q=0.8"},
>>           {'Connection',"keep-alive"},
>>           {'Content-Type',"application/json"},
>>           {'Host',"localhost:5984"},
>>           {"Origin","http://localhost:5984"},
>>           {'Referer',"http://localhost:5984/_utils/database.html?mydatabase"},
>>           {'User-Agent',"Mozilla/5.0 (X11; U; Linux i686; en-US)
>> AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.41
>> Safari/534.3"},
>>           {"X-Requested-With","XMLHttpRequest"}]
>> 
>> [debug] [<0.167.0>] OAuth Params: []
>> [Thu, 26 Aug 2010 20:56:41 GMT] [debug] [<0.167.0>] OAuth Params: []
>> 
>> [debug] [<0.167.0>] Minor error in HTTP request: {error,eacces}
>> [Thu, 26 Aug 2010 20:56:41 GMT] [debug] [<0.167.0>] Minor error in
>> HTTP request: {error,eacces}
>> 
>> [debug] [<0.167.0>] Stacktrace: [{couch_httpd_db,delete_db_req,2},
>>              {couch_httpd,handle_request_int,5},
>>              {mochiweb_http,headers,5},
>>              {proc_lib,init_p_do_apply,3}]
>> [Thu, 26 Aug 2010 20:56:41 GMT] [debug] [<0.167.0>] Stacktrace:
>> [{couch_httpd_db,delete_db_req,2},
>>              {couch_httpd,handle_request_int,5},
>>              {mochiweb_http,headers,5},
>>              {proc_lib,init_p_do_apply,3}]
>> 
>> [info] [<0.167.0>] 127.0.0.1 - - 'DELETE' /mydatabase/ 500
>> [Thu, 26 Aug 2010 20:56:41 GMT] [info] [<0.167.0>] 127.0.0.1 - -
>> 'DELETE' /mydatabase/ 500
>> 
>> [debug] [<0.167.0>] httpd 500 error response:
>>  {"error":"error","reason":"eacces"}
>> 
>> [Thu, 26 Aug 2010 20:56:41 GMT] [debug] [<0.167.0>] httpd 500 error response:
>>  {"error":"error","reason":"eacces"}
>> 
>> 
>> 
>> The server is a RHEL 5.3 system.
>> 
>> The permissions of the database files are as follows
>> 
>> -rw-r--r-- 1 couchdb couchdb   16240739 Aug 26 15:27 mydatabase.couch
>> 
>> 
>> The parent directory permissions are
>> 
>> drwxr-xr-x  5 couchdb couchdb  4096 Aug 26 15:14 couchdb-1.0.1
>> 
>> and the couch processes as running are
>> 
>> 
>> couchdb  11325     1  0 15:55 ?        00:00:00 /bin/sh -e
>> /opt/build-couchdb/build/bin/couchdb -a
>> /opt/build-couchdb/build/etc/couchdb/default.ini -a
>> /opt/build-couchdb/build/etc/couchdb/local.ini -b -r 5 -p
>> /opt/build-couchdb/build/var/run/couchdb/couchdb.pid -o
>> /opt/build-couchdb/build/var/log/couchdb/couch.log -e
>> /opt/build-couchdb/build/var/log/couchdb/couch.log -R
>> couchdb  11378 11325  0 15:55 ?        00:00:00 /bin/sh -e
>> /opt/build-couchdb/build/bin/couchdb -a
>> /opt/build-couchdb/build/etc/couchdb/default.ini -a
>> /opt/build-couchdb/build/etc/couchdb/local.ini -b -r 5 -p
>> /opt/build-couchdb/build/var/run/couchdb/couchdb.pid -o
>> /opt/build-couchdb/build/var/log/couchdb/couch.log -e
>> /opt/build-couchdb/build/var/log/couchdb/couch.log -R
>> couchdb  11379 11378  0 15:55 ?        00:00:01
>> /opt/build-couchdb/build/lib/erlang/erts-5.7.5/bin/beam.smp -Bd -K
>> true -A 4 -- -root /opt/build-couchdb/build/lib/erlang -progname erl
>> -- -home /var/lib/couchdb -- -noshell -noinput -sasl errlog_type error
>> -couch_ini /opt/build-couchdb/build/etc/couchdb/default.ini
>> /opt/build-couchdb/build/etc/couchdb/local.ini
>> /opt/build-couchdb/build/etc/couchdb/default.ini
>> /opt/build-couchdb/build/etc/couchdb/local.ini -s couch -pidfile
>> /opt/build-couchdb/build/var/run/couchdb/couchdb.pid -heart
>> couchdb  11394 11379  0 15:55 ?        00:00:00 heart -pid 11379 -ht 11
>> couchdb  11395 11379  0 15:55 ?        00:00:00 /usr/bin/python
>> /opt/savory/view_updater.py
>> 
>> I'm stuck as to why it's not deleting databases. Futon is running in
>> admin party, and I'm able to create databases fine as well as delete
>> individual documents without a problem.
>> 
>> Any ideas??
>> 
>> Thanks,
>> Tim
>> 

Re: 1.0.1 eacces error in futon

Posted by Tim Rupp <ca...@gmail.com>.
After digging I'm answering my own question.

I was listing the couchdb database directory without showing hidden 
files, so while I had

-rw-r--r-- 1 couchdb couchdb   16240739 Aug 26 15:27 mydatabase.couch

I never saw the hidden directory

drwxr-xr-x 2 root root       4096 Aug 26 22:29 .delete

Which I only chanced to noticed when I was strac'ing the couchdb process 
and noticed that it was doing a lot more when deleting a database than I 
thought it was.

After I changed the permissions on the .delete directory to be owned by 
couchdb, everything went back to normal.

Live and learn.

-Tim

On 08/26/2010 04:03 PM, Tim wrote:
> Hi folks, I am running a 1.0.1 server compiled from source and for
> some reason am receiving the error
>
> {"error":"error","reason":"eacces"}
>
> When I try to delete a database.
>
> The full text of the error from couch in debug mode is
>
>
>
>
> [debug] [<0.167.0>] 'DELETE' /mydatabase/ {1,1}
> Headers: [{'Accept',"application/json, text/javascript, */*"},
>            {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.3"},
>            {'Accept-Encoding',"gzip,deflate,sdch"},
>            {'Accept-Language',"en-US,en;q=0.8"},
>            {'Connection',"keep-alive"},
>            {'Content-Type',"application/json"},
>            {'Host',"localhost:5984"},
>            {"Origin","http://localhost:5984"},
>            {'Referer',"http://localhost:5984/_utils/database.html?mydatabase"},
>            {'User-Agent',"Mozilla/5.0 (X11; U; Linux i686; en-US)
> AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.41
> Safari/534.3"},
>            {"X-Requested-With","XMLHttpRequest"}]
> [Thu, 26 Aug 2010 20:56:41 GMT] [debug] [<0.167.0>] 'DELETE' /mydatabase/ {1,1}
> Headers: [{'Accept',"application/json, text/javascript, */*"},
>            {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.3"},
>            {'Accept-Encoding',"gzip,deflate,sdch"},
>            {'Accept-Language',"en-US,en;q=0.8"},
>            {'Connection',"keep-alive"},
>            {'Content-Type',"application/json"},
>            {'Host',"localhost:5984"},
>            {"Origin","http://localhost:5984"},
>            {'Referer',"http://localhost:5984/_utils/database.html?mydatabase"},
>            {'User-Agent',"Mozilla/5.0 (X11; U; Linux i686; en-US)
> AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.41
> Safari/534.3"},
>            {"X-Requested-With","XMLHttpRequest"}]
>
> [debug] [<0.167.0>] OAuth Params: []
> [Thu, 26 Aug 2010 20:56:41 GMT] [debug] [<0.167.0>] OAuth Params: []
>
> [debug] [<0.167.0>] Minor error in HTTP request: {error,eacces}
> [Thu, 26 Aug 2010 20:56:41 GMT] [debug] [<0.167.0>] Minor error in
> HTTP request: {error,eacces}
>
> [debug] [<0.167.0>] Stacktrace: [{couch_httpd_db,delete_db_req,2},
>               {couch_httpd,handle_request_int,5},
>               {mochiweb_http,headers,5},
>               {proc_lib,init_p_do_apply,3}]
> [Thu, 26 Aug 2010 20:56:41 GMT] [debug] [<0.167.0>] Stacktrace:
> [{couch_httpd_db,delete_db_req,2},
>               {couch_httpd,handle_request_int,5},
>               {mochiweb_http,headers,5},
>               {proc_lib,init_p_do_apply,3}]
>
> [info] [<0.167.0>] 127.0.0.1 - - 'DELETE' /mydatabase/ 500
> [Thu, 26 Aug 2010 20:56:41 GMT] [info] [<0.167.0>] 127.0.0.1 - -
> 'DELETE' /mydatabase/ 500
>
> [debug] [<0.167.0>] httpd 500 error response:
>   {"error":"error","reason":"eacces"}
>
> [Thu, 26 Aug 2010 20:56:41 GMT] [debug] [<0.167.0>] httpd 500 error response:
>   {"error":"error","reason":"eacces"}
>
>
>
> The server is a RHEL 5.3 system.
>
> The permissions of the database files are as follows
>
> -rw-r--r-- 1 couchdb couchdb   16240739 Aug 26 15:27 mydatabase.couch
>
>
> The parent directory permissions are
>
> drwxr-xr-x  5 couchdb couchdb  4096 Aug 26 15:14 couchdb-1.0.1
>
> and the couch processes as running are
>
>
> couchdb  11325     1  0 15:55 ?        00:00:00 /bin/sh -e
> /opt/build-couchdb/build/bin/couchdb -a
> /opt/build-couchdb/build/etc/couchdb/default.ini -a
> /opt/build-couchdb/build/etc/couchdb/local.ini -b -r 5 -p
> /opt/build-couchdb/build/var/run/couchdb/couchdb.pid -o
> /opt/build-couchdb/build/var/log/couchdb/couch.log -e
> /opt/build-couchdb/build/var/log/couchdb/couch.log -R
> couchdb  11378 11325  0 15:55 ?        00:00:00 /bin/sh -e
> /opt/build-couchdb/build/bin/couchdb -a
> /opt/build-couchdb/build/etc/couchdb/default.ini -a
> /opt/build-couchdb/build/etc/couchdb/local.ini -b -r 5 -p
> /opt/build-couchdb/build/var/run/couchdb/couchdb.pid -o
> /opt/build-couchdb/build/var/log/couchdb/couch.log -e
> /opt/build-couchdb/build/var/log/couchdb/couch.log -R
> couchdb  11379 11378  0 15:55 ?        00:00:01
> /opt/build-couchdb/build/lib/erlang/erts-5.7.5/bin/beam.smp -Bd -K
> true -A 4 -- -root /opt/build-couchdb/build/lib/erlang -progname erl
> -- -home /var/lib/couchdb -- -noshell -noinput -sasl errlog_type error
> -couch_ini /opt/build-couchdb/build/etc/couchdb/default.ini
> /opt/build-couchdb/build/etc/couchdb/local.ini
> /opt/build-couchdb/build/etc/couchdb/default.ini
> /opt/build-couchdb/build/etc/couchdb/local.ini -s couch -pidfile
> /opt/build-couchdb/build/var/run/couchdb/couchdb.pid -heart
> couchdb  11394 11379  0 15:55 ?        00:00:00 heart -pid 11379 -ht 11
> couchdb  11395 11379  0 15:55 ?        00:00:00 /usr/bin/python
> /opt/savory/view_updater.py
>
> I'm stuck as to why it's not deleting databases. Futon is running in
> admin party, and I'm able to create databases fine as well as delete
> individual documents without a problem.
>
> Any ideas??
>
> Thanks,
> Tim
>