realulim commented on issue #749: 2.1.0 crashes if peruser = true URL: https://github.com/apache/couchdb/issues/749#issuecomment-322888251 I'm having the same issue, but without docker. Compiled from sources, ensured that I have a working CouchDB (via an integration test suite) and can add and remove users. All that with the couch_peruser feature disabled. Once I enable it and restart CouchDB I get this in the logfile: [info] 2017-08-16T20:23:35.396381Z [email protected] <0.7.0> -------- Application couch_log started on node '[email protected]' [info] 2017-08-16T20:23:35.399406Z [email protected] <0.7.0> -------- Application folsom started on node '[email protected]' [info] 2017-08-16T20:23:35.425621Z [email protected] <0.7.0> -------- Application couch_stats started on node '[email protected]' [info] 2017-08-16T20:23:35.425714Z [email protected] <0.7.0> -------- Application khash started on node '[email protected]' [info] 2017-08-16T20:23:35.430959Z [email protected] <0.7.0> -------- Application couch_event started on node '[email protected]' [info] 2017-08-16T20:23:35.434529Z [email protected] <0.7.0> -------- Application ibrowse started on node '[email protected]' [info] 2017-08-16T20:23:35.437645Z [email protected] <0.7.0> -------- Application ioq started on node '[email protected]' [info] 2017-08-16T20:23:35.437743Z [email protected] <0.7.0> -------- Application mochiweb started on node '[email protected]' [info] 2017-08-16T20:23:35.442567Z [email protected] <0.203.0> -------- Apache CouchDB 2.1.0 is starting. [info] 2017-08-16T20:23:35.442644Z [email protected] <0.204.0> -------- Starting couch_sup [error] 2017-08-16T20:23:35.488398Z [email protected] <0.216.0> -------- CRASH REPORT Process (<0.216.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.203.0>], messages: [], links: [<0.212.0>,<0.92.0>], dictionary: [], trap_exit: false, status: running, heap_size: 2586, stack_size: 27, reductions: 3758 [error] 2017-08-16T20:23:35.488639Z [email protected] <0.212.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-16T20:23:35.488984Z [email protected] <0.204.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-16T20:23:35.489245Z [email protected] <0.203.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
