I update via a cli script which my webhoster uberspace provides–always worked without fail before. Update didn’t run through this time, the frontend throws a 500 error. Running PHP 8.1
I’d been having problems updating from the web UI for a while and the provided script was useful when I didn’t know about the occ command. So I kept using the script.
The script doesn’t seem to do any magic, it executes the updater.phar, and after the update it does some database optimisations and restarts the notify push service…
#!/usr/bin/env bash
## Updater automatically works in maintenance:mode.
## Use the Uberspace backup system for files and database if you need to roll back.
## The Nextcloud updater creates backups only to safe base and app code data and config files
## so it takes ressources you might need for your productive data.
## Deactivate NC-updater Backups with --no-backup
php ~/html/updater/updater.phar -vv --no-backup --no-interaction
## database optimisations
php ~/html/occ db:add-missing-primary-keys --no-interaction
php ~/html/occ db:add-missing-columns --no-interaction
php ~/html/occ db:add-missing-indices --no-interaction
php ~/html/occ db:convert-filecache-bigint --no-interaction
php ~/html/occ app:update --all
## App updates may require additional steps to be done by the `upgrade` command
php ~/html/occ upgrade
/usr/sbin/restorecon -R ~/html
## FYI: If that file exist...
if test -f ~/etc/services.d/notify_push.ini
then supervisorctl restart notify_push
fi
However the php ~/html/occ app:update --all and php ~/html/occ upgrade commands are probably not necessary, since updater.phar --no-interaction already does that if I’m not mistaken, but they shouldn’t hurt either.
@thp
I’m not sure what exactly is causing the error message, but it seems to be related to the Mail app. You could try disabling the app, run the update again, and then re-enable it if the update has successfully completed.