我在debian 8 64位实例上设置了couchdb。
当我查询其中一个视图时,它会从卷曲的角度来看超时。
以下是我看到的形式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>]},
一些沙发专家可以帮我解决这个问题吗?
答案 0 :(得分:1)
请注意,如果reduce函数的结果长于初始值列表,则会引发Query Server错误。但是,可以通过将reduce_limit config选项设置为false来禁用此行为
http://docs.couchdb.org/en/latest/couchapp/ddocs.html
在页面中搜索reduce_limit
的出现次数。