【问题标题】:Couchdb 'init terminating in do_boot' error in Ubuntu 14.04Ubuntu 14.04 中的 Couchdb 'init terminating in do_boot' 错误
【发布时间】:2015-12-20 02:18:28
【问题描述】:

我在 Ubuntu 14.04 中使用 apt-get 安装了 couchdb。

当我尝试运行它时,我收到以下错误:

{"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/etc/couchdb/default.ini","/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,{error,enoent}}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,56}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,269}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

我做错了什么?

我的环境是 Erlang: R16B03 in ubuntu 14.04。我使用 nginx(启用了 ssl)。我应该对我的 nginx 配置文件做任何特定的事情吗?

当我couchdb -b 时,我得到:

Apache CouchDB needs write permission on the PID file: /var/run/couchdb/couchdb.pid

而且,当我执行sudo chown -R couchdb /var/run/couchdb 时,我得到以下信息:

chown: cannot access ‘/var/run/couchdb’: No such file or directory

【问题讨论】:

  • 您可以在 /var/run 下手动创建 couchdb 目录并赋予其 couchdb:couchdb 所有权。

标签: ubuntu couchdb ubuntu-14.04


【解决方案1】:

您正在尝试更改 /var/run 下的 couchdb 目录的所有者,但它还不存在。

使用以下命令创建目录:

sudo mkdir /var/run/couchdb

然后您可以运行更改所有者命令

sudo chown -R couchdb /var/run/couchdb

【讨论】:

  • 每次重启机器时我都必须这样做。有任何永久修复此问题的方法吗?
猜你喜欢
  • 2011-06-12
  • 2020-12-25
  • 2019-01-28
  • 2015-07-17
  • 1970-01-01
  • 2012-10-30
  • 1970-01-01
  • 2023-03-29
  • 1970-01-01
相关资源
最近更新 更多