2016-09-20 84 views
0

我的硬盤上有11GB空閒空間,所以我不知道它爲什麼說磁盤快滿了。它有一天在運行,但現在停止工作。我試圖用它來運行ACRA。我在VMWare上運行Ubuntu 16.04。Couchdb無法啓動

sudo couchdb restart 
[sudo] password for zjulia: 

=INFO REPORT==== 20-Sep-2016::09:05:18 === 
    alarm_handler: {set,{{disk_almost_full,"/media/zjulia/CDROM"},[]}} 

=INFO REPORT==== 20-Sep-2016::09:05:18 === 
    alarm_handler: {set,{{disk_almost_full,"/media/zjulia/Ubuntu"},[]}} 
Apache CouchDB 1.6.0 (LogLevel=info) is starting. 
{Failure to start Mochiweb: eaddrinuse 
[error] [<0.113.0>] {error_report,<0.32.0>, 
        {<0.113.0>,crash_report, 
         [[{initial_call, 
         {mochiweb_socket_server,init,['Argument__1']}}, 
         {pid,<0.113.0>}, 
         {registered_name,[]}, 
         {error_info, 
         {exit,eaddrinuse, 
          [{gen_server,init_it,6, 
          [{file,"gen_server.erl"},{line,344}]}, 
          {proc_lib,init_p_do_apply,3, 
          [{file,"proc_lib.erl"},{line,240}]}]}}, 
         {ancestors, 
         [couch_secondary_services,couch_server_sup,<0.33.0>]}, 
         {messages,[]}, 
         {links,[<0.92.0>]}, 
         {dictionary,[]}, 
         {trap_exit,true}, 
         {status,running}, 
         {heap_size,987}, 
         {stack_size,27}, 
         {reductions,641}], 
         []]}} 
"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/etc/couchdb/default.ini","/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,couch_secondary_services,{shutdown,{failed_to_start_child,httpd,eaddrinuse}}}}}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,273}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}} 

Crash dump is being written to: erl_crash.dump...done 
init terminating in do_boot() 
+0

它看起來像你已經有聽到該端口的東西(基於錯誤「無法啓動Mochiweb:eaddrinuse') –

回答

1

「磁盤快滿了」消息只是一個警告。實際問題似乎是,端口(默認情況下爲5984)已被使用(「eaddrinuse」)。

作爲一種解決方案,您可以更改/etc/couchdb/couch.ini中的CouchDB端口或查看哪個進程正在使用端口5984和lsof -i :5984並殺死它。

+0

幫助我呢!在我的情況下,有一個泊塢窗進程在某個端口上偵聽。我殺了它,但另一個產生了。所以我改變了配置文件中的默認端口。 :| – dotslash