我最近升级了我的服务器到CouchDB 1.5,我不断地在日志中看到这个错误信息。 CouchDB似乎performance正确接受这个错误。
Fri, 14 Feb 2014 19:07:35 GMT] [error] [<0.105.0>] {error_report,<0.31.0>, {<0.105.0>,crash_report, [[{initial_call, {mochiweb_socket_server,init,['Argument__1']}}, {pid,<0.105.0>}, {registered_name,[]}, {error_info, {exit,eaddrinuse, [{gen_server,init_it,6, [{file,"gen_server.erl"},{line,320}]}, {proc_lib,init_p_do_apply,3, [{file,"proc_lib.erl"},{line,239}]}]}}, {ancestors, [couch_secondary_services,couch_server_sup,<0.32.0>]}, {messages,[]}, {links,[<0.94.0>]}, {dictionary,[]}, {trap_exit,true}, {status,running}, {heap_size,1598}, {stack_size,27}, {reductions,593}], []]}}
EADDRINUSE意味着某些已经在试图绑定的端口上进行侦听。
这可能是因为您已经有一个已经运行的CouchDB的旧版本,或者可能是因为您select了一个已被另一个服务使用的Port 。
要解决此问题,请检查/etc/couchdb/couch.ini (默认情况下为5984)中的端口,并确保没有其他程序正在侦听该端口,包括其他正在运行的CouchDB副本。