@@ -14,79 +14,90 @@ 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
- .. error:: 0
18
17
19
- Returned by MongoDB applications upon successful exit.
18
+ .. list-table::
19
+ :header-rows: 1
20
+ :widths: 12 88
20
21
21
- .. symbol: EXIT_CLEAN
22
+ * - Code
23
+ - Cause
22
24
23
- .. error:: 2
25
+ * - .. error:: 0
26
+ - Returned by MongoDB applications upon successful exit.
24
27
25
- The specified options are in error or are incompatible
26
- with other options.
28
+ .. symbol: EXIT_CLEAN
27
29
28
- .. symbol: EXIT_BADOPTIONS 2
30
+ * - .. error:: 2
31
+ - The specified options are in error or are incompatible
32
+ with other options.
29
33
30
- .. error:: 3
34
+ .. symbol: EXIT_BADOPTIONS 2
31
35
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.
35
40
36
- .. symbol: EXIT_REPLICATION_ERROR = 3
41
+ .. symbol: EXIT_REPLICATION_ERROR = 3
37
42
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.
39
48
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
45
50
46
- .. error:: 5
51
+ * - .. error:: 5
52
+ - Returned by :binary:`~bin.mongos` if a problem is encountered
53
+ during initialization.
47
54
48
- Returned by :binary:`~bin.mongos` if a problem is encountered during initialization.
55
+ .. symbol: EXIT_SHARDING_ERROR = 5
49
56
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.
51
60
52
- .. error:: 12
61
+ .. symbol: EXIT_KILL = 12
53
62
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.
56
67
57
- .. symbol: EXIT_KILL = 12
68
+ .. symbol: EXIT_ABRUPT = 14
58
69
59
- .. error:: 14
70
+ * - .. error:: 20
71
+ - *Message:* ``ERROR: wsastartup failed <reason>``
60
72
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 .
64
76
65
- .. symbol: EXIT_ABRUPT = 14
77
+ *Message:* ``NT Service Error``
66
78
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.
68
82
69
- *Message:* ``ERROR: wsastartup failed <reason>``
83
+ .. symbol: EXIT_NTSERVICE_ERROR = 20
70
84
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.
73
89
74
- *Message:* ``NT Service Error``
90
+ .. symbol: EXIT_NET_ERROR = 48
75
91
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.
78
96
79
- .. symbol: EXIT_NTSERVICE_ERROR = 20
97
+ .. symbol: EXIT_NEED_DOWNGRADE = 62
80
98
81
- .. error:: 48
99
+ * - .. error:: 100
100
+ - Returned by :binary:`~bin.mongod` when the process throws an
101
+ uncaught exception.
82
102
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