Rocket.Chat's Community Open Call 🎤 Jan 19th, 2022 Join us!

Error upgrading to 4.2.2 (latest stable) from 3.18.3


Server Setup Information

  • Version of Rocket.Chat Server: 4.x/stable
  • Operating System: Ubuntu 20.04.3 LTS
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:
  • Proxy: reverse proxied through Caddy
  • Firewalls involved: no

Any additional Information

Tried to upgrade today but got the below error. Anybody know how to fix it?

root@rocketchat:~# snap refresh rocketchat-server
error: cannot perform the following tasks:
- Run post-refresh hook of "rocketchat-server" snap if present (run hook "post-refresh":
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
Error reading config file: No such file or directory
try 'mongod --help' for more information
[ERROR] mongo server start failed
[ERROR] post refresh migration "" run failed

Hi! Will ask my friend and collegue @debdut.chakraborty to help us on that.

Hang tight :slight_smile:

Hey @arin did I talk to you on open yesterday?

I didn’t, I only just posted this bug report yesterday on this forum. Still haven’t fixed it either. Any idea on how to fix?

Run this

cat <<EOF | sudo tee /var/snap/rocketchat-server/current/mongod.conf 

# For documentation of all options, see:

# processManagement::fork and systemlog::* are ignored

  port: 27017

  enableLocalhostAuthBypass: false

  dbPath: /var/snap/rocketchat-server/common
    enabled: true

  destination: syslog

  replSetName: rs0

  pidFilePath:  /var/snap/rocketchat-server/common/


Then refresh.


That fixed it, thank you for the help.

It does list a banner now saying: “MongoDB version 3.6.23 is deprecated, please upgrade your installation”. Given that this is all a snaps install, I figured it would automatically be upgraded and handled by snaps.

How do I upgrade MongoDB to the latest version that RocketChat supports, using snaps as main install method?

Don’t worry about that. It will be automatically updated with the snap.


Ok, good to know. Thanks again for your help.