janl / couchdbx-core

Package a CouchDB installation on Mac OS X with any Erlang and CouchDB version
89 stars 12 forks source link

mac 0.11.0-R13B04. fails to start - transient error #22

Closed mfidelman closed 14 years ago

mfidelman commented 14 years ago

rebooted the machine - released the port - seems to be running

Just downloaded the latest 1-click Mac install. Unzipped, doubleclicked, got a window running Erlang, which immediately displayed: 1> Apache CouchDB 0.11.0 (LogLevel=info) is starting. 1> Failure to start Mochiweb: eaddrinuse 1> [error] [<0.97.0>] {error_report,<0.34.0>, {<0.97.0>,crash_report, [[{initial_call,{mochiweb_socket_server,init,['Argument__1']}}, {pid,<0.97.0>}, {registered_name,[]}, {error_info,{exit,eaddrinuse, [{gen_server,init_it,6}, {proc_lib,init_p_do_apply,3}]}}, {ancestors,[couch_secondary_services,couch_server_sup, <0.35.0>]}, {messages,[]}, {links,[<0.88.0>]}, {dictionary,[]}, {trap_exit,true}, {status,running}, {heap_size,987}, {stack_size,24}, {reductions,448}], []]}} 1> =CRASH REPORT==== 16-Apr-2010::13:43:08 === crasher: initial call: mochiweb_socket_server:init/1 pid: <0.97.0> registered_name: [] exception exit: eaddrinuse in function gen_server:init_it/6 ancestors: [couch_secondary_services,couch_server_sup,<0.35.0>] messages: [] links: [<0.88.0>] dictionary: [] trap_exit: true status: running heap_size: 987 stack_size: 24 reductions: 448 neighbours: 1> [error] [<0.88.0>] {error_report,<0.34.0>, {<0.88.0>,supervisor_report, [{supervisor,{local,couch_secondary_services}}, {errorContext,start_error}, {reason,eaddrinuse}, {offender,[{pid,undefined}, {name,httpd}, {mfa,{couch_httpd,start_link,[]}}, {restart_type,permanent}, {shutdown,brutal_kill}, {child_type,worker}]}]}} 1> =SUPERVISOR REPORT==== 16-Apr-2010::13:43:08 === Supervisor: {local,couch_secondary_services} Context: start_error Reason: eaddrinuse Offender: [{pid,undefined}, {name,httpd}, {mfa,{couch_httpd,start_link,[]}}, {restart_type,permanent}, {shutdown,brutal_kill}, {child_type,worker}]

1> [error] [<0.80.0>] {error_report,<0.34.0>, {<0.80.0>,supervisor_report, [{supervisor,{local,couch_server_sup}}, {errorContext,start_error}, {reason,shutdown}, {offender, [{pid,undefined}, {name,couch_secondary_services}, {mfa,{couch_server_sup,start_secondary_services,[]}}, {restart_type,permanent}, {shutdown,infinity}, {child_type,supervisor}]}]}} 1> =SUPERVISOR REPORT==== 16-Apr-2010::13:43:08 === Supervisor: {local,couch_server_sup} Context: start_error Reason: shutdown Offender: [{pid,undefined}, {name,couch_secondary_services}, {mfa,{couch_server_sup,start_secondary_services,[]}}, {restart_type,permanent}, {shutdown,infinity}, {child_type,supervisor}]

1> =CRASH REPORT==== 16-Apr-2010::13:43:08 === crasher: initial call: application_master:init/4 pid: <0.34.0> registered_name: [] exception exit: {bad_return, {{couch_app,start, [normal, ["/Users/jan/Work/couchdbx-builder/dist/couchdb_0.11.0/etc/couchdb/default.ini", "/Users/jan/Work/couchdbx-builder/dist/couchdb_0.11.0/etc/couchdb/local.ini"]]}, {'EXIT', {{badmatch,{error,shutdown}}, [{couch_server_sup,start_server,1}, {file,get_cwd,0}]}}}} in function application_master:init/4 ancestors: [<0.33.0>] messages: [{'EXIT',<0.35.0>,normal}] links: [<0.33.0>,<0.6.0>] dictionary: [] trap_exit: true status: running heap_size: 1597 stack_size: 24 reductions: 196 neighbours: 1> =INFO REPORT==== 16-Apr-2010::13:43:08 === application: couch exited: {bad_return,{{couch_app,start, [normal, ["/Users/jan/Work/couchdbx-builder/dist/couchdb_0.11.0/etc/couchdb/default.ini", "/Users/jan/Work/couchdbx-builder/dist/couchdb_0.11.0/etc/couchdb/local.ini"]]}, {'EXIT',{{badmatch,{error,shutdown}}, [{couch_server_sup,start_server,1}, {file,get_cwd,0}]}}}} type: temporary 1>

janl commented 14 years ago

the eaddreinuse tells you, you have a service running on the Port you are trying to start CouchDB on. The default port is 5984 and you might just have another CouchDB running already :)