couchdb在第一次启动时就崩溃了

couchdb在第一次启动时就崩溃了,couchdb,Couchdb,我所做的: 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 ex

我所做的:

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
osx雪豹
麦克波特
已安装的couchdb
终端>>couchdb
消息:
=事故报告===2012年1月5日::21:22:35===
撞车者:
初始呼叫:coach\u event\u sup:init/1
pid:
注册名称:[]
异常退出:{file\u permission\u error,
“/opt/local/var/log/couchdb/coach.log”}
在gen_server函数中:init_it/6(gen_server.erl,第313行)
祖先:[coach\u主\u服务,coach\u服务器\u sup,]
信息:[]
链接:[,]
字典:[]
陷阱_出口:错误
状态:正在运行
堆大小:377
堆栈大小:24
减少:127
邻居:
=主管报告===2012年1月5日::21:22:35===
主管:{本地,主要服务}
上下文:启动错误
原因:{文件\权限\错误,
“/opt/local/var/log/couchdb/coach.log”}
罪犯:[{pid,未定义],
{name,coach_log},
{mfargs,{coach_log,start_link,[]},
{restart_type,permanent},
{关闭,残暴的杀戮},
{child_type,worker}]
=主管报告===2012年1月5日::21:22:35===
主管:{local,coach_server_sup}
上下文:启动错误
原因:关闭
罪犯:[{pid,未定义],
{name,coach_primary_services},
{mfargs,{coach_server_sup,start_primary_services,[]},
{restart_type,permanent},
{关闭,无限},
{child_type,supervisor}]
=事故报告===2012年1月5日::21:22:35===
撞车者:
初始调用:应用程序\主机:init/4
pid:
注册名称:[]
异常退出:{bad_返回,
{{coach_应用程序,开始,
[正常,
[“/opt/local/etc/couchdb/default.ini”,
“/opt/local/etc/couchdb/local.ini”]},
{'EXIT',
{{badmatch,{error,shutdown}},
[{沙发服务器,启动服务器,1,
[{file,“coach_server_sup.erl”},{line,106}]},
{应用程序主控程序,启动旧的,4,
[{文件,“application_master.erl”},
{line,274}]}]}}}}
函数内应用程序\u master:init/4(应用程序\u master.erl,第138行)
祖先:[]
消息:[{'EXIT',normal}]
链接:[,]
字典:[]
陷阱_退出:正确
状态:正在运行
堆大小:987
堆栈大小:24
减少:172
邻居:
=信息报告===2012年1月5日::21:22:35===
应用:沙发
退出:{bad_返回,
{{coach_应用程序,开始,
[正常,
[“/opt/local/etc/couchdb/default.ini”,
“/opt/local/etc/couchdb/local.ini”]},
{'EXIT',
{{badmatch,{error,shutdown}},
[{沙发服务器,启动服务器,1,
[{file,“coach_server_sup.erl”},{line,106}]},
{应用程序主控程序,启动旧的,4,
[{file,“application_master.erl”},{line,274}]}}
类型:临时

看起来像是文件权限问题。试试这个:

#sudo chown-R couchdb:couchdb/opt/local/var/lib/couchdb//opt/local/var/log/couchdb//opt/local/etc/couchdb/


来源:

尝试将CouchDB作为“sudo”运行

sudo couchdb

如果
chmod-R
不起作用,请检查父目录的权限

我的错误是关于
/opt/local/var/lib/couchdb/\u replicator.coach

/opt/local/var/lib/couchdb
很好(755),但是
/opt/local/var/lib/
被设置为750<代码>sudo chmod 755/opt/local/var/lib/工作正常。

这对我没有帮助。权限已正确设置。