编辑设计文档并设置update_notification时的错误

时间:2017-06-22 13:08:38

标签: couchdb couchdb-2.0

我已经安装了CouchDB 2.0,在Ubuntu 16.04上运行,单节点。我的应用程序的一个特殊方面是写入负载,但我希望读取需要及时,因此我希望使用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脚本仍然表现出这种行为。

有谁知道我在这里做错了什么?

1 个答案:

答案 0 :(得分:0)

你发现了一个非常古老的API,它在CouchDB 1.0中被淘汰,支持: