On Thu, Feb 16, 2012 at 12:59 PM, Aurélien Bénel <[email protected]> wrote: > Hi Peng, > >> ~/Downloads/readnotes$ couchdb >> Apache CouchDB 1.1.1 (LogLevel=info) is starting. (...) >> exception exit: {file_permission_error, >> "/opt/local/var/log/couchdb/couch.log"} > > It seems to be a file permission error on log files. > You may try `sudo couchdb` instead of `couchdb`...
~$ ll -d /opt/local/var/log/couchdb drwxr-xr-x 4 couchdb couchdb 136 2012-02-16 12:04:42 /opt/local/var/log/couchdb It still has errors. ~$ sudo couchdb Password: Apache CouchDB 1.1.1 (LogLevel=info) is starting. Apache CouchDB has started. Time to relax. [info] [<0.31.0>] Apache CouchDB has started on http://127.0.0.1:5984/ [error] [<0.30.0>] {error_report,<0.30.0>, {<0.30.0>,crash_report, [[{initial_call, {application_master,init, ['Argument__1','Argument__2','Argument__3', 'Argument__4']}}, {pid,<0.30.0>}, {registered_name,[]}, {error_info, {exit, {bad_return, {{couch_app,start, [normal, ["/opt/local/etc/couchdb/default.ini", "/opt/local/etc/couchdb/local.ini"]]}, {'EXIT', {{badmatch,{error,enoent}}, [{couch_server_sup,start_server,1, [{file,"couch_server_sup.erl"},{line,138}]}, {application_master,start_it_old,4, [{file,"application_master.erl"}, {line,274}]}]}}}}, [{application_master,init,4, [{file,"application_master.erl"},{line,138}]}, {proc_lib,init_p_do_apply,3, [{file,"proc_lib.erl"},{line,227}]}]}}, {ancestors,[<0.29.0>]}, {messages,[{'EXIT',<0.31.0>,normal}]}, {links,[<0.29.0>,<0.7.0>]}, {dictionary,[]}, {trap_exit,true}, {status,running}, {heap_size,987}, {stack_size,24}, {reductions,174}], []]}} =CRASH REPORT==== 16-Feb-2012::16:47:54 === crasher: initial call: application_master:init/4 pid: <0.30.0> registered_name: [] exception exit: {bad_return, {{couch_app,start, [normal, ["/opt/local/etc/couchdb/default.ini", "/opt/local/etc/couchdb/local.ini"]]}, {'EXIT', {{badmatch,{error,enoent}}, [{couch_server_sup,start_server,1, [{file,"couch_server_sup.erl"},{line,138}]}, {application_master,start_it_old,4, [{file,"application_master.erl"}, {line,274}]}]}}}} in function application_master:init/4 (application_master.erl, line 138) ancestors: [<0.29.0>] messages: [{'EXIT',<0.31.0>,normal}] links: [<0.29.0>,<0.7.0>] dictionary: [] trap_exit: true status: running heap_size: 987 stack_size: 24 reductions: 174 neighbours: =INFO REPORT==== 16-Feb-2012::16:47:54 === application: couch exited: {bad_return, {{couch_app,start, [normal, ["/opt/local/etc/couchdb/default.ini", "/opt/local/etc/couchdb/local.ini"]]}, {'EXIT', {{badmatch,{error,enoent}}, [{couch_server_sup,start_server,1, [{file,"couch_server_sup.erl"},{line,138}]}, {application_master,start_it_old,4, [{file,"application_master.erl"},{line,274}]}]}}}} type: temporary [info] [<0.96.0>] Stopping all ongoing replications because the replicator database was deleted or changed -- Regards, Peng
