# Suddenly, mongod is not starting

**URL:** <https://forums.rocket.chat/t/suddenly-mongod-is-not-starting/4983>\
**Category:** Community Support\
**Created:** [November 6, 2019, 10:49am UTC](https://forums.rocket.chat/t/suddenly-mongod-is-not-starting/4983 "2019-11-06T10:49:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dw-dlh](https://avatars.discourse-cdn.com/v4/letter/d/e36b37/32.png) [@dw-dlh](https://forums.rocket.chat/u/dw-dlh)\
**Post date:** [November 6, 2019, 2:42pm UTC](https://forums.rocket.chat/t/suddenly-mongod-is-not-starting/4983/2 "2019-11-06T14:42:00Z")

</div>

I had the same problem, and fixed mine. Apparently the snap tried to ‘jump’ too many mongodb versions?  
NOTE: this ‘repair’ might get broken by the devs when they fix this.  
I’m running snaps, your mileage might vary.

I fixed mine

- I got a copy of mongodb 3.4 from [https://fastdl.mongodb.org/linux/mongodb-linux-x86\_64-3.4.23.tgz](https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.4.23.tgz) (the “linux legacy” release) and unpacked it into root’s home folder

- I cd’d into the unpacked directory/bin and ran

- ./mongod --repair --dbpath /var/snap/rocketchat-server/common/

- then

- ./mongod --dbpath /var/snap/rocketchat-server/common/

- then in a separate session I ran ./mongo

- issued the command  
db.adminCommand( { setFeatureCompatibilityVersion: “3.4” } )

- exited mongo

- exited mongod (with ctrl-c)

- cd’d to /snap/rocketchat-server/current/bin

- ran  
./mongod --repair --dbpath /var/snap/rocketchat-server/common/

- waited for it to finish

- rebooted (probably unnecessary)

- logged in (as I was impatient) and did  
tail -f /var/log/daemon.log

---

_[View the full topic](https://forums.rocket.chat/t/suddenly-mongod-is-not-starting/4983)._
