2017-06-22 1 views
0

Ich habe eine CouchDB 2.0 Installation, die auf Ubuntu 16.04, single node läuft. Ein bestimmter Aspekt meiner Anwendung hat eine schwere Schreiblast, aber ich möchte, dass die Lesevorgänge zeitnah sind, also suche ich update_notification, Indizes neu zu erstellen, schreibt alle n.Fehler, wenn ein Design-Dokument bearbeitet wird und eine update_notification gesetzt ist

Ich habe eine kleine NodeJS-Anwendung erstellt, um damit umzugehen, aber ich habe festgestellt, dass mein Server bei jeder Bearbeitung eines Entwurfsdokuments umfallen würde. Dies stellte sich heraus, weil CouchDB Hunderte von Kopien des Update-Listeners startete, was wiederum auf Abstürze zurückzuführen war, die unter couch.log gemeldet wurden. Bei jedem Absturz wurde ein neuer Update-Listener erzeugt, aber das alte Skript wurde nicht beendet.

Ich habe dies verglichen zu einem einfachen Fall nach unten, wo die update_notification Hander eigentlich gar nichts anderes als das Updates protokollieren von STDIN erhält:

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 

ich erwarten würde, um zu sehen updates.log wie mit Benachrichtigungen füllen ...

{"type":"updated","db":"transactions"}  
{"type":"ddoc_updated","db":"transactions","id":"_design/temp"} 

... und dies ist, was auf CouchDB 1.6.1 gesehen wird. Aber auf der CouchDB 2.0 sehe ich meine couch.log mit Hunderten von Absturzberichten gefüllt, und mein Update-Skript wurde immer wieder erstellt.

[error] 2017-06-22T12:40:06.924056Z [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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> 

Ich vermute, ich einige schlechte Annahmen über gemacht haben, wie update_notification funktioniert, aber für das Leben von mir, ich weiß nicht, was das sein könnte? Es ist auch ein schwieriges Problem zu debuggen, da die Fehler etwas undurchsichtig sind und selbst das einfachste Skript, das ich mir vorstellen kann, zeigt immer noch das Verhalten.

Weiß jemand, was ich hier falsch mache?

Antwort

Verwandte Themen