jamescorbett commented on issue #570: feat: update for 2.0 patch by @guillett
URL: https://github.com/apache/couchdb/pull/570#issuecomment-306132727
 
 
   Just tried this, worked great first time. On restart I'm getting a crash.
   ```[info] 2017-06-05T08:24:17.964899Z nonode@nohost <0.198.0> -------- 
Starting couch_sup
   [error] 2017-06-05T08:24:18.100303Z nonode@nohost <0.234.0> -------- CRASH 
REPORT Process  (<0.234.0>) with 0 neighbors exited with reason: bad argument 
in call to ets:member(mem3_openers, <<"_users">>) at 
mem3_shards:maybe_spawn_shard_writer/3(line:486) <= 
mem3_shards:load_shards_from_db/2(line:389) <= 
mem3_shards:load_shards_from_disk/1(line:378) <= mem3_shards:for_db/2(line:59) 
<= mem3_shards:local/1(line:156) <= couch_peruser:init/0(line:58) <= 
couch_peruser:init/1(line:187); initial_call: 
{couch_peruser,init,['Argument__1']}, ancestors: 
[couch_secondary_services,couch_sup,<0.197.0>], messages: [], links: 
[<0.206.0>,<0.83.0>], dictionary: [], trap_exit: false, status: running, 
heap_size: 4185, stack_size: 27, reductions: 3938
   [error] 2017-06-05T08:24:18.100543Z nonode@nohost <0.206.0> -------- 
Supervisor couch_secondary_services had child couch_peruser started with 
couch_peruser:start_link() at undefined exit with reason bad argument in call 
to ets:member(mem3_openers, <<"_users">>) at 
mem3_shards:maybe_spawn_shard_writer/3(line:486) <= 
mem3_shards:load_shards_from_db/2(line:389) <= 
mem3_shards:load_shards_from_disk/1(line:378) <= mem3_shards:for_db/2(line:59) 
<= mem3_shards:local/1(line:156) <= couch_peruser:init/0(line:58) <= 
couch_peruser:init/1(line:187) in context start_error
   [error] 2017-06-05T08:24:18.101403Z nonode@nohost <0.198.0> -------- 
Supervisor couch_sup had child couch_secondary_services started with 
couch_secondary_sup:start_link() at undefined exit with reason 
{shutdown,{failed_to_start_child,couch_peruser,{badarg,[{ets,member,[mem3_openers,<<"_users">>],[]},{mem3_shards,maybe_spawn_shard_writer,3,[{file,"src/mem3_shards.erl"},{line,486}]},{mem3_shards,load_shards_from_db,2,[{file,"src/mem3_shards.erl"},{line,389}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,378}]},{mem3_shards,for_db,2,[{file,"src/mem3_shards.erl"},{line,59}]},{mem3_shards,local,1,[{file,"src/mem3_shards.erl"},{line,156}]},{couch_peruser,init,0,[{file,...},...]},...]}}}
 in context start_error
   [error] 2017-06-05T08:24:18.101486Z nonode@nohost <0.197.0> -------- Error 
starting Apache CouchDB:
   
       
{error,{shutdown,{failed_to_start_child,couch_secondary_services,{shutdown,{failed_to_start_child,couch_peruser,{badarg,[{ets,member,[mem3_openers,<<"_users">>],[]},{mem3_shards,maybe_spawn_shard_writer,3,[{file,"src/mem3_shards.erl"},{line,486}]},{mem3_shards,load_shards_from_db,2,[{file,"src/mem3_shards.erl"},{line,389}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,378}]},{mem3_shards,for_db,2,[{file,"src/mem3_shards.erl"},{line,59}]},{mem3_shards,local,1,[{file,"src/mem3_shards.erl"},{line,156}]},{couch_peruser,init,0,[{file,"src/couch_peruser.erl"},{line,58}]},{couch_peruser,init,1,[{file,"src/couch_peruser.erl"},{line,187}]}]}}}}}}
   
   
   [error] 2017-06-05T08:24:18.101983Z nonode@nohost <0.196.0> -------- CRASH 
REPORT Process  (<0.196.0>) with 0 neighbors exited with reason: 
{{shutdown,{failed_to_start_child,couch_secondary_services,{shutdown,{failed_to_start_child,couch_peruser,{badarg,[{ets,member,[mem3_openers,<<"_users">>],[]},{mem3_shards,maybe_spawn_shard_writer,3,[{file,"src/mem3_shards.erl"},{line,486}]},{mem3_shards,load_shards_from_db,2,[{file,"src/mem3_shards.erl"},{line,389}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,378}]},{mem3_shards,for_db,2,[{file,"src/mem3_shards.erl"},{line,59}]},{mem3_shards,local,1,[{file,"s..."},...]},...]}}}}},...}
 at application_master:init/4(line:133) <= 
proc_lib:init_p_do_apply/3(line:237); initial_call: 
{application_master,init,['Argument__1','Argument__2',...]}, ancestors: 
[<0.195.0>], messages: [{'EXIT',<0.197.0>,normal}], links: [<0.195.0>,<0.7.0>], 
dictionary: [], trap_exit: true, status: running, heap_size: 987, stack_size: 
27, reduct
 ions: 158
   [info] 2017-06-05T08:24:18.102835Z nonode@nohost <0.7.0> -------- 
Application couch exited with reason: 
{{shutdown,{failed_to_start_child,couch_secondary_services,{shutdown,{failed_to_start_child,couch_peruser,{badarg,[{ets,member,[mem3_openers,<<"_users">>],[]},{mem3_shards,maybe_spawn_shard_writer,3,[{file,"src/mem3_shards.erl"},{line,486}]},{mem3_shards,load_shards_from_db,2,[{file,"src/mem3_shards.erl"},{line,389}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,378}]},{mem3_shards,for_db,2,[{file,"src/mem3_shards.erl"},{line,59}]},{mem3_shards,local,1,[{file,"s..."},...]},...]}}}}},...}
   [os_mon] memory supervisor port (memsup): Erlang has closed
   [os_mon] cpu supervisor port (cpu_sup): Erlang has closed
   {"Kernel pid 
terminated",application_controller,"{application_start_failure,couch,{{shutdown,{failed_to_start_child,couch_secondary_services,{shutdown,{failed_to_start_child,couch_peruser,{badarg,[{ets,member,[mem3_openers,<<\"_users\">>],[]},{mem3_shards,maybe_spawn_shard_writer,3,[{file,\"src/mem3_shards.erl\"},{line,486}]},{mem3_shards,load_shards_from_db,2,[{file,\"src/mem3_shards.erl\"},{line,389}]},{mem3_shards,load_shards_from_disk,1,[{file,\"src/mem3_shards.erl\"},{line,378}]},{mem3_shards,for_db,2,[{file,\"src/mem3_shards.erl\"},{line,59}]},{mem3_shards,local,1,[{file,\"src/mem3_shards.erl\"},{line,156}]},{couch_peruser,init,0,[{file,\"src/couch_peruser.erl\"},{line,58}]},{couch_peruser,init,1,[{file,\"src/couch_peruser.erl\"},{line,187}]}]}}}}},{couch_app,start,[normal,[]]}}}"}
   
   Crash dump was written to: erl_crash.dump
   Kernel pid terminated (application_controller) 
({application_start_failure,couch,{{shutdown,{failed_to_start_child,couch_secondary_services,{shutdown,{failed_to_start_child,couch_peruser,{badarg,[{e```
   
   Build was based on: 
https://github.com/klaemo/docker-couchdb/blob/master/2.0.0/Dockerfile with this 
git branch instead of the tar from apache
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to