I am running
DISTRIB_ID=LinuxMint DISTRIB_RELEASE=18.2 DISTRIB_CODENAME=sonya DISTRIB_DESCRIPTION="Linux Mint 18.2 Sonya
“
I have installed mongodb
db version v3.6.1 git version: 025d4f4fe61efd1fb6f0005be20cb45a004093d1 OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016 allocator: tcmalloc modules: none build environment: distmod: ubuntu1604 distance: x86_64 target_arch: x86_64
This error occurs when running mongod
Jan 10 09:34:35 kat35601-Precision-7510 systemd[1]: Started High-performance, schema-free document-oriented database. Jan 10 09:34:36 kat35601-Precision-7510 systemd[1]: mongodb.service: Main process exited, code=exited, status=62/n/a Jan 10 09:34:36 kat35601-Precision-7510 systemd[1]: mongodb.service: Unit entered failed state. Jan 10 09:34:36 kat35601-Precision-7510 systemd[1]: mongodb.service: Failed with result 'exit-code'.
What’s wrong? ? ? ?
1> Alex Blex..:
The exit status is logged at https://github.com/mongodb/mongo/blob/master/ src/mongo/util/exit_code.h
status=62
In particular:
EXIT_NEED_DOWNGRADE = 62, //The current binary version is not suitable for running on the existing data files.
This indicates that there are binary files in your data directory that are incompatible with the binary version and were created by a previous version of the database.
You can downgrade the database to a matching version, or you can downgrade the mongodump/mongorestore data to match the version of the database.