Skip to content

DOCS-11286: missing mongod exit code 62 #3225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 60 additions & 49 deletions source/reference/exit-codes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,79 +14,90 @@ MongoDB will return one of the following codes and statuses when
exiting. Use this guide to interpret logs and when troubleshooting
issues with :binary:`~bin.mongod` and :binary:`~bin.mongos` instances.

.. error:: 0

Returned by MongoDB applications upon successful exit.
.. list-table::
:header-rows: 1
:widths: 12 88

.. symbol: EXIT_CLEAN
* - Code
- Cause

.. error:: 2
* - .. error:: 0
- Returned by MongoDB applications upon successful exit.

The specified options are in error or are incompatible
with other options.
.. symbol: EXIT_CLEAN

.. symbol: EXIT_BADOPTIONS 2
* - .. error:: 2
- The specified options are in error or are incompatible
with other options.

.. error:: 3
.. symbol: EXIT_BADOPTIONS 2

Returned by :binary:`~bin.mongod` if there is a mismatch between hostnames
specified on the command line and in the :data:`local.sources`
collection, in master/slave mode.
* - .. error:: 3
- Returned by :binary:`~bin.mongod` if there is a mismatch
between hostnames specified on the command line and in the
:data:`local.sources` collection, in master/slave mode.

.. symbol: EXIT_REPLICATION_ERROR = 3
.. symbol: EXIT_REPLICATION_ERROR = 3

.. error:: 4
* - .. error:: 4
- The version of the database is different from the version
supported by the :binary:`~bin.mongod` (or
:binary:`~bin.mongod.exe`) instance. The instance exits
cleanly.

The version of the database is different from the version supported
by the :binary:`~bin.mongod` (or :binary:`~bin.mongod.exe`) instance. The
instance exits cleanly.

.. symbol: EXIT_NEED_UPGRADE = 4
.. symbol: EXIT_NEED_UPGRADE = 4

.. error:: 5
* - .. error:: 5
- Returned by :binary:`~bin.mongos` if a problem is encountered
during initialization.

Returned by :binary:`~bin.mongos` if a problem is encountered during initialization.
.. symbol: EXIT_SHARDING_ERROR = 5

.. symbol: EXIT_SHARDING_ERROR = 5
* - .. error:: 12
- Returned by the :binary:`~bin.mongod.exe` process on Windows
when it receives a Control-C, Close, Break or Shutdown event.

.. error:: 12
.. symbol: EXIT_KILL = 12

Returned by the :binary:`~bin.mongod.exe` process on Windows when it
receives a Control-C, Close, Break or Shutdown event.
* - .. error:: 14
- Returned by MongoDB applications which encounter an
unrecoverable error, an uncaught exception or uncaught signal.
The system exits without performing a clean shutdown.

.. symbol: EXIT_KILL = 12
.. symbol: EXIT_ABRUPT = 14

.. error:: 14
* - .. error:: 20
- *Message:* ``ERROR: wsastartup failed <reason>``

Returned by MongoDB applications which encounter an unrecoverable
error, an uncaught exception or uncaught signal. The system exits
without performing a clean shutdown.
Returned by MongoDB applications on Windows following an error
in the WSAStartup function, used to initialize the networking
subsystem.

.. symbol: EXIT_ABRUPT = 14
*Message:* ``NT Service Error``

.. error:: 20
Returned by MongoDB applications for Windows due to failures
installing, starting or removing the NT Service for the
application.

*Message:* ``ERROR: wsastartup failed <reason>``
.. symbol: EXIT_NTSERVICE_ERROR = 20

Returned by MongoDB applications on Windows following an error in the
WSAStartup function, used to initialize the networking subsystem.
* - .. error:: 48
- A newly started :binary:`~bin.mongod` or :binary:`~bin.mongos`
could not start listening for incoming connections, due to an
error.

*Message:* ``NT Service Error``
.. symbol: EXIT_NET_ERROR = 48

Returned by MongoDB applications for Windows due to failures installing,
starting or removing the NT Service for the application.
* - .. error:: 62
- Returned by :binary:`~bin.mongod` if the datafiles in
:option:`--dbpath <mongod --dbpath>` are incompatible with the
version of :binary:`~bin.mongod` currently running.

.. symbol: EXIT_NTSERVICE_ERROR = 20
.. symbol: EXIT_NEED_DOWNGRADE = 62

.. error:: 48
* - .. error:: 100
- Returned by :binary:`~bin.mongod` when the process throws an
uncaught exception.

A newly started :binary:`~bin.mongod` or :binary:`~bin.mongos` could not start listening for incoming connections,
due to an error.

.. symbol: EXIT_NET_ERROR = 48

.. error:: 100

Returned by :binary:`~bin.mongod` when the process throws an uncaught exception.

.. symbol: EXIT_UNCAUGHT = 100
.. symbol: EXIT_UNCAUGHT = 100