Skip to content

Commit 32892c2

Browse files
milkiekay-kim
authored andcommitted
Update and fix numerous issues with exit codes.
Signed-off-by: kay <[email protected]>
1 parent fe13e0b commit 32892c2

File tree

1 file changed

+9
-37
lines changed

1 file changed

+9
-37
lines changed

source/reference/exit-codes.txt

Lines changed: 9 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,21 @@ issues with :program:`mongod` and :program:`mongos` instances.
3131

3232
Returned by :program:`mongod` if there is a mismatch between hostnames
3333
specified on the command line and in the :data:`local.sources`
34-
collection. :program:`mongod` may also return this status if
35-
:term:`oplog` collection in the ``local`` database is not readable.
34+
collection, in master/slave mode.
3635

3736
.. symbol: EXIT_REPLICATION_ERROR = 3
3837

3938
.. error:: 4
4039

4140
The version of the database is different from the version supported
4241
by the :program:`mongod` (or :program:`mongod.exe`) instance. The
43-
instance exits cleanly. Restart :program:`mongod` with the
44-
:option:`--upgrade <mongod --upgrade>` option to upgrade the
45-
database to the version supported by this :program:`mongod`
46-
instance.
47-
42+
instance exits cleanly.
43+
4844
.. symbol: EXIT_NEED_UPGRADE = 4
4945

5046
.. error:: 5
5147

52-
Returned by :program:`mongod` if a :dbcommand:`moveChunk` operation
53-
fails to confirm a commit.
48+
Returned by :program:`mongos` if a problem is encountered during initialization.
5449

5550
.. symbol: EXIT_SHARDING_ERROR = 5
5651

@@ -65,7 +60,7 @@ issues with :program:`mongod` and :program:`mongos` instances.
6560

6661
Returned by MongoDB applications which encounter an unrecoverable
6762
error, an uncaught exception or uncaught signal. The system exits
68-
without performing a clean shut down.
63+
without performing a clean shutdown.
6964

7065
.. symbol: EXIT_ABRUPT = 14
7166

@@ -74,7 +69,7 @@ issues with :program:`mongod` and :program:`mongos` instances.
7469
*Message:* ``ERROR: wsastartup failed <reason>``
7570

7671
Returned by MongoDB applications on Windows following an error in the
77-
WSAStartup function.
72+
WSAStartup function, used to initialize the networking subsystem.
7873

7974
*Message:* ``NT Service Error``
8075

@@ -83,36 +78,13 @@ issues with :program:`mongod` and :program:`mongos` instances.
8378

8479
.. symbol: EXIT_NTSERVICE_ERROR = 20
8580

86-
.. error:: 45
87-
88-
Returned when a MongoDB application cannot open a file or cannot
89-
obtain a lock on a file.
90-
91-
.. Symbol: EXIT_FS
92-
93-
.. error:: 47
94-
95-
MongoDB applications exit cleanly following a large clock skew (32768
96-
milliseconds) event.
97-
98-
.. symbol: EXIT_CLOCK_SKEW
99-
10081
.. error:: 48
10182

102-
:program:`mongod` exits cleanly if the server socket closes. The
103-
server socket is on port ``27017`` by default, or as specified to
104-
the :option:`--port <mongod --port>` run-time option.
105-
83+
A newly started :program:`mongod` or :program:`mongos` could not start listening for incoming connections,
84+
due to an error.
85+
10686
.. symbol: EXIT_NET_ERROR = 48
10787

108-
.. error:: 49
109-
110-
Returned by :program:`mongod.exe` or :program:`mongos.exe` on Windows
111-
when either receives a shutdown message from the
112-
:guilabel:`Windows Service Control Manager`.
113-
114-
.. symbol: EXIT_WINDOWS_SERVICE_STOP 49
115-
11688
.. error:: 100
11789

11890
Returned by :program:`mongod` when the process throws an uncaught exception.

0 commit comments

Comments
 (0)