0

我有一个 CouchDB 2.0 安装,在 Ubuntu 16.04 上运行,单节点。我的应用程序的一个特定方面是写入繁重的负载,但我希望读取需要及时,所以我希望使用它update_notification来重建每次n写入的索引。

我创建了一个小型 NodeJS 应用程序来处理这个问题,但发现每次编辑设计文档时,我的服务器都会崩溃。结果证明这是因为 CouchDB 正在启动数百个更新侦听器副本,而这又似乎是由于couch.log. 每次发生崩溃时,都会生成一个新的更新侦听器,但旧脚本不会终止。

我把它简化为一个简单的例子,update_notificationhander 实际上什么都不做,只是记录它从以下位置接收到的更新STDIN

更新.bash:

#!/bin/bash
while read -r line
do
    echo "$line" >> /home/www/logs/updates.log
done

本地.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我能想出的最简单的脚本仍然表现出这种行为。

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

4

1 回答 1

0

你发现了一个非常古老的 API,它在 CouchDB 1.0 附近被淘汰,有利于:

于 2017-06-22T13:36:42.280 回答