couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim <caphrim...@gmail.com>
Subject 1.0.1 eacces error in futon
Date Thu, 26 Aug 2010 21:03:24 GMT
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

Mime
View raw message