我做了什么:
osx snow leopard
macports
installed couchdb
terminal>>couchdb
messgae:
=CRASH REPORT==== 5-Jan-2012::21:22:35 ===
crasher:
initial call: couch_event_sup:init/1
pid: <0.78.0>
registered_name: []
exception exit: {file_permission_error,
"/opt/local/var/log/couchdb/couch.log"}
in function gen_server:init_it/6 (gen_server.erl, line 313)
ancestors: [couch_primary_services,couch_server_sup,<0.31.0>]
messages: []
links: [<0.77.0>,<0.6.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 377
stack_size: 24
reductions: 127
neighbours:
=SUPERVISOR REPORT==== 5-Jan-2012::21:22:35 ===
Supervisor: {local,couch_primary_services}
Context: start_error
Reason: {file_permission_error,
"/opt/local/var/log/couchdb/couch.log"}
Offender: [{pid,undefined},
{name,couch_log},
{mfargs,{couch_log,start_link,[]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]
=SUPERVISOR REPORT==== 5-Jan-2012::21:22:35 ===
Supervisor: {local,couch_server_sup}
Context: start_error
Reason: shutdown
Offender: [{pid,undefined},
{name,couch_primary_services},
{mfargs,{couch_server_sup,start_primary_services,[]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=CRASH REPORT==== 5-Jan-2012::21:22:35 ===
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,shutdown}},
[{couch_server_sup,start_server,1,
[{file,"couch_server_sup.erl"},{line,106}]},
{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: 172
neighbours:
=INFO REPORT==== 5-Jan-2012::21:22:35 ===
application: couch
exited: {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,106}]},
{application_master,start_it_old,4,
[{file,"application_master.erl"},{line,274}]}]}}}}
type: temporary
答案 0 :(得分:3)
看起来像文件权限问题。试试这个:
# sudo chown -R couchdb:couchdb /opt/local/var/lib/couchdb/ /opt/local/var/log/couchdb/ /opt/local/etc/couchdb/
答案 1 :(得分:2)
尝试将CouchDB作为'sudo'运行。
sudo couchdb
答案 2 :(得分:2)
如果chmod -R
不起作用,请检查父目录的权限。
我的错误是/opt/local/var/lib/couchdb/_replicator.couch
。
/opt/local/var/lib/couchdb
很好(755),但/opt/local/var/lib/
以某种方式设置为750。 sudo chmod 755 /opt/local/var/lib/
工作了。
答案 3 :(得分:0)
在Ubuntu 12.04 LTS上从源代码构建和安装后出现类似问题。重新启动后启动正常。