Finn nyeste versjon på server her: https://sky.elogit.no/settings/admin/overview
Let opp neste store versjon her: https://hub.docker.com/r/linuxserver/nextcloud/
sett opp korrekt versjon i docker-compose: image: linuxserver/nextcloud:31.0.12-previous
hent samme versjon på server: docker pull linuxserver/nextcloud:31.0.12-previous
stopp container og fjern image: (cd til mappe hvor composer filene er) docker-compose down docker rm docker-compose up -d
Etter ny container er starta må man kanskje kjøre manuell oppgradering via occ: sudo docker exec --user abc nextcloud php app/www/public/occ upgrade
Kanskje også en liten reparering: sudo docker exec --user abc nextcloud php app/www/public/occ maintenance:repair
Av og til kan det være greit å sjekke at databasene også fungerer som de skal:
sudo docker exec --user abc nextcloud php app/www/public/occ db:add-missing-columns && sudo docker exec --user abc nextcloud php app/www/public/occ db:add-missing-indices && sudo docker exec --user abc nextcloud php app/www/public/occ db:add-missing-primary-keys
Updating Nextcloud
Updating Nextcloud is done by pulling the new image, and recreating the container with it.
It is only possible to upgrade one major version at a time. For example, if you want to upgrade
from version 14 to 16, you will have to upgrade from version 14 to 15, then from 15 to 16.
Since all data is stored in the /config and /data 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.
https://hub.docker.com/r/linuxserver/nextcloud
Mer info her: https://docs.nextcloud.com/server/32/admin_manual/maintenance/upgrade.html
https://docs.nextcloud.com/server/32/admin_manual/maintenance/manual_upgrade.html
Last modified: Fri Jan 9 09:07:43 2026