【发布时间】:2016-03-30 16:07:28
【问题描述】:
我在 debian 8 64 位实例上设置了 couchdb。
当我查询其中一个视图时,从 curl 的角度来看,它会超时。
以下是我从 couch.log 中看到的内容:
[Thu, 24 Dec 2015 07:17:23 GMT] [info] [<0.173.0>] Starting index update for db: notes idx: _design/notes
[Thu, 24 Dec 2015 07:17:23 GMT] [error] [<0.180.0>] ** Generic server <0.180.0> terminating
** Last message in was {prompt,[<<"reset">>,
{[{<<"reduce_limit">>,true},
{<<"timeout">>,5000}]}]}
** When Server state == {os_proc,"/usr/local/bin/couchjs /usr/local/share/couchdb/server/main.js",
#Port<0.2840>,
#Fun<couch_os_process.2.3888802>,
#Fun<couch_os_process.3.3888802>,5000}
** Reason for termination ==
** {badarg,[{erlang,port_command,
[#Port<0.2840>,
[<<"[\"reset\",{\"reduce_limit\":true,\"timeout\":5000}]">>,
10]],
[]},
{couch_os_process,writejson,2,
[{file,"couch_os_process.erl"},{line,93}]},
{couch_os_process,handle_call,3,
[{file,"couch_os_process.erl"},{line,183}]},
{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,580}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}
[Thu, 24 Dec 2015 07:17:23 GMT] [error] [<0.180.0>] {error_report,<0.31.0>,
{<0.180.0>,crash_report,
[[{initial_call,{couch_os_process,init,['Argument__1']}},
{pid,<0.180.0>},
{registered_name,[]},
{error_info,
{exit,
{badarg,
[{erlang,port_command,
[#Port<0.2840>,
[<<"[\"reset\",{\"reduce_limit\":true,\"timeout\":5000}]">>,
10]],
[]},
{couch_os_process,writejson,2,
[{file,"couch_os_process.erl"},{line,93}]},
{couch_os_process,handle_call,3,
[{file,"couch_os_process.erl"},{line,183}]},
{gen_server,handle_msg,5,
[{file,"gen_server.erl"},{line,580}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,237}]}]},
[{gen_server,terminate,6,
[{file,"gen_server.erl"},{line,737}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,237}]}]}},
{ancestors,
[couch_query_servers,couch_secondary_services,
couch_server_sup,<0.32.0>]},
{messages,[{#Port<0.2840>,{exit_status,127}}]},
{links,[<0.95.0>]},
一些沙发专家可以帮我解决这个问题吗?
【问题讨论】: