我安装了couchdb 1.1.0,并且在使用普通配置文件时运行正常。也就是说,从:
开始couchdb
允许我做通常的事情:
curl -X GET http://127.0.0.1:5984/
{"couchdb":"Welcome","version":"1.1.0"}
现在,我需要使用备用config目录启动couchdb。为此,我使用以下命令解雇couchdb:
couchdb -n -a test.ini
启动成功,couchdb正在监听http://127.0.0.1:5984
但是,只要我执行GET操作,couchdb就会崩溃:
[error] [<0.196.0>] {error_report,<0.31.0>,
{<0.196.0>,crash_report,
[[{initial_call,
{mochiweb_acceptor,init,
['Argument__1','Argument__2','Argument__3']}},
{pid,<0.196.0>},
{registered_name,[]},
{error_info,
{exit,
{noproc,
{gen_server,call,
[couch_httpd_vhost,
{match_vhost,
{mochiweb_request,#Port<0.2102>,'GET',"/",
{1,1},
{3,
{"user-agent",
{'User-Agent',
"curl/7.19.7 (i486-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15"},
{"host",
{'Host',"127.0.0.1:5984"},
{"accept",{'Accept',"*/*"},nil,nil},
nil},
nil}}}}]}},
[{gen_server,call,2},
{couch_httpd_vhost,match_vhost,1},
{couch_httpd,handle_request,5},
{mochiweb_http,headers,5},
{proc_lib,init_p_do_apply,3}]}},
{ancestors,
[couch_httpd,couch_secondary_services,
couch_server_sup,<0.32.0>]},
{messages,[]},
{links,[<0.103.0>,#Port<0.2102>]},
{dictionary,[]},
{trap_exit,false},
{status,running},
{heap_size,610},
{stack_size,24},
{reductions,672}],
[]]}}
=CRASH REPORT==== 19-Aug-2011::17:03:44 ===
crasher:
initial call: mochiweb_acceptor:init/3
pid: <0.196.0>
registered_name: []
exception exit: {noproc,
{gen_server,call,
[couch_httpd_vhost,
{match_vhost,
{mochiweb_request,#Port<0.2102>,'GET',"/",
{1,1},
{3,
{"user-agent",
{'User-Agent',
"curl/7.19.7 (i486-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15"},
{"host",
{'Host',"127.0.0.1:5984"},
{"accept",{'Accept',"*/*"},nil,nil},
nil},
nil}}}}]}}
in function gen_server:call/2
in call from couch_httpd_vhost:match_vhost/1
in call from couch_httpd:handle_request/5
in call from mochiweb_http:headers/5
ancestors: [couch_httpd,couch_secondary_services,couch_server_sup,
<0.32.0>]
messages: []
links: [<0.103.0>,#Port<0.2102>]
dictionary: []
trap_exit: false
status: running
heap_size: 610
stack_size: 24
reductions: 672
neighbours:
知道会发生什么事吗?
答案 0 :(得分:1)
嗯,我想我发现了问题,所以我会回答我自己的问题,以供参考。
我的配置文件(test.ini)缺少(与库存default.ini
相比)[daemon]
部分中的以下选项:
replication_manager={couch_replication_manager, start_link, []}
vhosts={couch_httpd_vhost, start_link, []}
os_daemons={couch_os_daemons, start_link, []}