1
How to upgrade Nextcloud
ayakael edited this page 2025-09-21 19:54:55 +00:00
- On VM, replace every instance of
nextcloudxxin/etc/apk/worldwith new version. (i.e.nextcloud30-»nextcloud31) - Execute
sudo occ upgrade - Add package for very instance of
UnexpectedValueException: The files of the app "xx" were not correctly replaced before running the update(i.e if xx is app_api, thenapk add nextcloud31-app_api), andsudo occ upgrade - Disable maintenance by editing `/etc/nextcloud/config.php
- Reload php-fpm via
sudo service php-fpm83 reload - Add missing indices to database:
sudo occ db:add-missing-indices - Add missing database tables:
sudo occ maintenance:repair --include-expensive - Reload php-fpm via
sudo service php-fpm83 reload
Upgrade should be done
If upgrading PHP, you need to apply changes from old version to new version: TODO: document