Dshoe opened a new issue #910: CouchDB Fails to Start on Ubuntu 17.10 URL: https://github.com/apache/couchdb/issues/910 <!--- Provide a general summary of the issue in the Title above --> The CouchDB package from the official Ubuntu 17.10 package repositories currently fails to start through systemctl or directly using the CLI. I have tested this on my main machine using bare metal, as well as a fresh install with updated packages with only CouchDB installed in a VM. ## Expected Behavior <!--- If you're describing a bug, tell us what should happen --> <!--- If you're suggesting a change/improvement, tell us how it should work --> The CouchDB systemctl process to start using the `systemctl start *` or `systemctl restart *` command, or using `couchdb` from the terminal. ## Current Behavior <!--- If describing a bug, tell us what happens instead of the expected behavior --> <!--- If suggesting a change/improvement, explain the difference from current behavior --> CouchDB fails to start, and `systemctl status` reports this: `? couchdb.service - System-wide CouchDB instance Loaded: loaded (/lib/systemd/system/couchdb.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2017-10-23 06:51:10 CDT; 1s ago Process: 1919 ExecStart=/usr/bin/couchdb (code=exited, status=1/FAILURE) Main PID: 1919 (code=exited, status=1/FAILURE) Oct 23 06:51:10 devin-VirtualBox systemd[1]: couchdb.service: Main process exited, code=exited, status=1/FAILURE Oct 23 06:51:10 devin-VirtualBox systemd[1]: couchdb.service: Unit entered failed state. Oct 23 06:51:10 devin-VirtualBox systemd[1]: couchdb.service: Failed with result 'exit-code'. Oct 23 06:51:10 devin-VirtualBox systemd[1]: couchdb.service: Service hold-off time over, scheduling restart. Oct 23 06:51:10 devin-VirtualBox systemd[1]: Stopped System-wide CouchDB instance. Oct 23 06:51:10 devin-VirtualBox systemd[1]: couchdb.service: Start request repeated too quickly. Oct 23 06:51:10 devin-VirtualBox systemd[1]: Failed to start System-wide CouchDB instance. Oct 23 06:51:10 devin-VirtualBox systemd[1]: couchdb.service: Unit entered failed state. Oct 23 06:51:10 devin-VirtualBox systemd[1]: couchdb.service: Failed with result 'exit-code'. ` If I attempt to execute `sudo couchdb` from the terminal, the process fails to start with this output: `Apache CouchDB 1.6.0 (LogLevel=info) is starting. [error] [<0.123.0>] {error_report,<0.59.0>, {<0.123.0>,supervisor_report, [{supervisor,{local,couch_secondary_services}}, {errorContext,start_error}, {reason, {'EXIT', {undef, [{crypto,rand_bytes,[16],[]}, {couch_uuids,random,0, [{file,"couch_uuids.erl"},{line,33}]}, {couch_server,get_uuid,0, [{file,"couch_server.erl"},{line,54}]}, {couch_httpd,start_link,2, [{file,"couch_httpd.erl"},{line,119}]}, {supervisor,do_start_child,2, [{file,"supervisor.erl"},{line,365}]}, {supervisor,start_children,3, [{file,"supervisor.erl"},{line,348}]}, {supervisor,init_children,2, [{file,"supervisor.erl"},{line,314}]}, {gen_server,init_it,2, [{file,"gen_server.erl"},{line,365}]}]}}}, {offender, [{pid,undefined}, {id,httpd}, {mfargs,{couch_httpd,start_link,[]}}, {restart_type,permanent}, {shutdown,brutal_kill}, {child_type,worker}]}]}} =SUPERVISOR REPORT==== 23-Oct-2017::06:50:06 === Supervisor: {local,couch_secondary_services} Context: start_error Reason: {'EXIT', {undef, [{crypto,rand_bytes,[16],[]}, {couch_uuids,random,0, [{file,"couch_uuids.erl"},{line,33}]}, {couch_server,get_uuid,0, [{file,"couch_server.erl"},{line,54}]}, {couch_httpd,start_link,2, [{file,"couch_httpd.erl"},{line,119}]}, {supervisor,do_start_child,2, [{file,"supervisor.erl"},{line,365}]}, {supervisor,start_children,3, [{file,"supervisor.erl"},{line,348}]}, {supervisor,init_children,2, [{file,"supervisor.erl"},{line,314}]}, {gen_server,init_it,2, [{file,"gen_server.erl"},{line,365}]}]}} Offender: [{pid,undefined}, {id,httpd}, {mfargs,{couch_httpd,start_link,[]}}, {restart_type,permanent}, {shutdown,brutal_kill}, {child_type,worker}] [error] [<0.113.0>] {error_report,<0.59.0>, {<0.113.0>,supervisor_report, [{supervisor,{local,couch_server_sup}}, {errorContext,start_error}, {reason, {shutdown, {failed_to_start_child,httpd, {'EXIT', {undef, [{crypto,rand_bytes,[16],[]}, {couch_uuids,random,0, [{file,"couch_uuids.erl"},{line,33}]}, {couch_server,get_uuid,0, [{file,"couch_server.erl"},{line,54}]}, {couch_httpd,start_link,2, [{file,"couch_httpd.erl"},{line,119}]}, {supervisor,do_start_child,2, [{file,"supervisor.erl"},{line,365}]}, {supervisor,start_children,3, [{file,"supervisor.erl"},{line,348}]}, {supervisor,init_children,2, [{file,"supervisor.erl"},{line,314}]}, {gen_server,init_it,2, [{file,"gen_server.erl"},{line,365}]}]}}}}}, {offender, [{pid,undefined}, {id,couch_secondary_services}, {mfargs,{couch_secondary_sup,start_link,[]}}, {restart_type,permanent}, {shutdown,infinity}, {child_type,supervisor}]}]}} =SUPERVISOR REPORT==== 23-Oct-2017::06:50:06 === Supervisor: {local,couch_server_sup} Context: start_error Reason: {shutdown, {failed_to_start_child,httpd, {'EXIT', {undef, [{crypto,rand_bytes,[16],[]}, {couch_uuids,random,0, [{file,"couch_uuids.erl"},{line,33}]}, {couch_server,get_uuid,0, [{file,"couch_server.erl"},{line,54}]}, {couch_httpd,start_link,2, [{file,"couch_httpd.erl"},{line,119}]}, {supervisor,do_start_child,2, [{file,"supervisor.erl"},{line,365}]}, {supervisor,start_children,3, [{file,"supervisor.erl"},{line,348}]}, {supervisor,init_children,2, [{file,"supervisor.erl"},{line,314}]}, {gen_server,init_it,2, [{file,"gen_server.erl"}, {line,365}]}]}}}} Offender: [{pid,undefined}, {id,couch_secondary_services}, {mfargs,{couch_secondary_sup,start_link,[]}}, {restart_type,permanent}, {shutdown,infinity}, {child_type,supervisor}] {"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/etc/couchdb/default.ini","/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,couch_secondary_services,{shutdown,{failed_to_start_child,httpd,{'EXIT',{undef,[{crypto,rand_bytes,[16],[]},{couch_uuids,random,0,[{file,"couch_uuids.erl"},{line,33}]},{couch_server,get_uuid,0,[{file,"couch_server.erl"},{line,54}]},{couch_httpd,start_link,2,[{file,"couch_httpd.erl"},{line,119}]},{supervisor,do_start_child,2,[{file,"supervisor.erl"},{line,365}]},{supervisor,start_children,3,[{file,"supervisor.erl"},{line,348}]},{supervisor,init_children,2,[{file,"supervisor.erl"},{line,314}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,365}]}]}}}}}}}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,273}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_em ,1,[]},{init,do_boot,3,[]}]}} init terminating in do_boot ({{badmatch,{error,{bad_return,{_}}}},[{couch,start,0,[{_},{_}]},{init,start_em,1,[]},{init,do_boot,3,[]}]}) Crash dump is being written to: erl_crash.dump...done` ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> <!--- or ideas how to implement the addition or change --> ## Steps to Reproduce (for bugs) <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1. Install Ubuntu 17.10 2. Update and upgrade packages through apt (optional) 3. `sudo systemctl status couchdb` ## Context <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> I am a developer and I am working on an application that utilizes CouchDB as a no SQL database. Due to my dependency on this I will need to revert to using Ubuntu 17.04 or 16.04 to continue my development. ## Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * Version used: 1.6.0 * Operating System and version (desktop or mobile): Ubuntu 17.10
---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services