# How to upgrade to Rocketchat-server 5.x with snap

**URL:** <https://forums.rocket.chat/t/how-to-upgrade-to-rocketchat-server-5-x-with-snap/15653>\
**Category:** Community Support\
**Created:** [December 23, 2022, 9:37pm UTC](https://forums.rocket.chat/t/how-to-upgrade-to-rocketchat-server-5-x-with-snap/15653 "2022-12-23T21:37:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjc8712](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@cjc8712](https://forums.rocket.chat/u/cjc8712)\
**Post date:** [December 23, 2022, 9:37pm UTC](https://forums.rocket.chat/t/how-to-upgrade-to-rocketchat-server-5-x-with-snap/15653/1 "2022-12-23T21:37:09Z")

</div>

Hello:

I’m trying to upgrade to Rocketchat-server 5.x using snap. I have changed snap to use the 5.x/stable channel, however I get the error:

error: snap “rocketchat-server” is not available on 5.x/stable but is available to install on the  
following tracks:

```
   latest/stable snap refresh --stable rocketchat-server
   4.x/stable snap refresh --channel=4.x rocketchat-server
   3.x/stable snap refresh --channel=3.x rocketchat-server
   2.x/stable snap refresh --channel=2.x rocketchat-server

```

Yet I see that rocketchat-server version 5.3.4 is available on the 5.x/stable channel here:

> **[Install Rocket.Chat Server on Linux | Snap Store](https://snapcraft.io/rocketchat-server)**
>
> Get the latest version of Rocket.Chat Server for Linux - Rocket.Chat server

Any idea why I cannot install it from snap?

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![debdut.chakraborty](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/debdut.chakraborty/32/2900_2.png) [@debdut.chakraborty](https://forums.rocket.chat/u/debdut.chakraborty)\
**Post date:** [December 24, 2022, 11:58am UTC](https://forums.rocket.chat/t/how-to-upgrade-to-rocketchat-server-5-x-with-snap/15653/2 "2022-12-24T11:58:38Z")

</div>

Is the architecture arm?

---

<div class="post-metadata">

**Author:** ![nboisse](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nboisse](https://forums.rocket.chat/u/nboisse)\
**Post date:** [December 27, 2022, 1:28pm UTC](https://forums.rocket.chat/t/how-to-upgrade-to-rocketchat-server-5-x-with-snap/15653/3 "2022-12-27T13:28:41Z")

</div>

Hi,

Same error for me. I use Debian 11 x86\_64.

This is return of “snap info rocketchat-server” command :

name: rocketchat-server  
summary: Rocket.Chat server  
publisher: Rocket.Chat (rocketchat✓)  
store-url: [Install Rocket.Chat Server on Linux | Snap Store](https://snapcraft.io/rocketchat-server)  
contact: [Rocket.Chat](https://open.rocket.chat/channel/ubuntu-snap)  
license: unset  
description: |  
Have your own Slack like online chat, built with Meteor. [https://rocket.chat/](https://rocket.chat/)  
commands:

- rocketchat-server.backupdb
- rocketchat-server.mongo
- rocketchat-server.restoredb  
services:  
rocketchat-server.rocketchat-caddy: simple, disabled, inactive  
rocketchat-server.rocketchat-mongo: forking, enabled, active  
rocketchat-server: simple, enabled, active  
snap-id: #######################  
tracking: 4.x/stable  
refresh-date: today at 19:15 CET  
channels:  
**5.x/stable: 5.4.0 2022-12-07 (1536) 300MB -**  
5.x/candidate: 5.4.0 2022-12-07 (1536) 300MB -  
5.x/beta: 5.3.4 2022-11-30 (1532) 292MB -  
5.x/edge: 5.4.0 2022-12-07 (1536) 300MB -

---

<div class="post-metadata">

**Author:** ![cjc8712](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@cjc8712](https://forums.rocket.chat/u/cjc8712)\
**Post date:** [December 28, 2022, 1:35pm UTC](https://forums.rocket.chat/t/how-to-upgrade-to-rocketchat-server-5-x-with-snap/15653/4 "2022-12-28T13:35:30Z")

</div>

Yes, the architecture is ARM. Using Raspberry Pi OS 11 to be exact, with a fresh install a few weeks ago. I thought Raspberry Pi OS pulls from the upstream Debian repo.

---

<div class="post-metadata">

**Author:** ![nboisse](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nboisse](https://forums.rocket.chat/u/nboisse)\
**Post date:** [December 29, 2022, 7:30pm UTC](https://forums.rocket.chat/t/how-to-upgrade-to-rocketchat-server-5-x-with-snap/15653/5 "2022-12-29T19:30:34Z")

</div>

I found the solution : there was no write permission on “/var/snap/rocketchat-server/current/OVERWRITE\_SETTING\_Site\_Url.env” file.

Just changing with “chattr -i [file]” command and it works.

---

<div class="post-metadata">

**Author:** ![cjc8712](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@cjc8712](https://forums.rocket.chat/u/cjc8712)\
**Post date:** [January 2, 2023, 6:50pm UTC](https://forums.rocket.chat/t/how-to-upgrade-to-rocketchat-server-5-x-with-snap/15653/6 "2023-01-02T18:50:18Z")

</div>

Unfortunately, I don’t seem to have that file in that directory:

pi@myserver:/var/snap/rocketchat-server/current $ ls  
Caddyfile Caddyfile.new Caddyfile.orig mongod.conf

Any other ideas? Thanks.

---

<div class="post-metadata">

**Author:** ![nboisse](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nboisse](https://forums.rocket.chat/u/nboisse)\
**Post date:** [January 3, 2023, 9:39am UTC](https://forums.rocket.chat/t/how-to-upgrade-to-rocketchat-server-5-x-with-snap/15653/7 "2023-01-03T09:39:40Z")

</div>

Just try “snap refresh rocketchat-server” and see if there is an error on a file.

---

<div class="post-metadata">

**Author:** ![cjc8712](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@cjc8712](https://forums.rocket.chat/u/cjc8712)\
**Post date:** [January 3, 2023, 4:06pm UTC](https://forums.rocket.chat/t/how-to-upgrade-to-rocketchat-server-5-x-with-snap/15653/8 "2023-01-03T16:06:11Z")

</div>

When running “snap refresh rockchat-server”, I am getting:

```auto
error: snap "rocketchat-server" is not available on 5.x/stable but is available to install on the
       following tracks:

       latest/stable snap refresh --stable rocketchat-server
       4.x/stable snap refresh --channel=4.x rocketchat-server
       3.x/stable snap refresh --channel=3.x rocketchat-server
       2.x/stable snap refresh --channel=2.x rocketchat-server

       Please be mindful that different tracks may include different features. Get more information
       with 'snap info rocketchat-server'.

```

If I do a “snap info rocketchat-server”, I get:

```auto
name: rocketchat-server
summary: Rocket.Chat server
publisher: Rocket.Chat (rocketchat✓)
store-url: https://snapcraft.io/rocketchat-server
contact: https://open.rocket.chat/channel/ubuntu-snap
license: unset
description: |
  Have your own Slack like online chat, built with Meteor. https://rocket.chat/
commands:
  - rocketchat-server.backupdb
  - rocketchat-server.mongo
  - rocketchat-server.restoredb
services:
  rocketchat-server.rocketchat-caddy: simple, enabled, active
  rocketchat-server.rocketchat-mongo: forking, enabled, active
  rocketchat-server: simple, enabled, active
snap-id: wdBUbiEuMNHmAHLBCXQXOcXaOCvbWS1e
tracking: 5.x/stable
refresh-date: 25 days ago, at 07:35 EST
channels:
  latest/stable: 3.18.2 2021-12-06 (1495) 217MB -
  latest/candidate: 3.18.2 2021-12-06 (1495) 217MB -
  latest/beta: 3.18.2 2021-12-06 (1495) 217MB -
  latest/edge: 3.18.2 2021-12-06 (1495) 217MB -
  4.x/stable: 4.1.2 2021-12-15 (1496) 212MB -
  4.x/candidate: 4.1.2 2021-12-15 (1496) 212MB -
  4.x/beta: 4.6.4 2022-06-07 (1519) 282MB -
  4.x/edge: 4.1.2 2021-11-19 (1496) 212MB -
  3.x/stable: 3.18.2 2021-11-28 (1495) 217MB -
  3.x/candidate: 3.18.2 2021-11-28 (1495) 217MB -
  3.x/beta: 3.18.2 2021-11-28 (1495) 217MB -
  3.x/edge: 3.18.2 2021-11-28 (1495) 217MB -
  2.x/stable: 2.4.9 2020-02-19 (1423) 272MB -
  2.x/candidate: ↑
  2.x/beta: ↑
  2.x/edge: ↑
installed: 4.1.2 (1496) 212MB -

```

As shown we are on 4.1.2, but trying to upgrade to latext 5.x/stable.

Is there a better place to look for errors?

---

<div class="post-metadata">

**Author:** ![cjc8712](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@cjc8712](https://forums.rocket.chat/u/cjc8712)\
**Post date:** [January 9, 2023, 12:20pm UTC](https://forums.rocket.chat/t/how-to-upgrade-to-rocketchat-server-5-x-with-snap/15653/9 "2023-01-09T12:20:22Z")

</div>

I discovered that the reason I am not seeing the current versions is that the ARM64 releases on [snapcraft.io](http://snapcraft.io) are behind, compared to other architectures like AMD64, etc.

Are there any plans to release current snaps of Rocketchat-server for ARM64?

Thanks again.
