编辑设计文档并设置 update_notification 时出错
Errors when a design document is edited and an update_notification is set
我在 Ubuntu 16.04 上安装了 CouchDB 2.0,运行,单节点。我的应用程序的一个特定方面具有写入繁重的负载,但我希望读取需要及时,因此我希望使用 update_notification
在每次 n
写入时重建索引。
我创建了一个小型 NodeJS 应用程序来处理这个问题,但发现每次编辑设计文档时,我的服务器都会崩溃。结果证明这是因为 CouchDB 启动了数百个更新侦听器副本,而这又似乎是因为 couch.log
中报告的崩溃。每次发生崩溃时,都会生成一个新的更新侦听器,但旧脚本不会终止。
我已将其简化为一个简单的案例,其中 update_notification
处理程序实际上什么都不做,只是记录它从 STDIN
:
收到的更新
updates.bash:
#!/bin/bash
while read -r line
do
echo "$line" >> /home/www/logs/updates.log
done
local.ini:
[update_notification]
updates=/home/www/updates.bash
我希望看到 updates.log
充满通知,例如...
{"type":"updated","db":"transactions"}
{"type":"ddoc_updated","db":"transactions","id":"_design/temp"}
... 这就是在 CouchDB 1.6.1 上看到的。但是在 CouchDB 2.0 上,我看到我的 couch.log
填充了数百个崩溃报告,并且我的更新脚本反复重新生成。
[error] 2017-06-22T12:40:06.924056Z couchdb@couchdb-01.uk.tote21.net <0.3061.0> -------- CRASH REPORT Process (<0.3061.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [{'$couch_event',<<"shards/e0000000-ffffffff/transac...">>,...}], links: [<0.184.0>,<0.3062.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 182
[error] 2017-06-22T12:40:06.924572Z couchdb@couchdb-01.uk.tote21.net <0.184.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3061.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:07.007824Z couchdb@couchdb-01.uk.tote21.net <0.3128.0> -------- gen_server <0.3128.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/00000000-1fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3129.0>
[error] 2017-06-22T12:40:07.008373Z couchdb@couchdb-01.uk.tote21.net <0.3128.0> -------- CRASH REPORT Process (<0.3128.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.184.0>,<0.3129.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:07.009436Z couchdb@couchdb-01.uk.tote21.net <0.184.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3128.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:07.073859Z couchdb@couchdb-01.uk.tote21.net <0.3131.0> -------- gen_server <0.3131.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/a0000000-bfffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3132.0>
[error] 2017-06-22T12:40:07.074561Z couchdb@couchdb-01.uk.tote21.net <0.3131.0> -------- CRASH REPORT Process (<0.3131.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.184.0>,<0.3132.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:07.077530Z couchdb@couchdb-01.uk.tote21.net <0.184.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3131.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:07.188390Z couchdb@couchdb-01.uk.tote21.net <0.3134.0> -------- gen_server <0.3134.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/c0000000-dfffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3135.0>
[error] 2017-06-22T12:40:07.188829Z couchdb@couchdb-01.uk.tote21.net <0.3134.0> -------- CRASH REPORT Process (<0.3134.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.184.0>,<0.3135.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:07.189149Z couchdb@couchdb-01.uk.tote21.net <0.184.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3134.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:07.330580Z couchdb@couchdb-01.uk.tote21.net <0.3153.0> -------- gen_server <0.3153.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/40000000-5fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3154.0>
[error] 2017-06-22T12:40:07.330924Z couchdb@couchdb-01.uk.tote21.net <0.3153.0> -------- CRASH REPORT Process (<0.3153.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.184.0>,<0.3154.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:07.331223Z couchdb@couchdb-01.uk.tote21.net <0.184.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3153.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:07.331364Z couchdb@couchdb-01.uk.tote21.net <0.184.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3153.0> exit with reason reached_max_restart_intensity in context shutdown
[error] 2017-06-22T12:40:07.331476Z couchdb@couchdb-01.uk.tote21.net <0.181.0> -------- Supervisor couch_event_sup2 had child couch_event_os_sup started with couch_event_os_sup:start_link() at <0.184.0> exit with reason shutdown in context child_terminated
[error] 2017-06-22T12:40:07.356958Z couchdb@couchdb-01.uk.tote21.net <0.3158.0> -------- gen_server <0.3158.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/80000000-9fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3159.0>
[error] 2017-06-22T12:40:07.364351Z couchdb@couchdb-01.uk.tote21.net <0.3158.0> -------- CRASH REPORT Process (<0.3158.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.3156.0>,<0.3159.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:07.369489Z couchdb@couchdb-01.uk.tote21.net <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3158.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:07.382849Z couchdb@couchdb-01.uk.tote21.net <0.3175.0> -------- gen_server <0.3175.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/60000000-7fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3176.0>
[error] 2017-06-22T12:40:07.384947Z couchdb@couchdb-01.uk.tote21.net <0.3175.0> -------- CRASH REPORT Process (<0.3175.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.3156.0>,<0.3176.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:07.386137Z couchdb@couchdb-01.uk.tote21.net <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3175.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:11.992126Z couchdb@couchdb-01.uk.tote21.net <0.3179.0> -------- gen_server <0.3179.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/e0000000-ffffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3180.0>
[error] 2017-06-22T12:40:11.992790Z couchdb@couchdb-01.uk.tote21.net <0.3179.0> -------- CRASH REPORT Process (<0.3179.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.3156.0>,<0.3180.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:11.993045Z couchdb@couchdb-01.uk.tote21.net <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3179.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[info] 2017-06-22T12:40:12.264805Z couchdb@couchdb-01.uk.tote21.net <0.2873.0> -------- OS Process #Port<0.7740> Log :: function raised exception (new TypeError("doc.meta is undefined", "undefined", 14)) with doc._id 4d1a7b83e5bd85296941dd7ac19e13b6
[error] 2017-06-22T12:40:12.333125Z couchdb@couchdb-01.uk.tote21.net <0.3257.0> -------- gen_server <0.3257.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/00000000-1fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3258.0>
[error] 2017-06-22T12:40:12.335469Z couchdb@couchdb-01.uk.tote21.net <0.3257.0> -------- CRASH REPORT Process (<0.3257.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.3156.0>,<0.3258.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:12.338476Z couchdb@couchdb-01.uk.tote21.net <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3257.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:12.588788Z couchdb@couchdb-01.uk.tote21.net <0.3260.0> -------- gen_server <0.3260.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/a0000000-bfffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3261.0>
[error] 2017-06-22T12:40:12.589696Z couchdb@couchdb-01.uk.tote21.net <0.3260.0> -------- CRASH REPORT Process (<0.3260.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.3156.0>,<0.3261.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:12.590014Z couchdb@couchdb-01.uk.tote21.net <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3260.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:12.607826Z couchdb@couchdb-01.uk.tote21.net <0.3263.0> -------- gen_server <0.3263.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/60000000-7fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3264.0>
[error] 2017-06-22T12:40:12.612208Z couchdb@couchdb-01.uk.tote21.net <0.3263.0> -------- CRASH REPORT Process (<0.3263.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [{'$couch_event',<<"shards/20000000-3fffffff/transac...">>,...}], links: [<0.3156.0>,<0.3264.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 182
[error] 2017-06-22T12:40:12.614816Z couchdb@couchdb-01.uk.tote21.net <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3263.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:12.766033Z couchdb@couchdb-01.uk.tote21.net <0.3266.0> -------- gen_server <0.3266.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/c0000000-dfffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3267.0>
[error] 2017-06-22T12:40:12.766409Z couchdb@couchdb-01.uk.tote21.net <0.3266.0> -------- CRASH REPORT Process (<0.3266.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.3156.0>,<0.3267.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:12.770029Z couchdb@couchdb-01.uk.tote21.net <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3266.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:12.809470Z couchdb@couchdb-01.uk.tote21.net <0.3269.0> -------- gen_server <0.3269.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/40000000-5fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3270.0>
我想我对 update_notification
的工作原理做出了一些糟糕的假设,但对于我来说,我不知道那会是什么?这也是一个难以调试的问题,因为错误有些不透明,即使是我能想出的最简单的 update_notification
脚本仍然表现出这种行为。
有人知道我做错了什么吗?
您发现了一个非常古老的 API,它在 CouchDB 1.0 前后已退役,取而代之的是:
我在 Ubuntu 16.04 上安装了 CouchDB 2.0,运行,单节点。我的应用程序的一个特定方面具有写入繁重的负载,但我希望读取需要及时,因此我希望使用 update_notification
在每次 n
写入时重建索引。
我创建了一个小型 NodeJS 应用程序来处理这个问题,但发现每次编辑设计文档时,我的服务器都会崩溃。结果证明这是因为 CouchDB 启动了数百个更新侦听器副本,而这又似乎是因为 couch.log
中报告的崩溃。每次发生崩溃时,都会生成一个新的更新侦听器,但旧脚本不会终止。
我已将其简化为一个简单的案例,其中 update_notification
处理程序实际上什么都不做,只是记录它从 STDIN
:
updates.bash:
#!/bin/bash
while read -r line
do
echo "$line" >> /home/www/logs/updates.log
done
local.ini:
[update_notification]
updates=/home/www/updates.bash
我希望看到 updates.log
充满通知,例如...
{"type":"updated","db":"transactions"}
{"type":"ddoc_updated","db":"transactions","id":"_design/temp"}
... 这就是在 CouchDB 1.6.1 上看到的。但是在 CouchDB 2.0 上,我看到我的 couch.log
填充了数百个崩溃报告,并且我的更新脚本反复重新生成。
[error] 2017-06-22T12:40:06.924056Z couchdb@couchdb-01.uk.tote21.net <0.3061.0> -------- CRASH REPORT Process (<0.3061.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [{'$couch_event',<<"shards/e0000000-ffffffff/transac...">>,...}], links: [<0.184.0>,<0.3062.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 182
[error] 2017-06-22T12:40:06.924572Z couchdb@couchdb-01.uk.tote21.net <0.184.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3061.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:07.007824Z couchdb@couchdb-01.uk.tote21.net <0.3128.0> -------- gen_server <0.3128.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/00000000-1fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3129.0>
[error] 2017-06-22T12:40:07.008373Z couchdb@couchdb-01.uk.tote21.net <0.3128.0> -------- CRASH REPORT Process (<0.3128.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.184.0>,<0.3129.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:07.009436Z couchdb@couchdb-01.uk.tote21.net <0.184.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3128.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:07.073859Z couchdb@couchdb-01.uk.tote21.net <0.3131.0> -------- gen_server <0.3131.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/a0000000-bfffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3132.0>
[error] 2017-06-22T12:40:07.074561Z couchdb@couchdb-01.uk.tote21.net <0.3131.0> -------- CRASH REPORT Process (<0.3131.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.184.0>,<0.3132.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:07.077530Z couchdb@couchdb-01.uk.tote21.net <0.184.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3131.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:07.188390Z couchdb@couchdb-01.uk.tote21.net <0.3134.0> -------- gen_server <0.3134.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/c0000000-dfffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3135.0>
[error] 2017-06-22T12:40:07.188829Z couchdb@couchdb-01.uk.tote21.net <0.3134.0> -------- CRASH REPORT Process (<0.3134.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.184.0>,<0.3135.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:07.189149Z couchdb@couchdb-01.uk.tote21.net <0.184.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3134.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:07.330580Z couchdb@couchdb-01.uk.tote21.net <0.3153.0> -------- gen_server <0.3153.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/40000000-5fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3154.0>
[error] 2017-06-22T12:40:07.330924Z couchdb@couchdb-01.uk.tote21.net <0.3153.0> -------- CRASH REPORT Process (<0.3153.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.184.0>,<0.3154.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:07.331223Z couchdb@couchdb-01.uk.tote21.net <0.184.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3153.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:07.331364Z couchdb@couchdb-01.uk.tote21.net <0.184.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3153.0> exit with reason reached_max_restart_intensity in context shutdown
[error] 2017-06-22T12:40:07.331476Z couchdb@couchdb-01.uk.tote21.net <0.181.0> -------- Supervisor couch_event_sup2 had child couch_event_os_sup started with couch_event_os_sup:start_link() at <0.184.0> exit with reason shutdown in context child_terminated
[error] 2017-06-22T12:40:07.356958Z couchdb@couchdb-01.uk.tote21.net <0.3158.0> -------- gen_server <0.3158.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/80000000-9fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3159.0>
[error] 2017-06-22T12:40:07.364351Z couchdb@couchdb-01.uk.tote21.net <0.3158.0> -------- CRASH REPORT Process (<0.3158.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.3156.0>,<0.3159.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:07.369489Z couchdb@couchdb-01.uk.tote21.net <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3158.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:07.382849Z couchdb@couchdb-01.uk.tote21.net <0.3175.0> -------- gen_server <0.3175.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/60000000-7fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3176.0>
[error] 2017-06-22T12:40:07.384947Z couchdb@couchdb-01.uk.tote21.net <0.3175.0> -------- CRASH REPORT Process (<0.3175.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.3156.0>,<0.3176.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:07.386137Z couchdb@couchdb-01.uk.tote21.net <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3175.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:11.992126Z couchdb@couchdb-01.uk.tote21.net <0.3179.0> -------- gen_server <0.3179.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/e0000000-ffffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3180.0>
[error] 2017-06-22T12:40:11.992790Z couchdb@couchdb-01.uk.tote21.net <0.3179.0> -------- CRASH REPORT Process (<0.3179.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.3156.0>,<0.3180.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:11.993045Z couchdb@couchdb-01.uk.tote21.net <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3179.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[info] 2017-06-22T12:40:12.264805Z couchdb@couchdb-01.uk.tote21.net <0.2873.0> -------- OS Process #Port<0.7740> Log :: function raised exception (new TypeError("doc.meta is undefined", "undefined", 14)) with doc._id 4d1a7b83e5bd85296941dd7ac19e13b6
[error] 2017-06-22T12:40:12.333125Z couchdb@couchdb-01.uk.tote21.net <0.3257.0> -------- gen_server <0.3257.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/00000000-1fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3258.0>
[error] 2017-06-22T12:40:12.335469Z couchdb@couchdb-01.uk.tote21.net <0.3257.0> -------- CRASH REPORT Process (<0.3257.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.3156.0>,<0.3258.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:12.338476Z couchdb@couchdb-01.uk.tote21.net <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3257.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:12.588788Z couchdb@couchdb-01.uk.tote21.net <0.3260.0> -------- gen_server <0.3260.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/a0000000-bfffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3261.0>
[error] 2017-06-22T12:40:12.589696Z couchdb@couchdb-01.uk.tote21.net <0.3260.0> -------- CRASH REPORT Process (<0.3260.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.3156.0>,<0.3261.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:12.590014Z couchdb@couchdb-01.uk.tote21.net <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3260.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:12.607826Z couchdb@couchdb-01.uk.tote21.net <0.3263.0> -------- gen_server <0.3263.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/60000000-7fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3264.0>
[error] 2017-06-22T12:40:12.612208Z couchdb@couchdb-01.uk.tote21.net <0.3263.0> -------- CRASH REPORT Process (<0.3263.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [{'$couch_event',<<"shards/20000000-3fffffff/transac...">>,...}], links: [<0.3156.0>,<0.3264.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 182
[error] 2017-06-22T12:40:12.614816Z couchdb@couchdb-01.uk.tote21.net <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3263.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:12.766033Z couchdb@couchdb-01.uk.tote21.net <0.3266.0> -------- gen_server <0.3266.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/c0000000-dfffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3267.0>
[error] 2017-06-22T12:40:12.766409Z couchdb@couchdb-01.uk.tote21.net <0.3266.0> -------- CRASH REPORT Process (<0.3266.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.3156.0>,<0.3267.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180
[error] 2017-06-22T12:40:12.770029Z couchdb@couchdb-01.uk.tote21.net <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3266.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated
[error] 2017-06-22T12:40:12.809470Z couchdb@couchdb-01.uk.tote21.net <0.3269.0> -------- gen_server <0.3269.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240)
last msg: {'$couch_event',<<"shards/40000000-5fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}}
state: <0.3270.0>
我想我对 update_notification
的工作原理做出了一些糟糕的假设,但对于我来说,我不知道那会是什么?这也是一个难以调试的问题,因为错误有些不透明,即使是我能想出的最简单的 update_notification
脚本仍然表现出这种行为。
有人知道我做错了什么吗?
您发现了一个非常古老的 API,它在 CouchDB 1.0 前后已退役,取而代之的是: