You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Zsolt Czinkos <cz...@gmail.com> on 2010/09/09 17:59:02 UTC
file operation errors in log
Hello
I've installed couchdb 1.0.1 to CentOS 5.4 (on Amazon EC2).
I built it from source, installed and started with the rc.d/couchdb
script (added couchdb before starting, and chown and chmod as it was
written in INSTALL.Unix).
It seems to work, I can run the tests in futon. Almost all tests
succeed, but in the log there are "File operation errors".
Two tests failed:
reduce_builtin:
---------------------
{"message":"JSON.parse","fileName":"http://host:5984/_utils/script/couch.js?0.11.0","lineNumber":165,"stack":"(\"(function
(doc) {emit(doc.integer, doc.integer);emit(doc.integer,
doc.integer);})\",\"_stats\")@http://host:5984/_utils/script/couch.js?0.11.0:165\u000a(false)@http://host:5984/_utils/script/couch_test_runner.js?0.11.0:54\u000arun(0)@http://host:5984/_utils/script/couch_test_runner.js?0.11.0:84\u000a"}
stats
-------
Assertion 'triggered, "We managed to force a all_dbs_active error."'
failed: We managed to force a all_dbs_active error.
-------------------------------
Has anybody faced with it before?
Thanks for any help in advance.
best,
zsolt
----------------------------------------
Log:
[Thu, 10 Sep 2010 15:37:08 GMT] [info] [<0.323.0>] x.x.x.x - - 'PUT'
/test_suite_db/bar 400
[Thu, 09 Sep 2010 15:37:08 GMT] [info] [<0.323.0>] x.x.x.x - - 'POST'
/test_suite_db/_bulk_docs 400
[Thu, 09 Sep 2010 15:37:08 GMT] [info] [<0.323.0>] x.x.x.x - - 'POST'
/test_suite_db/_all_docs 400
[Thu, 09 Sep 2010 15:37:08 GMT] [info] [<0.323.0>] x.x.x.x - - 'POST'
/test_suite_db/_all_docs 400
[Thu, 09 Sep 2010 15:37:08 GMT] [info] [<0.323.0>] x.x.x.x - -
'DELETE' /test_suite_db/?rev=foobarbaz 400
[Thu, 09 Sep 2010 15:37:38 GMT] [info] [<0.323.0>] x.x.x.x - -
'DELETE' /test_suite_db/ 200
[Thu, 09 Sep 2010 15:37:38 GMT] [info] [<0.323.0>] x.x.x.x - - 'PUT'
/test_suite_db/ 201
[Thu, 09 Sep 2010 15:37:38 GMT] [info] [<0.323.0>] x.x.x.x - - 'PUT'
/test_suite_db/0 201
[Thu, 09 Sep 2010 15:37:39 GMT] [info] [<0.323.0>] x.x.x.x - - 'PUT'
/test_suite_db/3 201
[Thu, 09 Sep 2010 15:37:39 GMT] [info] [<0.323.0>] x.x.x.x - - 'PUT'
/test_suite_db/1 201
[Thu, 09 Sep 2010 15:37:39 GMT] [info] [<0.323.0>] x.x.x.x - - 'PUT'
/test_suite_db/2 201
[Thu, 09 Sep 2010 15:37:39 GMT] [error] [<0.249.0>] {error_report,<0.236.0>,
{<0.249.0>,std_error,
"File operation error: eacces. Target:
./couch_httpd_view.beam. Function: get_file. Process: code_server."}}
[Thu, 09 Sep 2010 15:37:39 GMT] [info] [<0.323.0>] x.x.x.x - - 'GET'
/test_suite_db/_all_docs 200
[Thu, 09 Sep 2010 15:37:39 GMT] [info] [<0.323.0>] x.x.x.x - - 'GET'
/test_suite_db/_all_docs?descending=true 200
[Thu, 09 Sep 2010 15:37:40 GMT] [info] [<0.323.0>] x.x.x.x - - 'GET'
/test_suite_db/_all_docs?startkey=%222%22 200
[Thu, 09 Sep 2010 15:37:40 GMT] [error] [<0.249.0>] {error_report,<0.236.0>,
{<0.249.0>,std_error,
"File operation error: eacces. Target:
./couch_changes.beam. Function: get_file. Process: code_server."}}
[Thu, 09 Sep 2010 15:37:40 GMT] [info] [<0.323.0>] x.x.x.x - - 'GET'
/test_suite_db/_changes 200
[Thu, 09 Sep 2010 15:37:40 GMT] [info] [<0.323.0>] x.x.x.x - - 'GET'
/test_suite_db/_changes?descending=true 200
[Thu, 09 Sep 2010 15:37:41 GMT] [info] [<0.323.0>] x.x.x.x - - 'GET'
/test_suite_db/1 200
[Thu, 09 Sep 2010 15:37:41 GMT] [info] [<0.323.0>] x.x.x.x - -
'DELETE' /test_suite_db/1?rev=1-2b6adfdea4e0fd276a861f663cf984ba 200
[Thu, 09 Sep 2010 15:37:41 GMT] [info] [<0.323.0>] x.x.x.x - - 'GET'
/test_suite_db/_changes 200
[Thu, 09 Sep 2010 15:37:41 GMT] [info] [<0.323.0>] x.x.x.x - - 'GET'
/test_suite_db/3 200
[Thu, 09 Sep 2010 15:37:41 GMT] [info] [<0.323.0>] x.x.x.x - - 'PUT'
/test_suite_db/3 201
[Thu, 09 Sep 2010 15:37:41 GMT] [info] [<0.323.0>] x.x.x.x - - 'GET'
/test_suite_db/_changes 200
[Thu, 09 Sep 2010 15:37:42 GMT] [info] [<0.323.0>] x.x.x.x - - 'GET'
/test_suite_db/_changes?include_docs=true 200
[Thu, 09 Sep 2010 15:37:42 GMT] [info] [<0.323.0>] x.x.x.x - - 'PUT'
/test_suite_db/Z 201
[Thu, 09 Sep 2010 15:37:42 GMT] [info] [<0.323.0>] x.x.x.x - - 'PUT'
/test_suite_db/a 201
[Thu, 09 Sep 2010 15:37:42 GMT] [info] [<0.323.0>] x.x.x.x - - 'GET'
/test_suite_db/_all_docs?startkey=%22Z%22&endkey=%22Z%22 200
Re: file operation errors in log
Posted by Zsolt Czinkos <cz...@gmail.com>.
Hi Dave,
I've done "make install" as root since I installed couchdb to /usr/local.
[root@host]# ls -l
/usr/local/lib/couchdb/erlang/lib/couch-1.0.1/ebin/couch_changes.beam
/usr/local/lib/couchdb/erlang/lib/couch-1.0.1/ebin/couch_httpd_view.beam
-rw-r--r-- 1 root root 7548 Sep 9 11:16
/usr/local/lib/couchdb/erlang/lib/couch-1.0.1/ebin/couch_changes.beam
-rw-r--r-- 1 root root 16604 Sep 9 11:16
/usr/local/lib/couchdb/erlang/lib/couch-1.0.1/ebin/couch_httpd_view.beam
--- after changing their owner.group to couchdb.couchdb, no change ---
[root@host]# ls -l /usr/local/lib/couchdb/erlang/lib/couch-1.0.1/
total 12
drwxr-xr-x 2 couchdb couchdb 4096 Sep 9 11:16 ebin
drwxr-xr-x 2 couchdb couchdb 4096 Sep 9 11:16 include
drwxr-xr-x 3 couchdb couchdb 4096 Sep 9 11:16 priv
[root@host]# ps -ef | grep couchdb
couchdb 6655 1 0 04:14 ? 00:00:00 /bin/sh -e
/usr/local/bin/couchdb -a /usr/local/etc/couchdb/default.ini -a
/usr/local/etc/couchdb/local.ini -b -r 5 -p
/usr/local/var/run/couchdb/couchdb.pid -o /dev/null -e /dev/null -R
couchdb 6665 6655 0 04:14 ? 00:00:00 /bin/sh -e
/usr/local/bin/couchdb -a /usr/local/etc/couchdb/default.ini -a
/usr/local/etc/couchdb/local.ini -b -r 5 -p
/usr/local/var/run/couchdb/couchdb.pid -o /dev/null -e /dev/null -R
couchdb 6666 6665 0 04:14 ? 00:00:00
/usr/lib/erlang/erts-5.6.5/bin/beam -Bd -K true -A 4 -- -root
/usr/lib/erlang -progname erl -- -home /usr/local/var/lib/couchdb
-noshell -noinput -sasl errlog_type error -couch_ini
/usr/local/etc/couchdb/default.ini /usr/local/etc/couchdb/local.ini
/usr/local/etc/couchdb/default.ini /usr/local/etc/couchdb/local.ini -s
couch -pidfile /usr/local/var/run/couchdb/couchdb.pid -heart
couchdb 6675 6666 0 04:14 ? 00:00:00 heart -pid 6666 -ht 11
root 6760 6584 0 04:20 pts/0 00:00:00 grep couchdb
When I start couchdb as couchdb user (not with the rc.d script)
# su - couchdb
$ couchdb
then no more file error messages in the log.
It must be something trivial, I'll have a look at the rc.d script.
Thanks very much for your help.
Zsolt
On Fri, Sep 10, 2010 at 6:22 AM, Dave Cottlehuber <da...@muse.net.nz> wrote:
> On 10 September 2010 03:59, Zsolt Czinkos <cz...@gmail.com> wrote:
>> Hello
>>
>> I've installed couchdb 1.0.1 to CentOS 5.4 (on Amazon EC2).
>>
>> I built it from source, installed and started with the rc.d/couchdb
>> script (added couchdb before starting, and chown and chmod as it was
>> written in INSTALL.Unix).
>>
>> It seems to work, I can run the tests in futon. Almost all tests
>> succeed, but in the log there are "File operation errors".
>
>> [Thu, 09 Sep 2010 15:37:39 GMT] [error] [<0.249.0>] {error_report,<0.236.0>,
>> {<0.249.0>,std_error,
>> "File operation error: eacces. Target:
>> ./couch_httpd_view.beam. Function: get_file. Process: code_server."}}
>
>> [Thu, 09 Sep 2010 15:37:40 GMT] [error] [<0.249.0>] {error_report,<0.236.0>,
>> {<0.249.0>,std_error,
>> "File operation error: eacces. Target:
>> ./couch_changes.beam. Function: get_file. Process: code_server."}}
>
> Hi Zsolt
>
> eaccess is a file access error. Can you check you've got chown'd and
> chmod'ed sorted for the binaries? I have:
>
> -rw-r--r-- 1 dave dave 4.2K 2010-08-18 01:38
> ./lib/couchdb/erlang/lib/couch-1.0.1/ebin/couch_changes.beam
> -rw-r--r-- 1 dave dave 8.8K 2010-08-18 01:38
> ./lib/couchdb/erlang/lib/couch-1.0.1/ebin/couch_httpd_view.beam
>
> cheers
> Dave
>
Re: file operation errors in log
Posted by Dave Cottlehuber <da...@muse.net.nz>.
On 10 September 2010 03:59, Zsolt Czinkos <cz...@gmail.com> wrote:
> Hello
>
> I've installed couchdb 1.0.1 to CentOS 5.4 (on Amazon EC2).
>
> I built it from source, installed and started with the rc.d/couchdb
> script (added couchdb before starting, and chown and chmod as it was
> written in INSTALL.Unix).
>
> It seems to work, I can run the tests in futon. Almost all tests
> succeed, but in the log there are "File operation errors".
> [Thu, 09 Sep 2010 15:37:39 GMT] [error] [<0.249.0>] {error_report,<0.236.0>,
> {<0.249.0>,std_error,
> "File operation error: eacces. Target:
> ./couch_httpd_view.beam. Function: get_file. Process: code_server."}}
> [Thu, 09 Sep 2010 15:37:40 GMT] [error] [<0.249.0>] {error_report,<0.236.0>,
> {<0.249.0>,std_error,
> "File operation error: eacces. Target:
> ./couch_changes.beam. Function: get_file. Process: code_server."}}
Hi Zsolt
eaccess is a file access error. Can you check you've got chown'd and
chmod'ed sorted for the binaries? I have:
-rw-r--r-- 1 dave dave 4.2K 2010-08-18 01:38
./lib/couchdb/erlang/lib/couch-1.0.1/ebin/couch_changes.beam
-rw-r--r-- 1 dave dave 8.8K 2010-08-18 01:38
./lib/couchdb/erlang/lib/couch-1.0.1/ebin/couch_httpd_view.beam
cheers
Dave