Rocket Chat Snap Failing to Start Since Reboot/Update


#1

Hey Guys :smiley:,

My server rebooted and it looks like SNAP may have done an update and caused something to fail, I don’t know how to fix this one.

I have connected to the rocket-chat server via SSH.

First I typed command:

sudo service snap.rocketchat-server.rocketchat-server status

And I received:

Loaded: loaded (/etc/systemd/system/snap.rocketchat-server.rocketchat-server.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Sat 2019-01-05 12:54:51 SAST; 24h ago
Process: 13881 ExecStart=/usr/bin/snap run rocketchat-server (code=exited, status=1/FAILURE)
Main PID: 13881 (code=exited, status=1/FAILURE)

Jan 05 12:54:51 carrier systemd[1]: snap.rocketchat-server.rocketchat-server.service: Unit entered failed state.
Jan 05 12:54:51 carrier systemd[1]: snap.rocketchat-server.rocketchat-server.service: Failed with result ‘exit-code’.
Jan 05 12:54:51 carrier systemd[1]: snap.rocketchat-server.rocketchat-server.service: Service hold-off time over, scheduling restart.
Jan 05 12:54:51 carrier systemd[1]: Stopped Service for snap application rocketchat-server.rocketchat-server.
Jan 05 12:54:51 carrier systemd[1]: snap.rocketchat-server.rocketchat-server.service: Start request repeated too quickly.
Jan 05 12:54:51 carrier systemd[1]: Failed to start Service for snap application rocketchat-server.rocketchat-server.

Then I type command:

sudo snap refresh rocketchat-server

And I get response:

error: cannot communicate with server: Post http://localhost/v2/snaps/rocketchat-server: EOF

I check the snap list with command:

snap list

And I get response:

Name Version Rev Tracking Publisher Notes
core 16-2.36.2 6034 stable canonical✓ core
rocketchat-server 0.71.1 1343 stable rocketchat✓ -

I have read somewhere that snap needs writable permissions to certain folders, I don’t know where to check for that. Either way, I would also please like to prevent snap from updating on its own and causing things like this.

Where do I go from here?


#2

@CarrierClass Please check out the SNAP FAQ here:

https://rocket.chat/docs/installation/manual-installation/ubuntu/snaps/#faq

Using commands doc’d in the FAQ - what you can try is:

  1. stop rocketchat-server
  2. stop rocketchat-mongo
  3. start rocketchat-mongo
  4. monitor the logs of rocketchat-mongo and wait until it starts up successfully and waiting for request; on low-resource systems this can take a couple of minutes
  5. start rocketchat-server