Nextcloud version (eg, 20.0.5): 27.1.1
Operating system and version (eg, Ubuntu 20.04): unknown
Apache or nginx version (eg, Apache 2.4.25): unknown
PHP version (eg, 7.4): 8.2
The issue you are facing:
When upgrading from 27.1.1 to 27.1.4 I get an error. Unfortunately neither the web interface nor the log really tell me, what the problem ist.
The last entry in the log is that it’s checking for an update of the activity app.
The installation is more or less vanilla, with calendar and contacts enabled.
I do not have access to SSH/occ, which makes this even more difficult. But I don’t even know where to start looking for the problem.
After the failed update, i can turn maintenance mode off and start again, every time with the same error.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Update from 27.1.1 via Web Interface
- Update fails at:
The database schema is updating
Database updated
An error occured
The output of your Nextcloud log in Admin > Logging:
{"reqId":"ZXwsmfmNDaG0CbUpr8MEIwAAABs","level":1,"time":"2023-12-15T10:38:17+00:00","remoteAddr":"46.142.169.165","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=3y2ArsFUrgbyF%2Bz0Tz9MIfx0Prhu7HQetn82RdULSkM%3D%3AtUf1wrRt4zS1U72%2BAA4jUZ0cW%2F5Yn017xgpwF5ptEnY%3D","message":"\\OC\\Updater::setDebugLogLevel: Set log level to debug","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"27.1.1.0","data":{"app":"updater"}}
{"reqId":"ZXwsmfmNDaG0CbUpr8MEIwAAABs","level":1,"time":"2023-12-15T10:38:17+00:00","remoteAddr":"46.142.169.165","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=3y2ArsFUrgbyF%2Bz0Tz9MIfx0Prhu7HQetn82RdULSkM%3D%3AtUf1wrRt4zS1U72%2BAA4jUZ0cW%2F5Yn017xgpwF5ptEnY%3D","message":"\\OC\\Updater::maintenanceEnabled: Turned on maintenance mode","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"27.1.1.0","data":{"app":"updater"}}
{"reqId":"ZXwsmfmNDaG0CbUpr8MEIwAAABs","level":0,"time":"2023-12-15T10:38:17+00:00","remoteAddr":"46.142.169.165","user":"--","app":"core","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=3y2ArsFUrgbyF%2Bz0Tz9MIfx0Prhu7HQetn82RdULSkM%3D%3AtUf1wrRt4zS1U72%2BAA4jUZ0cW%2F5Yn017xgpwF5ptEnY%3D","message":"starting upgrade from 27.1.1.0 to 27.1.4.1","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"27.1.1.0","data":{"app":"core"}}
{"reqId":"ZXwsmfmNDaG0CbUpr8MEIwAAABs","level":1,"time":"2023-12-15T10:38:17+00:00","remoteAddr":"46.142.169.165","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=3y2ArsFUrgbyF%2Bz0Tz9MIfx0Prhu7HQetn82RdULSkM%3D%3AtUf1wrRt4zS1U72%2BAA4jUZ0cW%2F5Yn017xgpwF5ptEnY%3D","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Repair MySQL collation","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"27.1.1.0","data":{"app":"updater"}}
{"reqId":"ZXwsmfmNDaG0CbUpr8MEIwAAABs","level":1,"time":"2023-12-15T10:38:17+00:00","remoteAddr":"46.142.169.165","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=3y2ArsFUrgbyF%2Bz0Tz9MIfx0Prhu7HQetn82RdULSkM%3D%3AtUf1wrRt4zS1U72%2BAA4jUZ0cW%2F5Yn017xgpwF5ptEnY%3D","message":"OC\\Repair\\Events\\RepairInfoEvent: Repair info: All tables already have the correct collation -> nothing to do","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"27.1.1.0","data":{"app":"updater"}}
{"reqId":"ZXwsmfmNDaG0CbUpr8MEIwAAABs","level":1,"time":"2023-12-15T10:38:17+00:00","remoteAddr":"46.142.169.165","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=3y2ArsFUrgbyF%2Bz0Tz9MIfx0Prhu7HQetn82RdULSkM%3D%3AtUf1wrRt4zS1U72%2BAA4jUZ0cW%2F5Yn017xgpwF5ptEnY%3D","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Repair SQLite autoincrement","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"27.1.1.0","data":{"app":"updater"}}
{"reqId":"ZXwsmfmNDaG0CbUpr8MEIwAAABs","level":1,"time":"2023-12-15T10:38:17+00:00","remoteAddr":"46.142.169.165","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=3y2ArsFUrgbyF%2Bz0Tz9MIfx0Prhu7HQetn82RdULSkM%3D%3AtUf1wrRt4zS1U72%2BAA4jUZ0cW%2F5Yn017xgpwF5ptEnY%3D","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Copy data from accounts table when migrating from ownCloud","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"27.1.1.0","data":{"app":"updater"}}
{"reqId":"ZXwsmfmNDaG0CbUpr8MEIwAAABs","level":1,"time":"2023-12-15T10:38:17+00:00","remoteAddr":"46.142.169.165","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=3y2ArsFUrgbyF%2Bz0Tz9MIfx0Prhu7HQetn82RdULSkM%3D%3AtUf1wrRt4zS1U72%2BAA4jUZ0cW%2F5Yn017xgpwF5ptEnY%3D","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Drop account terms table when migrating from ownCloud","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"27.1.1.0","data":{"app":"updater"}}
{"reqId":"ZXwsmfmNDaG0CbUpr8MEIwAAABs","level":1,"time":"2023-12-15T10:38:17+00:00","remoteAddr":"46.142.169.165","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=3y2ArsFUrgbyF%2Bz0Tz9MIfx0Prhu7HQetn82RdULSkM%3D%3AtUf1wrRt4zS1U72%2BAA4jUZ0cW%2F5Yn017xgpwF5ptEnY%3D","message":"\\OC\\Updater::dbUpgradeBefore: Updating database schema","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"27.1.1.0","data":{"app":"updater"}}
{"reqId":"ZXwsmfmNDaG0CbUpr8MEIwAAABs","level":1,"time":"2023-12-15T10:38:17+00:00","remoteAddr":"46.142.169.165","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=3y2ArsFUrgbyF%2Bz0Tz9MIfx0Prhu7HQetn82RdULSkM%3D%3AtUf1wrRt4zS1U72%2BAA4jUZ0cW%2F5Yn017xgpwF5ptEnY%3D","message":"\\OC\\Updater::dbUpgrade: Updated database","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"27.1.1.0","data":{"app":"updater"}}
{"reqId":"ZXwsmfmNDaG0CbUpr8MEIwAAABs","level":0,"time":"2023-12-15T10:38:17+00:00","remoteAddr":"46.142.169.165","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=3y2ArsFUrgbyF%2Bz0Tz9MIfx0Prhu7HQetn82RdULSkM%3D%3AtUf1wrRt4zS1U72%2BAA4jUZ0cW%2F5Yn017xgpwF5ptEnY%3D","message":"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"activity\" in appstore","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"27.1.1.0","data":{"app":"updater"}}
The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'ocpo3zoqrwma',
'passwordsalt' => '',
'secret' => '',
'trusted_domains' =>
array (
0 => '.de',
1 => 'www..de',
),
'datadirectory' => '/www/htdocs/*/*.de/nextcloud/data',
'dbtype' => 'mysql',
'version' => '27.1.1.0',
'overwrite.cli.url' => 'http://*.de/nextcloud',
'dbname' => '',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'y5lGi_',
'mysql.utf8mb4' => true,
'dbuser' => '',
'dbpassword' => '',
'installed' => true,
'tempdirectory' => '/www/htdocs/*/*.de/nextcloud/tmp/',
'mail_smtpmode' => 'sendmail',
'mail_sendmailmode' => 'pipe',
'mail_from_address' => '.',
'mail_domain' => '.de',
'default_phone_region' => 'DE',
'updater.secret' => '',
'maintenance' => true,
'theme' => '',
'loglevel' => 0,
'updater.release.channel' => 'stable',
);
The output of your Apache/nginx/system log in /var/log/____:
no access
