Brad Rhoads
Brad Rhoads

Reputation: 1846

CouchDB Server Fails To Start

All of a sudden I can't get the CouchDB Server to start on my Mac (OS 10.8.2). It seemed to die for no reason and now it won't start, even after a reboot.

UPDATE: I'm using v1.2.0.

Here's the error log. I searched for 'eaddrnotavail' but didn't find anything that helped me. Any ideas?

error_report,<0.34.0>,
                 {<0.127.0>,crash_report,
                  [[{initial_call,
                     {mochiweb_socket_server,init,['Argument__1']}},
                    {pid,<0.127.0>},
                    {registered_name,[]},
                    {error_info,
                     {exit,eaddrnotavail,
                      [{gen_server,init_it,6,
                        [{file,"gen_server.erl"},{line,313}]},
                       {proc_lib,init_p_do_apply,3,
                        [{file,"proc_lib.erl"},{line,227}]}]}},
                    {ancestors,
                     [couch_secondary_services,couch_server_sup,<0.35.0>]},
                    {messages,[]},
                    {links,[<0.96.0>]},
                    {dictionary,[]},
                    {trap_exit,true},
                    {status,running},
                    {heap_size,1597},
                    {stack_size,24},
                    {reductions,453}],
                   []]}}

Upvotes: 3

Views: 3384

Answers (1)

Kxepal
Kxepal

Reputation: 4679

eaddrnotavail error means that CouchDB (Erlang to be precise) cannot assign the requested address. You need to check your local.ini config file for bind_address and port parameters in the [httpd] section and ensure that they are set correctly.

As you noted in comments:

I had changed the bind address. I did that through futon, but thought I had changed it back.

Changing bind address via Futon could render your CouchDB broken, because you may easily enter a malformed value which will be automatically applied. However, this case is fixed and in 1.3. CouchDB will first validate the specified address before applying changes and will provide a more concrete error message as "invalid_bind_address" if something is wrong. More details in sources.

Upvotes: 2

Related Questions