发布于 2015-09-14 15:06:40 | 97 次阅读 | 评论: 0 | 来源: 网络整理
MongoDB will return one of the following codes and statuses when exiting. Use this guide to interpret logs and when troubleshooting issues with mongod and mongos instances.
Returned by MongoDB applications upon successful exit.
The specified options are in error or are incompatible with other options.
Returned by mongod if there is a mismatch between hostnames specified on the command line and in the local.sources collection. mongod may also return this status if oplog collection in the local database is not readable.
The version of the database is different from the version supported by the mongod (or mongod.exe) instance. The instance exits cleanly. Restart mongod with the --upgrade option to upgrade the database to the version supported by this mongod instance.
Returned by the mongod.exe process on Windows when it receives a Control-C, Close, Break or Shutdown event.
Returned by MongoDB applications which encounter an unrecoverable error, an uncaught exception or uncaught signal. The system exits without performing a clean shut down.
Message: ERROR: wsastartup failed <reason>
Returned by MongoDB applications on Windows following an error in the WSAStartup function.
Message: NT Service Error
Returned by MongoDB applications for Windows due to failures installing, starting or removing the NT Service for the application.
Returned when a MongoDB application cannot open a file or cannot obtain a lock on a file.
MongoDB applications exit cleanly following a large clock skew (32768 milliseconds) event.
mongod exits cleanly if the server socket closes. The server socket is on port 27017 by default, or as specified to the --port run-time option.
Returned by mongod.exe or mongos.exe on Windows when either receives a shutdown message from the Windows Service Control Manager.