Skip to main content

How to update your Nextcloud manually to a major version?

As already stated during the configuration of automatic updates, you need to update your server to major versions manually. You should automatically get notified by Mail and Nextcloud notification if a new major version was found.

Things to check before updating

  1. Never update to the first Nextcloud release like e.g. 21.0.0! Although the Nextcloud GmbH states that all releases are stable, you should always wait at least for the first point release, e.g. 21.0.1 before upgrading to a major version!

    note

    You can check the latest releases here: (click here)

  2. Check that all apps that you need are compatible with the new major version:
    Open https://yourdomain.com/settings/admin/overview with the admin account.

    Major version doesn't get shown
    • If the update to the major version doesn't get shown to you, do the following:
      1. Scroll down and change the Update Channel from Stable to Beta (Don't worry, this won't change any important setting on your installation)
      2. Reload the page
      3. You should see now that a new Nextcloud major version was found e.g. 21.0.1 (if you are on Nextcloud 20)
      4. It should also show to you if all installed apps have updates available for the new version or if some apps still miss updates for the new version.
      5. If all apps that you depend on have updates available for the new version, you are ready to upgrade!
      6. Now you are free to switch the Update Channel from Beta back to Stable (But as I've stated before: this setting won't change anything important on your installation)
    Major version gets shown
    • If the update to the major version gets shown to you, do the following:
      1. You should see now that a new Nextcloud major version was found e.g. 21.0.7 (if you are on Nextcloud 20)
      2. It should also show to you if all installed apps have updates available for the new version or if some apps still miss updates for the new version.
      3. If all apps that you depend on have updates available for the new version, you are ready to upgrade!

caution

If at least the first point release is out and you've checked that all apps have updates available for the new major Nextcloud version, you are ready to continue.


Preparation

  1. Create a Backup before updating (instructions)
    (Although the update is already tested, it could fail, you never know! So better to create a current backup!)
    (The update script itself will create a backup on its own but better to be double-safe.)

Execution

  1. Run over CLI:
    sudo bash /var/scripts/update.sh
  2. Wait until the update has run and it reports that the update was successful.
  3. Wait until the server automatically reboots

Now you should have successfully updated to a new major Nextcloud version!

Mimetype database update

After a successful update, you should consider updating Nextclouds mimetype database. This is not done automatically and should be done after every successful major Nextcloud update to propagate all changed mimetypes into Nextcloud. Here is how to do this:

  1. Run over CLI:
    sudo bash /var/scripts/menu.sh
  2. Choose Nextcloud Configuration -> Update mimetype list
  3. Choose Yes to update the mimetype database.

failed updates

If the update has failed for you, you can easily restore your system from the backup that you've just created by following these steps: click here