Exit Codes and Statuses¶
Returned by MongoDB applications upon successful exit.
The specified options are in error or are incompatible with other options.
mongodif there is a mismatch between hostnames specified on the command line and in the
mongodmay also return this status if oplog collection in the
localdatabase is not readable.
The version of the database is different from the version supported by the
mongod.exe) instance. The instance exits cleanly. Restart
--upgradeoption to upgrade the database to the version supported by this
Returned by the
mongod.exeprocess 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.
ERROR: wsastartup failed <reason>
Returned by MongoDB applications on Windows following an error in the WSAStartup function.
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.
mongodexits cleanly if the server socket closes. The server socket is on port
27017by default, or as specified to the