Skip to content

Commit 64151b5

Browse files
steverenkay-kim
authored andcommitted
DOCS-11286: missing mongod exit code 62
1 parent a72a08c commit 64151b5

File tree

1 file changed

+60
-49
lines changed

1 file changed

+60
-49
lines changed

source/reference/exit-codes.txt

Lines changed: 60 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -14,79 +14,90 @@ MongoDB will return one of the following codes and statuses when
1414
exiting. Use this guide to interpret logs and when troubleshooting
1515
issues with :binary:`~bin.mongod` and :binary:`~bin.mongos` instances.
1616

17-
.. error:: 0
1817

19-
Returned by MongoDB applications upon successful exit.
18+
.. list-table::
19+
:header-rows: 1
20+
:widths: 12 88
2021

21-
.. symbol: EXIT_CLEAN
22+
* - Code
23+
- Cause
2224

23-
.. error:: 2
25+
* - .. error:: 0
26+
- Returned by MongoDB applications upon successful exit.
2427

25-
The specified options are in error or are incompatible
26-
with other options.
28+
.. symbol: EXIT_CLEAN
2729

28-
.. symbol: EXIT_BADOPTIONS 2
30+
* - .. error:: 2
31+
- The specified options are in error or are incompatible
32+
with other options.
2933

30-
.. error:: 3
34+
.. symbol: EXIT_BADOPTIONS 2
3135

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

36-
.. symbol: EXIT_REPLICATION_ERROR = 3
41+
.. symbol: EXIT_REPLICATION_ERROR = 3
3742

38-
.. error:: 4
43+
* - .. error:: 4
44+
- The version of the database is different from the version
45+
supported by the :binary:`~bin.mongod` (or
46+
:binary:`~bin.mongod.exe`) instance. The instance exits
47+
cleanly.
3948

40-
The version of the database is different from the version supported
41-
by the :binary:`~bin.mongod` (or :binary:`~bin.mongod.exe`) instance. The
42-
instance exits cleanly.
43-
44-
.. symbol: EXIT_NEED_UPGRADE = 4
49+
.. symbol: EXIT_NEED_UPGRADE = 4
4550

46-
.. error:: 5
51+
* - .. error:: 5
52+
- Returned by :binary:`~bin.mongos` if a problem is encountered
53+
during initialization.
4754

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

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

52-
.. error:: 12
61+
.. symbol: EXIT_KILL = 12
5362

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

57-
.. symbol: EXIT_KILL = 12
68+
.. symbol: EXIT_ABRUPT = 14
5869

59-
.. error:: 14
70+
* - .. error:: 20
71+
- *Message:* ``ERROR: wsastartup failed <reason>``
6072

61-
Returned by MongoDB applications which encounter an unrecoverable
62-
error, an uncaught exception or uncaught signal. The system exits
63-
without performing a clean shutdown.
73+
Returned by MongoDB applications on Windows following an error
74+
in the WSAStartup function, used to initialize the networking
75+
subsystem.
6476

65-
.. symbol: EXIT_ABRUPT = 14
77+
*Message:* ``NT Service Error``
6678

67-
.. error:: 20
79+
Returned by MongoDB applications for Windows due to failures
80+
installing, starting or removing the NT Service for the
81+
application.
6882

69-
*Message:* ``ERROR: wsastartup failed <reason>``
83+
.. symbol: EXIT_NTSERVICE_ERROR = 20
7084

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

74-
*Message:* ``NT Service Error``
90+
.. symbol: EXIT_NET_ERROR = 48
7591

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

79-
.. symbol: EXIT_NTSERVICE_ERROR = 20
97+
.. symbol: EXIT_NEED_DOWNGRADE = 62
8098

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

83-
A newly started :binary:`~bin.mongod` or :binary:`~bin.mongos` could not start listening for incoming connections,
84-
due to an error.
85-
86-
.. symbol: EXIT_NET_ERROR = 48
87-
88-
.. error:: 100
89-
90-
Returned by :binary:`~bin.mongod` when the process throws an uncaught exception.
91-
92-
.. symbol: EXIT_UNCAUGHT = 100
103+
.. symbol: EXIT_UNCAUGHT = 100

0 commit comments

Comments
 (0)