Exit Codes and Statuses退出代码和状态
MongoDB will return one of the following codes and statuses when exiting. MongoDB在退出时将返回以下代码和状态之一。Use this guide to interpret logs and when troubleshooting issues with 使用本指南来解释日志,以及在解决mongod
and mongos
instances.mongod
和mongos
实例的问题时使用本指南。
0 | |
1 | mongod as a generic failure when no other error codes apply.mongod 作为一般故障返回。 |
2 | |
3 | mongod if there is a mismatch between hostnames specified on the command line and in the local.sources collection when running a replica set.local.sources 集合中指定的主机名不匹配,则由mongod 返回。 |
4 | mongod (or mongod.exe ) instance. mongod (或mongod.exe )实例支持的版本不同。 |
5 | mongos if a problem is encountered during initialization.mongos 返回。 |
12 | mongod.exe process on Windows when it receives a Control-C, Close, Break or Shutdown event.mongod.exe 进程在接收到Control-C、Close、Break或Shutdown事件时返回。 |
14 | |
20 | Message: ERROR: wsastartup failed <reason> Message: NT Service Error |
48 | mongod or mongos when an error prevents a newly started instance from listening for incoming connections.mongod 或mongos 返回。 |
50 | mongod during server initialization if it fails to fork the process.mongod 在服务器初始化期间返回,如果它未能分叉进程。 |
51 | mongod during server initialization if the daemon fails to send a ready signal. mongod 在服务器初始化期间返回。 |
61 | |
62 | mongod when the datafiles in --dbpath are incompatible with the version of mongod currently running.--dbpath 中的数据文件与当前运行的mongod 版本不兼容时,mongod 返回。 |
87 | mongod or mongos when the process health check triggers a crash.mongod 或mongos 返回。 |
100 | mongod when the process throws an uncaught exception.mongod 返回。 |
102 | mongod or mongos when the process fails to rotate audit logs on startup.mongod 或mongos 返回。 |