MongoDB - shutting down with code:62

Delete the data directory where MongoDB stored and create again.

rmdir data

And:

mkdir data/db

I had a similar problem when I switched to a new version mongod without upgrading the data (from version 3.2, for example, to version 3.6).

In this case, mongod outputs ** IMPORTANT: UPGRADE PROBLEM: The data files need to be fully upgraded to version 3.4 before attempting an upgrade to 3.6; see http://dochub.mongodb.org/core/3.6-upgrade-fcv for more details. (mongod was started with the --verbose key).

The link does lead to detailed instructions on how to upgrade the data.

It is strange that error 62 is not described in the documentation.


This has worked for me

Initially i was facing various issues, like when i tried to start the server by using:

mongod

I received this error: shutting down with code 100

and then i tried to start by

sudo mongod

I received this error: shutting down with code 62

finally this command helped me to get rid of various issues

sudo mongod --repair

Now mongod server is running tentatively

sudo mongod

Tags:

Mongodb