# Common commands/issues

#### Upgrade major version

- Make sure you are on the latest version within the current major version: 
    - ```shell
        snap refresh rocketchat-server
        ```
- Then switch to the next major "track" 
    - ```shell
        snap refresh rocketchat-server --channel=4.x/stable
        ```

Source:

- [https://forums.rocket.chat/t/updating-rocket-chat-snap-to-4-x-track/12575](https://forums.rocket.chat/t/updating-rocket-chat-snap-to-4-x-track/12575)

#### Common issues

- When upgrading from version 3 to version 4, the application might not load, Firefox displaying an error message with an error code: "SSL\_ERROR\_INTERNAL\_ERROR\_ALERT" 
    - To fix that I had to set the site url:
    - ```shell
        snap set rocketchat-server siteurl=https://chat.domain.com
        ```
- then restart rocketchat