Looks like you're trying to bind to a port < 1024 while not running as root.
On Thu, Sep 1, 2011 at 5:25 PM, kowsik <[email protected]> wrote: > Help please. Just compiled CouchDB on an EC2 instance and I'm running > it as user "couchdb". Get this exception, not sure what this means. If > I start this as "root", everything's okay. So maybe a permission > problem? But checked all the usual directories and they are all owned > by the "couchdb" user. > > Apache CouchDB 1.1.0 (LogLevel=error) is starting. > [error] [<0.114.0>] {error_report,<0.31.0>, > {<0.114.0>,crash_report, > [[{initial_call, > {mochiweb_socket_server,init,['Argument__1']}}, > {pid,<0.114.0>}, > {registered_name,[]}, > {error_info, > {exit, > {undef, > [{fdsrv,start,[]}, > {mochiweb_socket_server,init,1}, > {gen_server,init_it,6}, > {proc_lib,init_p_do_apply,3}]}, > [{gen_server,init_it,6}, > {proc_lib,init_p_do_apply,3}]}}, > {ancestors, > [couch_secondary_services,couch_server_sup, > <0.32.0>]}, > {messages,[]}, > {links,[<0.86.0>]}, > {dictionary,[]}, > {trap_exit,true}, > {status,running}, > {heap_size,1597}, > {stack_size,24}, > {reductions,468}], > []]}} > > =CRASH REPORT==== 1-Sep-2011::22:14:08 === > crasher: > initial call: mochiweb_socket_server:init/1 > pid: <0.114.0> > registered_name: [] > exception exit: {undef,[{fdsrv,start,[]}, > {mochiweb_socket_server,init,1}, > {gen_server,init_it,6}, > {proc_lib,init_p_do_apply,3}]} > in function gen_server:init_it/6 > ancestors: [couch_secondary_services,couch_server_sup,<0.32.0>] > messages: [] > links: [<0.86.0>] > dictionary: [] > trap_exit: true > status: running > heap_size: 1597 > stack_size: 24 > reductions: 468 > neighbours: > [error] [<0.86.0>] {error_report,<0.31.0>, > {<0.86.0>,supervisor_report, > [{supervisor,{local,couch_secondary_services}}, > {errorContext,start_error}, > {reason, > {'EXIT', > {badarg, > [{io,format, > [<0.31.0>,"Failure to start Mochiweb: ~s~n", > [{undef, > [{fdsrv,start,[]}, > {mochiweb_socket_server,init,1}, > {gen_server,init_it,6}, > {proc_lib,init_p_do_apply,3}]}]]}, > {couch_httpd,start_link,2}, > {supervisor,do_start_child,2}, > {supervisor,start_children,3}, > {supervisor,init_children,2}, > {gen_server,init_it,6}, > {proc_lib,init_p_do_apply,3}]}}}, > {offender, > [{pid,undefined}, > {name,httpd}, > {mfargs,{couch_httpd,start_link,[]}}, > {restart_type,permanent}, > {shutdown,1000}, > {child_type,worker}]}]}} > > Thanks, > > K. > --- > http://blitz.io > @pcapr >
