MongoDB Exit Codes and Statuses From Status Code 0 to 100


MongoDB Exit Code 0
Returned by MongoDB applications upon successful exit.
MongoDB Exit Code 2
The specified options are in error or are incompatible with other options.
MongoDB Exit Code 3
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.
MongoDB Exit Code 4
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.

MongoDB Exit Code 5
Returned by mongod if a moveChunk operation fails to confirm a commit.
MongoDB Exit Code 12
Returned by the mongod.exe process on Windows when it receives a Control-C, Close, Break or Shutdown event.
MongoDB Exit Code 14
Returned by MongoDB applications which encounter an unrecoverable error, an uncaught exception or uncaught signal. The system exits without performing a clean shut down.
MongoDB Exit Code 20
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.

MongoDB Exit Code 45
Returned when a MongoDB application cannot open a file or cannot obtain a lock on a file.
MongoDB Exit Code 47
MongoDB applications exit cleanly following a large clock skew (32768 milliseconds) event.
MongoDB Exit Code 48
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.
MongoDB Exit Code 49
Returned by mongod.exe or mongos.exe on Windows when either receives a shutdown message from the Windows Service Control Manager.
MongoDB Exit Code 100
Returned by mongod when the process throws an uncaught exception.

Above are list of MongoDB Errors Codes and Status Codes or Exit Codes along with Error and Warning messages from Error 0 to 100 received while performing certain operation against MongoDB applications or related products.

What are MongoDB Error Messages?
MongoDB  is an open-source document database, and the leading NoSQL database. MongoDB main features provide Document-oriented, Ad hoc queries, Indexing, Replication, Load balancing, File storage, Aggregation, Server-side JavaScript execution, Capped collections.

In general, each MongoDB error contains the following information:
• The MongoDB Exit Code or MongoDB Error Codes or MongoDB Status Codes
• The message text. This text is usually returned with the Error code. Some messages employ word substitution, where the word substituted represents the system-replacement of a term more specific to the occurrence.
• An explanation of how the error may have occurred.

Hope this was helpful.

SQLServerF1 Team
Information about MongoDB Error Codes or Status Codes or Exit Codes and Error Messages on Windows, Linux Operating Systems.


Leave a Reply

Your email address will not be published. Required fields are marked *