Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Context: Mac OS X 10.6.8 Snow Leopard

I have just installed CouchDB (using MacPorts). It runs fine locally on

However, I can't quite figure how to make the server available to the rest of the intranet or to the wider internet. I do have a static IP.

My firewall settings are pretty basic:

Bassano:~ bruceaxtens$ sudo ipfw list
33300 deny log icmp from any to me in icmptypes 8
40000 allow tcp from any to any dst-port 5984
65535 allow ip from any to any


No iptables command

bash-3.2# netstat -an | grep 5984
tcp4       0      0         *.*                    LISTEN


bash-3.2# couchdb
Apache CouchDB 1.2.0 (LogLevel=info) is starting.
Failure to start Mochiweb: eaddrinuse
[error] [<0.123.0>] {error_report,<0.30.0>,
{"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}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,274}]}]}}}}}},[{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 ()


It seems that the above message implies that there is already a CouchDB instance running.


Update local.ini. The current instance of CouchDB is still locked onto localhost.

share|improve this question
Possibly not. I've just looked at that and it doesn't apply. Also the firewall tools aren't the same. MacOSX has a BSD Unix underbelly, so Linux stuff doesn't always help. –  boost Nov 21 '12 at 9:16
The theory is the same. The implementation is different. Are you certain that couch is listening on –  Tom O'Connor Nov 21 '12 at 9:17
Well ... yeah. Ok. I had another look at the Ubuntu answer and I still don't think it applies. And I've tried killing off the process and restarting it. –  boost Nov 21 '12 at 9:19
Have a closer look at the ubuntu question. There's wayyyyy more debug info provided in that question compared to yours. –  Tom O'Connor Nov 21 '12 at 9:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.