@@ -14,6 +14,7 @@ MongoDB will return one of the following codes and statuses when
14
14
exiting. Use this guide to interpret logs and when troubleshooting
15
15
issues with :binary:`~bin.mongod` and :binary:`~bin.mongos` instances.
16
16
17
+ .. _exit-codes:
17
18
18
19
.. list-table::
19
20
:header-rows: 1
@@ -25,47 +26,45 @@ issues with :binary:`~bin.mongod` and :binary:`~bin.mongos` instances.
25
26
* - .. error:: 0
26
27
- Returned by MongoDB applications upon successful exit.
27
28
28
- .. symbol: EXIT_CLEAN
29
+
30
+ * - .. error:: 1
31
+ - Returned by :binary:`~bin.mongod` as a generic failure when no
32
+ other error codes apply.
33
+
29
34
30
35
* - .. error:: 2
31
36
- The specified options are in error or are incompatible
32
37
with other options.
33
38
34
- .. symbol: EXIT_BADOPTIONS 2
35
39
36
40
* - .. 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
- ``local.sources`` collection, in master/slave mode .
41
+ - Returned by :binary:`~bin.mongod` if there is a mismatch between
42
+ hostnames specified on the command line and in the
43
+ ``local.sources`` collection when running a replica set .
40
44
41
- .. symbol: EXIT_REPLICATION_ERROR = 3
42
45
43
46
* - .. error:: 4
44
47
- The version of the database is different from the version
45
48
supported by the :binary:`~bin.mongod` (or
46
49
:binary:`~bin.mongod.exe`) instance. The instance exits
47
50
cleanly.
48
51
49
- .. symbol: EXIT_NEED_UPGRADE = 4
50
52
51
53
* - .. error:: 5
52
54
- Returned by :binary:`~bin.mongos` if a problem is encountered
53
55
during initialization.
54
56
55
- .. symbol: EXIT_SHARDING_ERROR = 5
56
57
57
58
* - .. error:: 12
58
59
- Returned by the :binary:`~bin.mongod.exe` process on Windows
59
60
when it receives a Control-C, Close, Break or Shutdown event.
60
61
61
- .. symbol: EXIT_KILL = 12
62
62
63
63
* - .. error:: 14
64
64
- Returned by MongoDB applications which encounter an
65
65
unrecoverable error, an uncaught exception or uncaught signal.
66
66
The system exits without performing a clean shutdown.
67
67
68
- .. symbol: EXIT_ABRUPT = 14
69
68
70
69
* - .. error:: 20
71
70
- *Message:* ``ERROR: wsastartup failed <reason>``
@@ -80,30 +79,50 @@ issues with :binary:`~bin.mongod` and :binary:`~bin.mongos` instances.
80
79
installing, starting or removing the NT Service for the
81
80
application.
82
81
83
- .. symbol: EXIT_NTSERVICE_ERROR = 20
84
82
85
83
* - .. 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.
84
+ - Returned by :binary:`~bin.mongod` or :binary:`~bin.mongos`
85
+ when an error prevents a newly started instance from listening
86
+ for incoming connections.
87
+
88
+
89
+ * - .. error:: 50
90
+ - Returned by :binary:`~bin.mongod` during server initialization
91
+ if it fails to fork the process.
92
+
93
+
94
+ * - .. error:: 51
95
+ - Returned by :binary:`~bin.mongod` during server initialization
96
+ if the daemon fails to send a ready signal. The process exits
97
+ cleanly.
89
98
90
- .. symbol: EXIT_NET_ERROR = 48
91
99
92
100
* - .. error:: 61
93
101
- Returned by the :ref:`storage-node-watchdog` if any of the
94
102
filesystems with monitored directories are unresponsive.
95
103
96
- .. symbol: EXIT_WATCHDOG = 61
97
104
98
105
* - .. error:: 62
99
- - Returned by :binary:`~bin.mongod` if the datafiles in
106
+ - Returned by :binary:`~bin.mongod` when the datafiles in
100
107
:option:`--dbpath <mongod --dbpath>` are incompatible with the
101
- version of :binary:`~bin.mongod` currently running.
108
+ version of :binary:`~bin.mongod` currently running.
109
+
110
+ To resolve data incompatibility issues after upgrading, please
111
+ refer to the :ref:`release notes <release-notes-6.0>` for your
112
+ version of MongoDB and search for "Changes Affecting
113
+ Compatibility."
114
+
115
+
116
+ * - .. error:: 87
117
+ - Returned by :binary:`~bin.mongod` or :binary:`~bin.mongos` when
118
+ the process health check triggers a crash.
102
119
103
- .. symbol: EXIT_NEED_DOWNGRADE = 62
104
120
105
121
* - .. error:: 100
106
122
- Returned by :binary:`~bin.mongod` when the process throws an
107
123
uncaught exception.
108
124
109
- .. symbol: EXIT_UNCAUGHT = 100
125
+
126
+ * - .. error:: 102
127
+ - Returned by :binary:`~bin.mongod` or :binary:`~bin.mongos` when
128
+ the process fails to rotate audit logs on startup.
0 commit comments