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

http://127.0.0.1:5984/_utils/index.html

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

MORE INFO

No iptables command

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

EVEN MORE INFO

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>,
             {<0.123.0>,crash_report,
              [[{initial_call,
             {mochiweb_socket_server,init,['Argument__1']}},
            {pid,<0.123.0>},
            {registered_name,[]},
            {error_info,
             {exit,eaddrinuse,
              [{gen_server,init_it,6,
                [{file,"gen_server.erl"},{line,320}]},
               {proc_lib,init_p_do_apply,3,
                [{file,"proc_lib.erl"},{line,227}]}]}},
            {ancestors,
             [couch_secondary_services,couch_server_sup,<0.31.0>]},
            {messages,[]},
            {links,[<0.92.0>]},
            {dictionary,[]},
            {trap_exit,true},
            {status,running},
            {heap_size,987},
            {stack_size,24},
            {reductions,462}],
               []]}}
{"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 ()

YET MORE

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

SOLUTION

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 0.0.0.0? –  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

 
discard

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

Browse other questions tagged or ask your own question.