无法启动Mongo DB mongod服务

时间:2020-10-28 14:43:15

标签: mongodb

在CentOS 7.1上运行mongo db v3.4.2版本

我们有一个集群,可以对四个蒙哥人进行分片。其中一个恰好是仲裁员,死了,必须重建(通过自动化),并且现在可以运行。

我们有两个路由器(mongos),其中之一-pm02-在哪里出现问题

systemctl start mongod

失败。可以看到一个mongod进程(实际上有几个),但是得到以下消息:

systemctl start mongod
Job for mongod.service failed because a timeout was exceeded.

systemctl status mongod.service
● mongod.service - mongodb_shard
   Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
   Active: deactivating (final-sigterm) (Result: exit-code) since Fri 2019-05-10 01:01:05 UTC; 1 years 5 months ago
  Process: 12686 ExecStart=/bin/mongod -f /etc/mongodb/mongod.conf (code=exited, status=100)
 Main PID: 31852 (code=killed, signal=ABRT)
   CGroup: /system.slice/mongod.service
           └─12640 /bin/mongod -f /etc/mongodb/mongod.conf

Oct 28 13:57:29 itriskpm02 systemd[1]: Starting mongodb_shard...
Oct 28 13:57:29 itriskpm02 mongod[12686]: about to fork child process, waiting until server is rea...ons.
Oct 28 13:57:29 itriskpm02 mongod[12686]: forked process: 12688
Oct 28 13:57:29 itriskpm02 mongod[12686]: ERROR: child process failed, exited with error number 100
Oct 28 13:57:29 itriskpm02 systemd[1]: mongod.service: control process exited, code=exited status=100

telnet 0 27017
Trying 0.0.0.0...
telnet: connect to address 0.0.0.0: Connection refused

and /var/log/messages

ERROR: child process failed, exited with error number 100
Oct 28 14:19:13 itriskpm02 systemd: mongod.service: control process exited, code=exited status=100

尝试删除mongod.lock或在mongod启动时将其留空。总是得到这些错误。

/ tmp中没有与此相关的临时文件。

这工作了好几年,直到另一台服务器出现故障。

正在对此寻求意见,谢谢。

0 个答案:

没有答案