You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by cdr53x <cd...@free.fr> on 2010/05/26 12:15:11 UTC
Some test fail in 0.11 after install from source tgz
Hello,
I juste re-installed the 0.11 relase by compiling the sources from the
tgz archive on a ubuntu 10.04 x64
The couchdb seems to run fine, however I have two tests that seem to fail :
*content_negotiation : *
1. *Assertion failed:* |expected 'text/plain;charset=utf-8', got
'application/json'|
I have nothing in the log that would indicate where the problem is.
*reader_acl : *
1. *Exception raised:* |{}|
The log indicates the following :
[Wed, 26 May 2010 10:08:15 GMT] [info] [<0.2647.0>] 127.0.0.1 - - 'PUT'
/_config/httpd/authentication_handlers 200
[Wed, 26 May 2010 10:08:15 GMT] [info] [<0.2647.0>] 127.0.0.1 - - 'PUT'
/_config/couch_httpd_auth/authentication_db 200
[Wed, 26 May 2010 10:08:15 GMT] [info] [<0.2647.0>] 127.0.0.1 - -
'DELETE' /test_suite_users/ 200
[Wed, 26 May 2010 10:08:15 GMT] [info] [<0.2647.0>] 127.0.0.1 - - 'PUT'
/test_suite_users/ 201
[Wed, 26 May 2010 10:08:15 GMT] [info] [<0.2647.0>] 127.0.0.1 - -
'DELETE' /test_suite_db/ 200
[Wed, 26 May 2010 10:08:15 GMT] [info] [<0.2647.0>] 127.0.0.1 - - 'PUT'
/test_suite_db/ 201
[Wed, 26 May 2010 10:08:15 GMT] [info] [<0.2647.0>] 127.0.0.1 - - 'PUT'
/test_suite_users/org.couchdb.user%3Ajchris%40apache.org 201
[Wed, 26 May 2010 10:08:15 GMT] [info] [<0.2647.0>] 127.0.0.1 - - 'GET'
/_session 200
[Wed, 26 May 2010 10:08:15 GMT] [info] [<0.2647.0>] 127.0.0.1 - - 'PUT'
/test_suite_db/baz 201
[Wed, 26 May 2010 10:08:15 GMT] [info] [<0.2647.0>] 127.0.0.1 - - 'GET'
/test_suite_db/baz 304
[Wed, 26 May 2010 10:08:15 GMT] [info] [<0.2647.0>] 127.0.0.1 - - 'PUT'
/test_suite_db/_security 200
[Wed, 26 May 2010 10:08:15 GMT] [info] [<0.2647.0>] 127.0.0.1 - - 'POST'
/test_suite_users/_ensure_full_commit 201
[Wed, 26 May 2010 10:08:16 GMT] [info] [<0.2647.0>] 127.0.0.1 - - 'POST'
/_restart 200
[Wed, 26 May 2010 10:08:16 GMT] [info] [<0.3284.0>] Shutting down view
group server, monitored db is closing.
[Wed, 26 May 2010 10:08:16 GMT] [error] [<0.1733.0>] ** Generic server
couch_config terminating
** Last message in was {set,"couch_httpd_auth","secret",
"21e33bf7c1bc1354fd1e06579dc549d1",true}
** When Server state == {config,[{<0.3871.0>,#Fun<couch_config.2.17946139>},
{false,#Fun<couch_server.3.35387302>},
{<0.3869.0>,#Fun<couch_config.3.70971031>},
{<0.3869.0>,#Fun<couch_config.2.17946139>},
{false,#Fun<couch_server.3.35387302>},
{false,#Fun<couch_server.3.35387302>},
{<0.1752.0>,#Fun<couch_config.2.17946139>},
{<0.1751.0>,#Fun<couch_config.2.17946139>},
{<0.1749.0>,#Fun<couch_config.2.17946139>},
{<0.1747.0>,#Fun<couch_config.2.17946139>},
{<0.1744.0>,#Fun<couch_config.2.17946139>},
{<0.1744.0>,#Fun<couch_config.2.17946139>},
{<0.1742.0>,#Fun<couch_config.3.70971031>},
{false,#Fun<couch_server.3.35387302>},
{<0.5.0>,#Fun<couch_config.2.17946139>}],
"/usr/local/etc/couchdb/local.ini"}
** Reason for termination ==
** {{badmatch,{error,eacces}},
[{couch_config_writer,save_to_file,2},
{couch_config,handle_call,3},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}
[Wed, 26 May 2010 10:08:16 GMT] [error] [<0.1733.0>] {error_report,<0.31.0>,
{<0.1733.0>,crash_report,
[[{initial_call,{couch_config,init,['Argument__1']}},
{pid,<0.1733.0>},
{registered_name,couch_config},
{error_info,{exit,{{badmatch,{error,eacces}},
[{couch_config_writer,save_to_file,2},
{couch_config,handle_call,3},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]},
[{gen_server,terminate,6},
{proc_lib,init_p_do_apply,3}]}},
{ancestors,[couch_server_sup,<0.32.0>]},
{messages,[]},
{links,[<0.77.0>]},
{dictionary,[]},
{trap_exit,false},
{status,running},
{heap_size,6765},
{stack_size,24},
{reductions,47456}],
[]]}}
[Wed, 26 May 2010 10:08:16 GMT] [error] [<0.77.0>] {error_report,<0.31.0>,
{<0.77.0>,supervisor_report,
[{supervisor,{local,couch_server_sup}},
{errorContext,child_terminated},
{reason,
{{badmatch,{error,eacces}},
[{couch_config_writer,save_to_file,2},
{couch_config,handle_call,3},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}},
{offender,
[{pid,<0.1733.0>},
{name,couch_config},
{mfa,
{couch_server_sup,couch_config_start_link_wrapper,
[["/usr/local/etc/couchdb/default.ini",
"/usr/local/etc/couchdb/local.ini",
"/usr/local/etc/couchdb/default.ini",
"/usr/local/etc/couchdb/local.ini"],
<0.76.0>]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]}]}}
[Wed, 26 May 2010 10:08:16 GMT] [error] [<0.2647.0>] Uncaught error in
HTTP request: {exit,
{{{badmatch,{error,eacces}},
[{couch_config_writer,save_to_file,2},
{couch_config,handle_call,3},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]},
{gen_server,call,
[couch_config,
{set,"couch_httpd_auth","secret",
"21e33bf7c1bc1354fd1e06579dc549d1",
true}]}}}
I realy don't know the severity of the errors. The 0.10 version
installed from debian package seem to pass all the tests.
Any ideas on how to solve this ?
Regards,
Re: Some test fail in 0.11 after install from source tgz
Posted by cdr53x <cd...@free.fr>.
Hi,
Thanks for the hints !
I followed most of the steps of the wiki, maybe I forgot a permission
somewhere.
However I have couch running, test have been executed, log is created,
so it is probably an issue somwhere else then in usual dirs (
/usr/local/etc/couchdb, /usr/local/lib/couchdb,
/usr/local/var/log/couchdb , /usr/local/bin/couchdb ... ) . I'll double
check again !
Any ideas concerning the mime type error ? ( expected
'text/plain;charset=utf-8', got 'application/json' ) ?
Thanks again !
> Oh, you'll also get eaccess errors if couch can't write the DB files
> or log files, as well, as mentioned on that page I linked to.
>
> On Wed, May 26, 2010 at 11:35 AM, Paul Bonser<mi...@gmail.com> wrote:
>
>> On Wed, May 26, 2010 at 5:15 AM, cdr53x<cd...@free.fr> wrote:
>> *snip*
>>
>>> [Wed, 26 May 2010 10:08:16 GMT] [error] [<0.2647.0>] Uncaught error in HTTP
>>> request: {exit,
>>> {{{badmatch,{error,eacces}},
>>> [{couch_config_writer,save_to_file,2},
>>> {couch_config,handle_call,3},
>>> {gen_server,handle_msg,5},
>>> {proc_lib,init_p_do_apply,3}]},
>>> {gen_server,call,
>>> [couch_config,
>>> {set,"couch_httpd_auth","secret",
>>> "21e33bf7c1bc1354fd1e06579dc549d1",
>>> true}]}}}
>>>
>> That {error, eaccess} error generally means that the user you're
>> running couchdb as doesn't have write access to your config files, and
>> it looks like from the call there that it's trying to write back the
>> hashed version of your admin password.
>>
>>
>>>
>>> I realy don't know the severity of the errors. The 0.10 version installed
>>> from debian package seem to pass all the tests.
>>>
>>> Any ideas on how to solve this ?
>>>
>> The couchdb you installed from source is probably looking at
>> /usr/local/etc/couchdb for config files, whereas the one set up by the
>> packaged version probably went into /etc/couchdb, so you'll need to
>> update the permissions of all the couchdb directories, specifically
>> /usr/local/etc/couchdb and /usr/local/var/lib/couchdb
>>
>> See http://wiki.apache.org/couchdb/Error_messages#Incorrect_Permissions_or_Missing_Directories
>>
>>
>>
>>
>>> Regards,
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Paul Bonser
>> http://probablyprogramming.com
>>
>>
>
>
>
Re: Some test fail in 0.11 after install from source tgz
Posted by Paul Bonser <mi...@gmail.com>.
Oh, you'll also get eaccess errors if couch can't write the DB files
or log files, as well, as mentioned on that page I linked to.
On Wed, May 26, 2010 at 11:35 AM, Paul Bonser <mi...@gmail.com> wrote:
> On Wed, May 26, 2010 at 5:15 AM, cdr53x <cd...@free.fr> wrote:
> *snip*
>> [Wed, 26 May 2010 10:08:16 GMT] [error] [<0.2647.0>] Uncaught error in HTTP
>> request: {exit,
>> {{{badmatch,{error,eacces}},
>> [{couch_config_writer,save_to_file,2},
>> {couch_config,handle_call,3},
>> {gen_server,handle_msg,5},
>> {proc_lib,init_p_do_apply,3}]},
>> {gen_server,call,
>> [couch_config,
>> {set,"couch_httpd_auth","secret",
>> "21e33bf7c1bc1354fd1e06579dc549d1",
>> true}]}}}
>
> That {error, eaccess} error generally means that the user you're
> running couchdb as doesn't have write access to your config files, and
> it looks like from the call there that it's trying to write back the
> hashed version of your admin password.
>
>>
>>
>> I realy don't know the severity of the errors. The 0.10 version installed
>> from debian package seem to pass all the tests.
>>
>> Any ideas on how to solve this ?
>
> The couchdb you installed from source is probably looking at
> /usr/local/etc/couchdb for config files, whereas the one set up by the
> packaged version probably went into /etc/couchdb, so you'll need to
> update the permissions of all the couchdb directories, specifically
> /usr/local/etc/couchdb and /usr/local/var/lib/couchdb
>
> See http://wiki.apache.org/couchdb/Error_messages#Incorrect_Permissions_or_Missing_Directories
>
>
>
>>
>> Regards,
>>
>>
>>
>
>
>
> --
> Paul Bonser
> http://probablyprogramming.com
>
--
Paul Bonser
http://probablyprogramming.com
Re: Some test fail in 0.11 after install from source tgz
Posted by Paul Bonser <mi...@gmail.com>.
On Wed, May 26, 2010 at 5:15 AM, cdr53x <cd...@free.fr> wrote:
*snip*
> [Wed, 26 May 2010 10:08:16 GMT] [error] [<0.2647.0>] Uncaught error in HTTP
> request: {exit,
> {{{badmatch,{error,eacces}},
> [{couch_config_writer,save_to_file,2},
> {couch_config,handle_call,3},
> {gen_server,handle_msg,5},
> {proc_lib,init_p_do_apply,3}]},
> {gen_server,call,
> [couch_config,
> {set,"couch_httpd_auth","secret",
> "21e33bf7c1bc1354fd1e06579dc549d1",
> true}]}}}
That {error, eaccess} error generally means that the user you're
running couchdb as doesn't have write access to your config files, and
it looks like from the call there that it's trying to write back the
hashed version of your admin password.
>
>
> I realy don't know the severity of the errors. The 0.10 version installed
> from debian package seem to pass all the tests.
>
> Any ideas on how to solve this ?
The couchdb you installed from source is probably looking at
/usr/local/etc/couchdb for config files, whereas the one set up by the
packaged version probably went into /etc/couchdb, so you'll need to
update the permissions of all the couchdb directories, specifically
/usr/local/etc/couchdb and /usr/local/var/lib/couchdb
See http://wiki.apache.org/couchdb/Error_messages#Incorrect_Permissions_or_Missing_Directories
>
> Regards,
>
>
>
--
Paul Bonser
http://probablyprogramming.com