This is the final step in bringing my in-house Nextcloud installation up to date. This should be very similar to the upgrade Nextcloud 25 I hope.

This will upgrade to the latest patch version, which is currently Nextcloud 26.0.1 and brings me to the same version as another instances I'm looking after.

Contents

  1. Plan
  2. Prepare
  3. Nextcloud 26

Plan

Just for continuity with the the previous chapters. Nothing has changed, which is nice.

Version Linux Apache MariaDB PHP
Nextcloud 24 Ubuntu 20.04 LTS Apache 2.4 MariaDB 10.5.19 PHP 7.4.3
Nextcloud 25

Ubuntu 20.04 LTS, Ubuntu 22.04 LTS

Apache 2.4 MariaDB 10.5, MariaDB 10.6 PHP 7.4*, PHP 8.0, PHP 8.1
Nextcloud 26 Ubuntu 20.04 LTS, Ubuntu 22.04 LTS Apache 2.4 MariaDB 10.5, MariaDB 10.6 PHP 8.0, PHP 8.1, PHP 8.2

While PHP 7.4 is now end of life it' still supported for Nextcloud 25 so we will update this at the same time. There's no need to upgrade any of the other components although if the other Nextcloud instance goes ahead I'll update MariaDB to 10.6 for consistency. The underlined versions are the recommended ones where there's a choice.

So from this we get a sequence of steps

  1. Apply latest OS patches ✅
  2. Apply Nextcloud 24.0.12 patch ✅
  3. Upgrade Nextcloud to version 25 ✅
  4. Upgrade PHP to version 8.1 ✅
  5. Test ✅
  6. Consider upgrade Maria DB to 10.6
  7. Upgrade Nextcloud to version 26
  8. Test

Once we have successfully tested at step 8 we can apply this to the Live instance.

As always before starting changes that might get interesting, the first step is to take a backup. Since this is running on my Geeklab, I can use a VM snapshot. While this needs a short outage, it means restores are also very fast as well. And when it's working I can release the snapshot. The previous snapshots have all been released too.

Components Start Version End Version
Linux Ubuntu 20.04 LTS Ubuntu 20.04 LTS
Apache 2 Apache 2.4.41 Apache 2.4.41
MariaDB 10.5.19 10.5.19
PHP 7.4.3 8.1.18
Nextcloud 25.0.6 26.0.1

 

Consider upgrade MariaDB to 10.6

No, not at this time.

The current version, 10.5, is supported and working so it's not high priority. I have a few MariaDB hosts now with a few install variations between them so maybe later this year I'll bring them all into the same configuration and version.

Prepare

Applying OS patches is just a routine call to apt

sudo apt update
sudo apt upgrade

A full backup is also taken too, just in case something interesting. Since this is a VM I can also take a snaphot as well so a restore is virtually instant.

Also check the free space in your Nextcloud Data directory, eg /srv/nextcloud/data as the upgrade process will also create a backup copy of you Nextcloud application files in there. I would suggest you want at least 700 MB of space in there before you begin. If you have been updating regularly you might want to delete old backups from the update-[instanceid] directory first.

This is all based on the official Nextcloud process which can be found here:

https://docs.nextcloud.com/server/latest/admin_manual/maintenance/update.html

Nextcloud 26 Upgrade

Under Settings > Administration : Overview we have an option to automatically upgrade to Nextcloud 26.0.1.

Nextcloud version 25.0.6

Click on the Open updater button and a familiar screen should open up.

Nextcloud Updater start

And after a couple of minutes

Nextcloud 25 app update

Click on the Disable maintenance... button to switch back into Nextcloud and update the apps.

Incompatible app warning

And again this odd warning that incompatible apps will be disabled despite earlier declaration that all apps were OK. Spoiler: No issues with Deck after the update completed.

Click the Start update button.

Nextcloud app updates in progress

It takes a few minutes to update the applications and you'll see a stream of status messages on the screen.

So that's a bit worrying as it stated all apps have a compatible version before we started the upgrade. Letting it run the application update seemed to go OK and after a few minutes it announced success.

Nextcloud App updates complete

Looking at the application list in Settings > Apps both Deck 1.9 and Group Folders 14.01 are installed and active and look to be working so still no idea what's going on there.

Nextcloud Version 26.0.1

The version now shows we're on 26.0.1 and fully up to date. Also no warnings at all about needing to update database indexes either, so I guess it's time for a beer to continue with other things.

Aftermath

The new editor in Deck is nice although no sign of the replacement for Project functionality that got removed. Mail seems a lot more responsive and Calendar also seems a bit prettier too.