Deadlock-Bug in snap revision 1785 - Upgrade from RC7 to 8 fails during pre_refresh hook

What version are you coming from?

7.13.5

What version are you going to?

8.5.1

What deployment method did you use to deploy?

Snap

Did you follow a particular doc? Which one?

What issues are you running into upgrading?

Performed steps:

snap switch rocketchat-server --channel=8.x/stable

snap refresh

Error:

$ snap refresh
error: cannot perform the following tasks:
- Run pre-refresh hook of "rocketchat-server" snap if present (run hook "pre-refresh": 
-----
{"t":{"$date":"2026-06-22T15:42:07.653+02:00"},"s":"I",  "c":"CONTROL",  "id":23285,   "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2026-06-22T15:42:07.655+02:00"},"s":"I",  "c":"NETWORK",  "id":4915701, "ctx":"main","msg":"Initialized wire specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":21},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":21},"outgoing":{"minWireVersion":6,"maxWireVersion":21},"isInternalClient":true}}}
{"t":{"$date":"2026-06-22T15:42:07.655+02:00"},"s":"I",  "c":"NETWORK",  "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
{"t":{"$date":"2026-06-22T15:42:07.656+02:00"},"s":"I",  "c":"REPL",     "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","namespace":"config.tenantMigrationDonors"}}
{"t":{"$date":"2026-06-22T15:42:07.656+02:00"},"s":"I",  "c":"REPL",     "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","namespace":"config.tenantMigrationRecipients"}}
Killing process with pid: 3423111
[ERROR] pre refresh migration script /snap/rocketchat-server/1785/migrations/pre_refresh/feature_compatibility/00-adopt_version.sh
-----)

Does anyone have any ideas? Oddly enough, this only happens on a couple of servers while it does succeed on the majority of servers which were all set up with the same Ansible-Playbook.

We are planning on switching to a docker deployment but for now we have to upgrade via snap as support for the apps is ending soon.

New finding: On the servers where the upgrade fails, a different revision of the snap package is installed (rev1785 :x: vs. rev1786 :white_check_mark:). In rev1785 in the script 00-adopt_version.sh, there’s a typo at the end with && stop_monngod. Unfortunately, I can’t fix it because it’s read-only.

In rev1786 this script has been improved and completely updatet as I can see on a different server.

Seems like I’m in a deadlock. Any ideas?

Easier to dump the db and import to docker for the reasons you mentioned.

Just in case someone is looking for a helpful answer to this, you will find a solution to the problem here: Snap upgrade from 7.13.5 (rev 1785) to 8.x/stable fails in pre-refresh hook 00-adopt_version.sh · Issue #41023 · RocketChat/Rocket.Chat · GitHub

RC8 runs perfectly fine with Snap (for now - we will move away to Matrix eventually)

As advised, it is not a supported option any longer and people should move.

Singularly pointless comment.

Good luck with your move. “All that glisters is not gold”