Skip to content

Cannot upgrade snap 5.4.5 to 6.x #54

@tuxmartin

Description

@tuxmartin

Description:

I tried to upgrade Rocket.Chat from 5.4.5 to 6.x using Snap on Debian 11, but it crashed.

Steps to reproduce:

  1. snap switch rocketchat-server --channel=6.x/stable
  2. snap refresh

Server Setup Information:

  • Version of Rocket.Chat Server: 5.4.5
  • Operating System: Debian 11
  • Deployment Method: snap
  • Number of Running Instances: 1
  • NodeJS Version: 14.19.3
  • MongoDB Version: 4.4.15

Relevant logs:

root@example.net / # snap list
Name               Version    Rev    Tracking       Publisher    Notes
core               16-2.58.3  14946  latest/stable  canonical✓   core
core18             20230320   2721   latest/stable  canonical✓   base
core20             20230308   1852   latest/stable  canonical✓   base
hello-world        6.4        29     latest/stable  canonical✓   -
rocketchat-server  5.4.5      1544   5.x/stable     rocketchat✓  -
root@example.net / # snap refresh 
All snaps up to date.
root@example.net / # snap switch rocketchat-server --channel=6.x/stable
"rocketchat-server" switched to the "6.x/stable" channel

root@example.net / # snap list
Name               Version    Rev    Tracking       Publisher    Notes
core               16-2.58.3  14946  latest/stable  canonical✓   core
core18             20230320   2721   latest/stable  canonical✓   base
core20             20230308   1852   latest/stable  canonical✓   base
hello-world        6.4        29     latest/stable  canonical✓   -
rocketchat-server  5.4.5      1544   6.x/stable     rocketchat✓  -
root@example.net / # 
root@example.net / # 
root@example.net / # snap refresh 
error: cannot perform the following tasks:
- Start snap "rocketchat-server" (1545) services (systemctl command [start snap.rocketchat-server.rocketchat-mongo.service] failed with exit status 1: Job for snap.rocketchat-server.rocketchat-mongo.service failed because the control process exited with error code.
See "systemctl status snap.rocketchat-server.rocketchat-mongo.service" and "journalctl -xe" for details.
)
root@example.net / # systemctl status snap.rocketchat-server.rocketchat-mongo.service
● 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: active (running) since Wed 2023-04-19 02:04:33 CEST; 13s ago
   Main PID: 2445768 (mongod)
      Tasks: 75 (limit: 9502)
     Memory: 266.5M
        CPU: 3.018s
     CGroup: /system.slice/snap.rocketchat-server.rocketchat-mongo.service
root@example.net / # 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions