I have successfully installed couchdb1.0.2 on CnetOS 5.5 , with erlang 5.8 .
But after I input the command "couchdb start" under the folder "rc.d" or
"logrotate.d" ,I cann't visit couchdb by
curl http://127.0.0.1:5984 and curl was closed by host , at last I found
port 5984 not opened at all! In the couchdb.log,I get the following message:
[Thu, 03 Mar 2011 14:03:10 GMT] [error] [<0.85.0>] {error_report,<0.30.0>,
{<0.85.0>,supervisor_report,
[{supervisor,{local,couch_secondary_services}},
{errorContext,start_error},
{reason,{{badmatch,{error,eacces}},
[{couch_auth_cache,ensure_users_db_exists,2},
{couch_auth_cache,open_auth_db,0},
{couch_auth_cache,init,1},
{gen_server,init_it,6},
{proc_lib,init_p_do_apply,3}]}},
{offender,[{pid,undefined},
{name,auth_cache},
{mfargs,{couch_auth_cache,start_link,[]}},
{restart_type,permanent},
{shutdown,1000},
{child_type,worker}]}]}}
[Thu, 03 Mar 2011 14:03:10 GMT] [error] [<0.87.0>] {error_report,<0.30.0>,
{<0.87.0>,crash_report,
[[{initial_call,{couch_auth_cache,init,['Argument__1']}},
{pid,<0.87.0>},
{registered_name,[]},
{error_info,
{exit,
{{badmatch,{error,eacces}},
[{couch_auth_cache,ensure_users_db_exists,2},
{couch_auth_cache,open_auth_db,0},
{couch_auth_cache,init,1},
{gen_server,init_it,6},
{proc_lib,init_p_do_apply,3}]},
[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},
{ancestors,[couch_secondary_services,couch_server_sup,<0.31.0>]},
{messages,[]},
{links,[<0.85.0>]},
{dictionary,[]},
{trap_exit,false},
{status,running},
{heap_size,377},
{stack_size,24},
{reductions,149}],
[]]}}
[Thu, 03 Mar 2011 14:03:11 GMT] [error] [<0.77.0>] {error_report,<0.30.0>,
{<0.77.0>,supervisor_report,
[{supervisor,{local,couch_server_sup}},
{errorContext,start_error},
{reason,shutdown},
{offender,
[{pid,undefined},
{name,couch_secondary_services},
{mfargs,{couch_server_sup,start_secondary_services,[]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]}]}} .
However ,when I run "couchdb" under folder "bin" ,erverything is ok!
Is there anyone who knows the reason why I cann't run "couchdb start"
under "rc.d"?