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 (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