Skip to content

Commit 8122236

Browse files
author
Sam Kleinman
committed
merge: DOCS-19
2 parents 81040ee + 9fb09bb commit 8122236

14 files changed

+276
-0
lines changed

source/reference/exit-codes.txt

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
:orphan:
2+
3+
============================
4+
MongoDB Exit and Error Codes
5+
============================
6+
7+
.. default-domain:: mongodb
8+
9+
.. include:: /reference/exit-codes/exit_clean.txt
10+
:start-after: default-domain:: mongodb
11+
12+
.. include:: /reference/exit-codes/exit_bad_options.txt
13+
:start-after: default-domain:: mongodb
14+
15+
.. include:: /reference/exit-codes/exit_replication_error.txt
16+
:start-after: default-domain:: mongodb
17+
18+
.. include:: /reference/exit-codes/exit_need_upgrade.txt
19+
:start-after: default-domain:: mongodb
20+
21+
.. include:: /reference/exit-codes/exit_sharding_error.txt
22+
:start-after: default-domain:: mongodb
23+
24+
.. include:: /reference/exit-codes/exit_kill.txt
25+
:start-after: default-domain:: mongodb
26+
27+
.. include:: /reference/exit-codes/exit_abrupt.txt
28+
:start-after: default-domain:: mongodb
29+
30+
.. include:: /reference/exit-codes/exit_ntservice_error.txt
31+
:start-after: default-domain:: mongodb
32+
33+
.. include:: /reference/exit-codes/exit_fs.txt
34+
:start-after: default-domain:: mongodb
35+
36+
.. include:: /reference/exit-codes/exit_clock_skew.txt
37+
:start-after: default-domain:: mongodb
38+
39+
.. include:: /reference/exit-codes/exit_net_error.txt
40+
:start-after: default-domain:: mongodb
41+
42+
.. include:: /reference/exit-codes/exit_windows_service_stop.txt
43+
:start-after: default-domain:: mongodb
44+
45+
.. include:: /reference/exit-codes/exit_uncaught.txt
46+
:start-after: default-domain:: mongodb
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
:orphan:
2+
3+
==============
4+
14 Abrupt Exit
5+
==============
6+
7+
.. default-domain:: mongodb
8+
9+
.. error:: 14
10+
11+
Returned by MongoDB applications which encounter an unrecoverable
12+
error, an uncaught exception or uncaught signal. The system exits
13+
without performing a clean shut down.
14+
15+
.. symbol: EXIT_ABRUPT = 14
16+
.. mongo/src/mongo/client/mongo_client_lib.cpp
17+
.. mongo/src/mongo/db/db.cpp
18+
.. mongo/src/mongo/s/server.cpp
19+
.. mongo/src/mongo/util/exit_code.h
20+
.. mongo/src/mongo/util/signal_handlers.cpp
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
:orphan:
2+
3+
========================
4+
2 Bad Options
5+
========================
6+
7+
.. default-domain:: mongodb
8+
9+
.. error:: 2
10+
11+
The specified options are in error or are incompatible
12+
with other options.
13+
14+
.. symbol: EXIT_BADOPTIONS 2
15+
16+
.. /Users/epc/Documents/github/epc/mongo/src/mongo/db/db.cpp
17+
.. /Users/epc/Documents/github/epc/mongo/src/mongo/db/repl.cpp
18+
.. /Users/epc/Documents/github/epc/mongo/src/mongo/dbtests/framework.cpp
19+
.. /Users/epc/Documents/github/epc/mongo/src/mongo/s/config.cpp
20+
.. /Users/epc/Documents/github/epc/mongo/src/mongo/shell/dbshell.cpp
21+
.. /Users/epc/Documents/github/epc/mongo/src/mongo/tools/tool.cpp
22+
.. /Users/epc/Documents/github/epc/mongo/src/mongo/util/ntservice.cpp
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
:orphan:
2+
3+
============
4+
0 Clean exit
5+
============
6+
7+
.. default-domain:: mongodb
8+
9+
.. error:: 0
10+
11+
Returned by MongoDB applications upon successful exit.
12+
13+
.. symbol: EXIT_CLEAN
14+
.. ./src/mongo/db/db.cpp
15+
.. ./src/mongo/db/dbcommands_generic.cpp
16+
.. ./src/mongo/dbtests/framework.cpp
17+
.. ./src/mongo/s/server.cpp
18+
.. ./src/mongo/shell/dbshell.cpp
19+
.. ./src/mongo/tools/restore.cpp
20+
.. ./src/mongo/tools/tool.cpp
21+
.. ./src/mongo/util/ntservice.cpp
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
:orphan:
2+
3+
===============
4+
47 Clock Skewed
5+
===============
6+
7+
.. default-domain:: mongodb
8+
9+
.. error:: 47
10+
11+
MongoDB applications exit cleanly if a large clock skew (32768
12+
milliseconds) occurs.
13+
14+
.. symbol: EXIT_CLOCK_SKEW
15+
.. mongo/src/mongo/db/db.cpp
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
:orphan:
2+
3+
===================
4+
45 Cannot open file
5+
===================
6+
7+
.. default-domain:: mongodb
8+
9+
.. error:: 45
10+
11+
Returned when a MongoDB application cannot open a file or cannot
12+
obtain a lock on a file.
13+
14+
.. Symbol: EXIT_FS
15+
.. found-in: mongo/db/namespace_details.cpp:192
16+
.. found-in: mongo/tools/tool.cpp:238
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
:orphan:
2+
3+
===================
4+
12 Killed (Windows)
5+
===================
6+
7+
.. default-domain:: mongodb
8+
9+
.. error: 12
10+
11+
Returned by the :program:`mongod.exe` process on Windows when it
12+
receives a Control-C, Close, Break or Shutdown event.
13+
14+
.. symbol: EXIT_KILL = 12
15+
.. mongo/src/mongo/db/db.cpp
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
:orphan:
2+
3+
================================
4+
4 Database Format Upgrade Needed
5+
================================
6+
7+
.. default-domain:: mongodb
8+
9+
.. error: 4
10+
11+
The version of the database is different from the version supported
12+
by the :program:`mongod` (or :program:`mongod.exe`) instance. The
13+
instance exits cleanly. Restart :program:`mongod` with the
14+
:option:`--upgrade <mongod --upgrade>` option to upgrade the
15+
database to the version supported by this :program:`mongod`
16+
instance.
17+
18+
.. symbol: EXIT_NEED_UPGRADE = 4
19+
.. mongo/src/mongo/db/db.cpp
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
:orphan:
2+
3+
================
4+
48 Network Error
5+
================
6+
7+
.. default-domain:: mongodb
8+
9+
.. error:: 48
10+
11+
:program:`mongod` exits cleanly if the server socket is closed (either
12+
`27017` or the port specified with :option:`--port <mongod --port>`).
13+
14+
.. symbol: EXIT_NET_ERROR = 48
15+
.. mongo/src/mongo/s/server.cpp
16+
.. mongo/src/mongo/db/db.cpp
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
:orphan:
2+
3+
==============================
4+
20 NT Service Errors (Windows)
5+
==============================
6+
7+
.. default-domain:: mongodb
8+
9+
.. error:: 20 ERROR: wsastartup failed _reason_
10+
11+
Returned by MongoDB applications on Windows due to an error in the
12+
WSAStartup function.
13+
14+
.. error:: 20 NT Service Error
15+
16+
Returned by MongoDB applications for Windows due to failures installing,
17+
starting or removing the NT Service for the application.
18+
19+
.. symbol: EXIT_NTSERVICE_ERROR = 20
20+
.. mongo/src/mongo/util/net/sock.cpp
21+
.. mongo/src/mongo/util/ntservice.cpp

0 commit comments

Comments
 (0)