Skip to content

Upgrade: Nextcloud version to latest LTS version (from 28 to 31)

Our current Docker composition (based on linuxserver.io) is:

  nextcloud-webapp:
    image: lscr.io/linuxserver/nextcloud:28.0.2-ls300

LinuxServer.io offers these Nextcloud images

...which leads to the question: "If we wanted to apply incremental image upgrades, how many would we need"?

Surveying the release logs from Nextcloud:

$ curl -s https://nextcloud.com/changelog/ | awk '/Version / {print $2}' | head -n 55

...shows that:

  • We are 55 releases behind. Yikes!

That's a lot of sequential upgrades, if we want to do things in a... ummmm... "safe" manner.

But hey! This is an experimental instance. And we gots no "real" user data yet.

So....

We're going to try upgrading directly to nextcloud:31.0.8-ls392

Note that we will not configure our image spec to be: nextcloud:latest

Famous Quote: "We'll test it in combat." -- James T. Kirk

And...

That didn't work.

Our URL (served via a reverse proxy from Nginx Proxy Manager) gave us an error: "502 Bad Gateway".

Famous Quote: "Looks like it's time to RTFM." -- Daniel Cunningham

We'll need to revise our upgrade strategy. We'll get into it below...

Edited by Daniel Cunningham