Nextcloud, MariaDB container version upgrade

TL;DR Upgrade path for Nextcloud and MariaDB container versions to get to :latest?

Hi all, I’ve got a question I just want a little more clarification on, mostly concerning container tags.

I have a LSIO Nextcloud container that uses a LSIO MariaDB backend. I take weekly tar backups of the Docker volume mounts (/config inside the containers) of this and other containers. I thought everything was going on great, but then “something went terribly wrong”.

I accidentally removed the wrong directory, unrecoverably. When I went to restore from backups, I found that the most recent one was 2022-03-30, six months ago! I restored that data, but the combination of the new container version (using :latest) and older volume mount caused internal Nextcloud errors that I didn’t find any easy way of rectifying.

I decided to try pulling the container tags that were published six months ago from LSIO’s Docker Hub (kudos for keeping those around, btw) for both MariaDB and Nextcloud.

Those versions are :23.0.3-ls177 for Nextcloud and :10.5.13 for MariaDB. With those two container versions, the app starts up and runs.

What would be the best sequence to pull new images and step through the upgrades? Or what should I be looking for in the Dockerfiles as clues to which ones are needed in the upgrade path?

From StackOverflow, I found a way to list all the tags in Dockerhub for each registry (http s://stackoverflow.com/questions/28320134/how-can-i-list-all-tags-for-a-docker-image-on-a-remote-registry).

Nextcloud:
23.0.3-ls177 <------ Current version, working app
23.0.3-ls178
23.0.3-ls179
23.0.3-ls180
23.0.3-php8 <------- I can skip PHP8, since I’m pretty sure I’ve been on v7 this whole time
23.0.4
23.0.4-ls180
23.0.4-ls181
23.0.4-ls182
23.0.4-ls183
23.0.4-ls184
23.0.4-php8
24.0.1
24.0.1-ls185
24.0.1-ls186
24.0.1-ls187
24.0.1-ls188
24.0.1-ls189
24.0.1-php8
24.0.2
24.0.2-ls189
24.0.2-ls190
24.0.2-ls191
24.0.2-ls192
24.0.2-ls193
24.0.2-php8
24.0.3
24.0.3-ls193
24.0.3-ls194
24.0.3-ls195
24.0.3-ls196
24.0.3-php8
24.0.4
24.0.4-ls197
24.0.4-ls198
24.0.4-ls199

MariaDB:
10.5.13 <--------- Current image for working container
10.5.13-alpine
10.5.13-r0-ls43
10.5.13-r0-ls44
10.5.13-r0-ls45
10.5.13-r0-ls46
10.5.13-r0-ls47
10.5.13-r0-ls48
10.5.13-r0-ls49
10.5.15
10.5.15-alpine
10.5.15-r0-ls50
10.5.15-r0-ls51
10.5.15-r0-ls52
10.5.15-r0-ls53
10.5.15-r0-ls54
10.5.15-r0-ls55
10.5.15-r0-ls56
10.5.15-r0-ls57
10.5.15-r0-ls58
10.5.16
10.5.16-alpine
10.5.16-r0-ls59
10.5.16-r0-ls60
10.5.16-r0-ls61
10.5.16-r0-ls62
10.5.16-r0-ls63
10.5.16-r0-ls64
10.5.16-r0-ls65
10.5.16-r0-ls66
10.5.17
10.5.17-alpine
10.5.17-r0-ls67

Thank you for any help you can provide.

As with any container, you need to pull the latest images and rebuild your container with the newest images to upgrade.

Nextcloud though, there is an extra step, once you’ve updated the image, you need to update nextcloud from within the app aswell. All explained in the application setup of the readme.

Thank you for the response. For some reason I didn’t think that would work, since it didn’t work with the first time I ran :latest with the older volume mounts.

At any rate, I got it working by pulling and running mariadb:10.5.16 and nextcloud:23.0.4. Then I stopped those, and pulled and ran mariadb:latest and nextcloud:latest. I didn’t get the same “Internal Server Error” I got when this started, and got to the login screen. So I’m assuming things are working properly now.

Thank you for taking the time to respond to my question, @j0nnymoe. I wasn’t sure jumping to :latest was going to pan out, but it ended up working. Thanks again!

Just as a token of appreciation, I was looking for a way to DM you for where to send a small amount of tip money. I don’t earn anything from running the software that linuxserver.io distributes, but I wanted to find a way to give back a little. I found that linuxserver.io has an OpenCollective page, so I made a donation to the organization there. I hope it helps!

For anyone else reading, the OpenCollective page is here. (Forum rules won’t let me make this a hyperlink below

https ://opencollective.com/linuxserver

2 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.