Hi!
I’m working on Linux Mint 19.1
I had installed mongodb previously but it was the community edition so I decided to wipe it out and re-install community.
I stopped the service and removed everything using the following commands.
sudo systemctl stop mongodb
sudo apt purge mongodb
sudo apt autoremove
I installed all the packages in here
Ubuntu 18.04 x64
- Archive: mongodb-linux-x86_64-enterprise-ubuntu1804-4.2.0.tgz
- Server Package: mongodb-enterprise-server_4.2.0_amd64.deb
- Mongos Package: mongodb-enterprise-mongos_4.2.0_amd64.deb
- Utilities Package: mongodb-enterprise-tools_4.2.0_amd64.deb
- Mongo Shell Package: mongodb-enterprise-shell_4.2.0_amd64.deb
Now I my “mongod” service doesn’t want to start, or maybe it does start and shuts down itself because of an error.
I went to have a look in the log using command " /var/log/mongodb sudo vi mongod.log
" and it talks about an error with the featureCompatibilityVersion version, and it looks like it is shutting down (couldn’t find any mongod process with PID as specified in log).
What do I need to do?
It looks like I messed up everything with my re-installation.
Thanks!
2019-09-18T12:48:13.325+1000 F CONTROL [initandlisten] ** IMPORTANT: UPGRADE PROBLEM: Found an invalid featureCompatibilityVersion document (ERROR: BadValue: Invalid value for version, found 3.6, expected ‘4.2’ or ‘4.0’. Contents of featureCompatibilityVersion document in admin.system.version: { _id: “featureCompatibilityVersion”, version: “3.6” }. See http://dochub.mongodb.org/core/4.0-feature-compatibility.). If the current featureCompatibilityVersion is below 4.0, see the documentation on upgrading at http://dochub.mongodb.org/core/4.0-upgrade-fcv.
2019-09-18T12:48:13.325+1000 I NETWORK [initandlisten] shutdown: going to close listening sockets…
2019-09-18T12:48:13.325+1000 I NETWORK [initandlisten] removing socket file: /tmp/mongodb-27017.sock
2019-09-18T12:48:13.325+1000 I - [initandlisten] Stopping further Flow Control ticket acquisitions.
2019-09-18T12:48:13.325+1000 I STORAGE [initandlisten] Deregistering all the collections
2019-09-18T12:48:13.325+1000 I STORAGE [initandlisten] Timestamp monitor shutting down
2019-09-18T12:48:13.325+1000 I STORAGE [initandlisten] WiredTigerKVEngine shutting down
2019-09-18T12:48:13.326+1000 I STORAGE [initandlisten] Shutting down session sweeper thread
2019-09-18T12:48:13.326+1000 I STORAGE [initandlisten] Finished shutting down session sweeper thread
2019-09-18T12:48:13.326+1000 I STORAGE [initandlisten] Shutting down journal flusher thread
2019-09-18T12:48:13.391+1000 I STORAGE [initandlisten] Finished shutting down journal flusher thread
2019-09-18T12:48:13.391+1000 I STORAGE [initandlisten] Shutting down checkpoint thread
2019-09-18T12:48:13.391+1000 I STORAGE [initandlisten] Finished shutting down checkpoint thread
2019-09-18T12:48:13.391+1000 I STORAGE [initandlisten] Downgrading WiredTiger datafiles.
2019-09-18T12:48:13.443+1000 I STORAGE [initandlisten] WiredTiger message [1568774893:443196][2022