NextcloudPI as docker container. Actual way to update nextcloud

The common way to upgrade is to use ’ nc-update-nextcloud '. This script doesn’t work in docker, it exits cause the container has no btrfs support. So how should the upgrade be done if ncp is running as a docker container? Directly from nextcloud itself? Or is it finally possible to drop the container, update the image and recreate the ncp container? Thank you

Updating the Nextcloud container is done by pulling the new image, throwing away the old container and starting the new one. Since all data is stored in volumes, nothing gets lost. The startup script will check for the version in your volume and the installed docker version. If it finds a mismatch, it automatically starts the upgrade process.:

$ docker pull nextcloud
$ docker stop <your_nextcloud_container>
$ docker rm <your_nextcloud_container>
$ docker run <OPTIONS> -d nextcloud

or with docker-compose:

$ docker-compose pull
$ docker-compose up -d

see https://hub.docker.com/_/nextcloud -> Update to a newer version

this is the normal way with a regualr nextcloud container, but I’m using ncp (nextcloudpi) and in ncp the upgrade process is a bit different, at least it has been different last year.

@piamuc
Just tried nc-update-nextcloud inside a ncp docker container.
Update runs fine, so I cannot reproduce the error.
Did your run nc-update first? NCP should be on v1.11.2 ?
If not, try updating NCP first, then try again.

[ nc-update-nextcloud ]
Current Nextcloud version 15.0.5.3
Available Nextcloud version 15.0.7
Download Nextcloud 15.0.7…
Back up current instance…
check free space…
Maintenance mode enabled
backup database…
backup files…
backup /var/www//nextcloud-bkp_20190415_1555328880.tar.gz generated
Maintenance mode disabled
Install Nextcloud 15.0.7…
Restore apps…
…
Starting code integrity check…
Finished code integrity check
Update successful
Turned off maintenance mode
Reset log level
Check indices of the share table.
Done.
Backup stored at /data/nextcloud/data/ncp-update-backups/nextcloud-bkp_20190415_1555328880-15.0.5.3.tar.gz
Clean up…
All tables already up to date!

@OliverV
Yes ncp was on v1.11.2, but I started the ncp-update again.
But this didn’t change anything.
This is all I got in ncp.log after nc-update-nextcloud [Apply] :

[ nc-update-nextcloud ]
BTRFS not supported

if you are on BTRFS you are going to have to use the Nextcloud updater, there’s no support yet

Pulling the new container is always good, but that’s not going to upgrade the NC version

thank you @nachoparker