Snap fails due to MongoDB down since 1.1 update (apparmor problem)

I’m using Ubuntu 16.04.
I installed rocketchat about 5/6 months using snaps. Never had an issue with it until about a week ago.
When I check the rocketchat log, it is active (running) but I have an error message saying

Mongo is not available, can’t start. Waiting 20 seconds and trying again

So naturally I went to check on the mongo log. I’m getting

snap.rocketchat-server.rocketchat-mongo.service - Service for snap application rocketchat-server.rocketchat-mongo
Loaded: loaded (/etc/systemd/system/snap.rocketchat-server.rocketchat-mongo.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit-hit) since lun. 2019-06-24 10:32:34 CEST; 15s ago
Process: 17949 ExecStart=/usr/bin/snap run rocketchat-server.rocketchat-mongo (code=exited, status=134)
Main PID: 17949 (code=exited, status=134)

juin 24 10:32:33 bob systemd[1]: snap.rocketchat-server.rocketchat-mongo.service: Unit entered failed state.
juin 24 10:32:33 bob systemd[1]: snap.rocketchat-server.rocketchat-mongo.service: Failed with result ‘exit-code’.
juin 24 10:32:34 bob systemd[1]: snap.rocketchat-server.rocketchat-mongo.service: Service hold-off time over, scheduling restart.
juin 24 10:32:34 bob systemd[1]: Stopped Service for snap application rocketchat-server.rocketchat-mongo.
juin 24 10:32:34 bob systemd[1]: snap.rocketchat-server.rocketchat-mongo.service: Start request repeated too quickly.
juin 24 10:32:34 bob systemd[1]: Failed to start Service for snap application rocketchat-server.rocketchat-mongo.
juin 24 10:32:34 bob systemd[1]: snap.rocketchat-server.rocketchat-mongo.service: Unit entered failed state.
juin 24 10:32:34 bob systemd[1]: snap.rocketchat-server.rocketchat-mongo.service: Failed with result ‘start-limit-hit’.

I’m not familiar with MongoDB but I looked around and haven’t found something relating to how to solve this issue. I’ve tried to restart mongo and rocket chat without luck. I’ve also disabled and enable rocketchat.

1 Like

Also having this same issue, only starting today running MongoDB installed via Snap.

I also have this problem, help please.

I copied what was in my common folder. From my common folder, I discovered a backup from last month #bingo! I uninstalled rocketchat, installed it, copied the backup to my common folder and boom it works again

1 Like