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

[snap] Rocketchat Server crashes multiple times a day


Over the last two days I have seen an increase in crashes of our self-hosted rocketchat instance. it has gone from once every few weeks, to 4+ times a day. Both times before it crashed today we noticed a get command to /api/v1/user.presence? log snippets below. Other than these entries we have been struggling to find a reason why this instance has been crashing.

Server Setup Information

  • Version of Rocket.Chat Server:3.18.3
  • Operating System: Ubuntu 16.04.7 LTS
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: v12.22.1
  • MongoDB Version: 3.6.14 / wiredTiger (oplog Enabled)
  • Proxy: caddy
  • Firewalls involved: PAN

Any additional Information

Jan 5 11:13:57 rocketchat rocketchat-server.rocketchat-server[15111]: server.js:204 API â<9e><94> info - ePzHMoekky6YdQSMj [2022-01-05T19:13:57.549Z] “GET /api/v1/users.presence?ids=Xe5k9NrpuC7WGKkkN” 200 - “https:///channel/data_releases?jump=hxAGNqJzmMTnB4hDC” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Rocket.Chat/3.0.6 Chrome/85.0.4183.121 Electron/10.1.3 Safari/537.36” |

Jan 5 11:38:28 rocketchat rocketchat-server.rocketchat-server[21597]: server.js:204 API â<9e><94> info - 55zXW5BecjS9Avt6Y [2022-01-05T19:38:28.344Z] “GET /api/v1/users.presence?” 200 - “https:///channel/codepost” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36” |


Not sure about the workload you have, but I always suggest, for any workload, docker instead of snap.

Have you checked the machine requirements? Is there enough resources?