全球主机交流论坛

标题: mongodb 无法启动 求助 [打印本页]

作者: okfans    时间: 2021-12-2 19:22
标题: mongodb 无法启动 求助
本帖最后由 okfans 于 2021-12-3 07:41 编辑

前面小弟碰到问题 服务器启动了, 发现 mongodb 无法启动  试过网上的方法都不行  求大佬出招

日志
{"t":{"$date":"2021-12-03T07:31:01.616+08:00"},"s":"I",  "c":"CONTROL",  "id":23403,   "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.6","gitVersion":"72e66213c2c3eab37d9358d5e78ad7f5c1d0d0d7","openSSLVersion":"OpenSSL 1.0.1e-fips 11 Feb 2013","modules":[],"allocator":"tcmalloc","environment":{"distmod":"rhel70","distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2021-12-03T07:31:01.616+08:00"},"s":"I",  "c":"CONTROL",  "id":51765,   "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"CentOS Linux release 7.9.2009 (Core)","version":"Kernel 4.9.215-36.el7.x86_64"}}}
{"t":{"$date":"2021-12-03T07:31:01.616+08:00"},"s":"I",  "c":"CONTROL",  "id":21951,   "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"config":"/www/server/mongodb/config.conf","net":{"bindIp":"127.0.0.1","port":27017},"processManagement":{"fork":true,"pidFilePath":"/www/server/mongodb/log/configsvr.pid"},"security":{"authorization":"disabled","javascriptEnabled":false},"storage":{"dbPath":"/www/server/mongodb/data","directoryPerDB":true,"journal":{"enabled":true}},"systemLog":{"destination":"file","logAppend":true,"path":"/www/server/mongodb/log/config.log"}}}}
{"t":{"$date":"2021-12-03T07:31:01.616+08:00"},"s":"E",  "c":"NETWORK",  "id":23024,   "ctx":"initandlisten","msg":"Failed to unlink socket file","attr":{"path":"/tmp/mongodb-27017.sock","error":"Operation not permitted"}}
{"t":{"$date":"2021-12-03T07:31:01.616+08:00"},"s":"F",  "c":"-",        "id":23091,   "ctx":"initandlisten","msg":"Fatal assertion","attr":{"msgid":40486,"file":"src/mongo/transport/transport_layer_asio.cpp","line":919}}
{"t":{"$date":"2021-12-03T07:31:01.616+08:00"},"s":"F",  "c":"-",        "id":23092,   "ctx":"initandlisten","msg":"\n\n***aborting after fassert() failure\n\n"}

搜索了一堆试过了

作者: 啦啦    时间: 2021-12-2 19:22
提示: 作者被禁止或删除 内容自动屏蔽
作者: okfans    时间: 2021-12-2 19:27
啦啦 发表于 2021-12-2 19:22
什么都看不到 mjj咋帮

服务器非正常关闭  mongodb 无法启动  求助
作者: qshng    时间: 2021-12-2 19:28
发下日志看看
作者: sunny_SHEN    时间: 2021-12-2 19:37
我猜pid socket 类似没清除吧
作者: okfans    时间: 2021-12-2 20:03
sunny_SHEN 发表于 2021-12-2 19:37
我猜pid socket 类似没清除吧

好像有进程
作者: lewis2    时间: 2021-12-2 20:07
本帖最后由 lewis2 于 2021-12-2 20:10 编辑

https://blog.csdn.net/baidu_34331290/article/details/83544988
可以参考下。
作者: okfans    时间: 2021-12-2 20:19
lewis2 发表于 2021-12-2 20:07
https://blog.csdn.net/baidu_34331290/article/details/83544988
可以参考下。

参考了 还是无法启动
作者: okfans    时间: 2021-12-3 07:42
qshng 发表于 2021-12-2 19:28
发下日志看看

大佬帮忙看一下
作者: wgetrc    时间: 2021-12-3 08:27
本帖最后由 wgetrc 于 2021-12-3 08:30 编辑

/tmp/mongodb-27017.sock","error":"Operation not permitted"
rm /tmp/mongodb-27017.sock 或者
chown mongodb:mongodb /tmp/mongodb-27017.sock
作者: okfans    时间: 2021-12-3 11:59
wgetrc 发表于 2021-12-3 08:27
/tmp/mongodb-27017.sock","error":"Operation not permitted"
rm /tmp/mongodb-27017.sock 或者
chown mon ...

试过了 还是无法启  谢谢
作者: 我有一个梦想    时间: 2021-12-3 12:21
把socket文件删除,结束掉所有Mongodb进程,重新初始化一下




欢迎光临 全球主机交流论坛 (https://sunk.eu.org/) Powered by Discuz! X3.4