2011-08-19 24 views
2

我已經安裝了couchdb 1.1.0,並且在開始使用正常配置文件時運行良好。也就是說,起:couchdb不以備用配置目錄開始

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的是,只要我做一個GET操作,CouchDB的崩潰聽http://127.0.0.1:5984

然而,:

[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

請問您發佈test.ini的內容是什麼?你有它的虛擬主機定義?謝謝。 – JasonSmith

回答

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, []}