Unable to restart CouchDB

327 views
Skip to first unread message

Yves S. Garret

unread,
Jul 21, 2013, 6:43:50 PM7/21/13
to us...@couchdb.apache.org
Hi, I'm currently running Mac OS 10.7.5. I have CouchDB installed and
would like to restart it. The
problem arises when I do try to do this, this is the error that I get:

% sudo ./couchdb restart
Password:
Apache CouchDB 1.3.1 (LogLevel=info) is starting.
Failure to start Mochiweb: eaddrinuse
{"init terminating in
do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/opt/local/etc/couchdb/default.ini","/opt/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,couch_secondary_services,{shutdown,{failed_to_start_child,httpd,eaddrinuse}}}}}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,269}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

What am I doing wrong here?

Jeff Snider

unread,
Jul 21, 2013, 11:56:54 PM7/21/13
to us...@couchdb.apache.org
couchdb isn't a service script in the way you're trying to use it. It is just trying to start up again and failing because one is already running.

What you probably want is:

sudo launchctl unload /Library/LaunchDaemons/org.apache.couchdb.plist; sudo launchctl load /Library/LaunchDaemons/org.apache.couchdb.plist


-Jeff

Yves S. Garret

unread,
Jul 22, 2013, 7:15:35 AM7/22/13
to us...@couchdb.apache.org
Hi, yes, you're right about this. I managed to restart couchdb just fine.
Reply all
Reply to author
Forward
0 new messages