1 How to upgrade Nextcloud
ayakael edited this page 2025-09-21 19:54:55 +00:00
  1. On VM, replace every instance of nextcloudxx in /etc/apk/world with new version. (i.e. nextcloud30nextcloud31)
  2. Execute sudo occ upgrade
  3. 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, then apk add nextcloud31-app_api), and sudo occ upgrade
  4. Disable maintenance by editing `/etc/nextcloud/config.php
  5. Reload php-fpm via sudo service php-fpm83 reload
  6. Add missing indices to database: sudo occ db:add-missing-indices
  7. Add missing database tables: sudo occ maintenance:repair --include-expensive
  8. 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