rasdaniil commented on issue #749: 2.1.0 crashes if peruser = true URL: https://github.com/apache/couchdb/issues/749#issuecomment-322127718 Unfortunately, after repeating the steps on my local ubuntu machine (without docker), the problem persists If the auth db exists (_users or custom defined), couchdb then crashes on start Thanks for your time Dan ``` danthedev@danthedevpc:~/Projects/github/couchdb/rel/couchdb$ bin/couchdb [info] 2017-08-14T08:15:09.581860Z couchdb@localhost <0.9.0> -------- Application couch_log started on node couchdb@localhost [info] 2017-08-14T08:15:09.588925Z couchdb@localhost <0.9.0> -------- Application folsom started on node couchdb@localhost [info] 2017-08-14T08:15:09.653730Z couchdb@localhost <0.9.0> -------- Application couch_stats started on node couchdb@localhost [info] 2017-08-14T08:15:09.653848Z couchdb@localhost <0.9.0> -------- Application khash started on node couchdb@localhost [info] 2017-08-14T08:15:09.667989Z couchdb@localhost <0.9.0> -------- Application couch_event started on node couchdb@localhost [info] 2017-08-14T08:15:09.675875Z couchdb@localhost <0.9.0> -------- Application ibrowse started on node couchdb@localhost [info] 2017-08-14T08:15:09.696017Z couchdb@localhost <0.9.0> -------- Application ioq started on node couchdb@localhost [info] 2017-08-14T08:15:09.696075Z couchdb@localhost <0.9.0> -------- Application mochiweb started on node couchdb@localhost [info] 2017-08-14T08:15:09.710956Z couchdb@localhost <0.204.0> -------- Apache CouchDB 2.1.0-f6156c3d1 is starting. [info] 2017-08-14T08:15:09.711073Z couchdb@localhost <0.205.0> -------- Starting couch_sup [error] 2017-08-14T08:15:09.863924Z couchdb@localhost <0.217.0> -------- CRASH REPORT Process (<0.217.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.204.0>], messages: [], links: [<0.213.0>,<0.93.0>], dictionary: [], trap_exit: false, status: running, heap_size: 2586, stack_size: 27, reductions: 2273 [error] 2017-08-14T08:15:09.865047Z couchdb@localhost <0.213.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-08-14T08:15:09.866105Z couchdb@localhost <0.205.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-08-14T08:15:09.866652Z couchdb@localhost <0.204.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}]}]}}}}}} ``` ---------------------------------------------------------------- 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
