couchdb.service:失败,结果为“ start-limit-hit” [英] couchdb.service: Failed with result 'start-limit-hit'

查看:1145
本文介绍了couchdb.service:失败,结果为“ start-limit-hit”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装了沙发数据库之后,我可以获得欢迎信息

After I installed couchdb, I could get the welcome information

$ curl localhost:5984       
{"couchdb":"Welcome","version":"2.1.2","features":["scheduler"],"vendor":{"name":"The Apache Software Foundation"}}

但是我无法通过 systemctl

$ systemctl status  couchdb.service
● couchdb.service
   Loaded: not-found (Reason: No such file or directory)
   Active: failed (Result: start-limit-hit) since 一 2018-12-03 14:52:14 CST; 6min ago
 Main PID: 30946 (code=killed, signal=USR2)

12月 03 14:52:14 gpuhuawei systemd[1]: couchdb.service: Unit entered failed state.
12月 03 14:52:14 gpuhuawei systemd[1]: couchdb.service: Failed with result 'signal'.
12月 03 14:52:14 gpuhuawei systemd[1]: couchdb.service: Service hold-off time over, scheduling restart.
12月 03 14:52:14 gpuhuawei systemd[1]: Stopped Apache CouchDB.
12月 03 14:52:14 gpuhuawei systemd[1]: couchdb.service: Start request repeated too quickly.
12月 03 14:52:14 gpuhuawei systemd[1]: Failed to start Apache CouchDB.
12月 03 14:52:14 gpuhuawei systemd[1]: couchdb.service: Unit entered failed state.
12月 03 14:52:14 gpuhuawei systemd[1]: couchdb.service: Failed with result 'start-limit-hit'.
12月 03 14:53:53 gpuhuawei systemd[1]: Stopped Apache CouchDB.
12月 03 14:53:53 gpuhuawei systemd[1]: Stopped Apache CouchDB.

当我通过命令行运行沙发床时,我得到了

When I run couchdb by command line, I got

$ 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,eacces}}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,56}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,273}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
[1]    2288 user-defined signal 2  couchdb

我的工作环境

$ uname -a
Linux gpuhuawei 4.15.0-34-generic #37~16.04.1-Ubuntu SMP Tue Aug 28 10:44:06 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


推荐答案

这有点晚,但是 start-limit-hit消息是一条红色鲱鱼。我已经看到使用MySQL安装Moodle的情况非常相似,实际上是说您(或服务启动过程)在尝试启动失败后尝试重启数据库太多次或太早了。基本上,此开始-限制-命中信息是说停止尝试做相同的事情并期待不同的结果。

This is a bit late, but the "start-limit-hit" message is a red herring. I have seen something very similar with a Moodle installation using MySQL and it's actually saying that you (or the service start process) have tried to restart the database too many times or too soon after a failed attempt to start. Basically, this start-limit-hit message is saying "stop trying to do the same thing and expecting different results".

实际问题将在系统日志中进一步讨论。无助地,服务状态没有返回足够多的错误消息行以实际查看出什么问题。尝试启动服务,然后去查看实际的系统日志,您将看到一系列的启动尝试,并且每行上方都有一行希望可以告诉您实际的问题。在我的情况下,您可以看到问题是缺少包含数据库的安装点-谢谢,Azure。对于一次服务启动尝试,它尝试快速连续启动5次,每次都失败,因为没有安装数据目录,而在第六次尝试失败,并显示start-limit-hit。

The actual issue will be further up in the syslog. Unhelpfully, service status does not return enough lines of the error messages to actually see what is wrong. Try a service start, and go and look in the actual syslog, and you will see the series of start attempts and a line just above each one hopefully will tell you the actual issue. In my case here, you can see that the problem is the mount point containing the database is missing - thanks, Azure. For one attempt of service start, it tries to start 5 times in quick succession, failing each time because the data dir was not mounted, and on the sixth it fails with the start-limit-hit.

这篇关于couchdb.service:失败,结果为“ start-limit-hit”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆