NC Update 27.1.1 > 27.1.4 fails at the app update step

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:

  1. Update from 27.1.1 via Web Interface
  2. 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

What’s the actual error message? Or is that the message?

You can check the updater.log in your data directory for details.

That IS the error message in the web GUI. The error message from the nextcloud.log is attached in my first comment.
The updater.log doesn’t show any logs to that update, only to the first update steps, when the new files were updated.

The final “./occ upgrade” equivalent in the web gui doesn’t appear at all in the updater.log

There’s no actual error in the nextcloud.log output that you shared. I wanted to confirm that was the literal error you were seeing.

The main thing I can see that could go wrong in that function would lead to a timeout, but there should generally be more indicators of that in the subsequent logs.

Can you post a screenshot of the error?

Unfortunately if you cannot access your hosting environment via SSH or similar than you’re going to have a tough time in scenarios like this. Are you certain you cannot get SSH access somehow?


It does look like this. Takes about 1-2 seconds for everything to finish until the error, so I doubt it’s a runtime error.

Im certainly can’t get SSH access, it’s just a webspace. Probably will have to set it up again from scratch.

Try finding some error in the given log files. Follow the docu to set up logging the correct way. It should tell the more detail afterward. With that you should be able fixing it.

As you can see in my config.php file, my log level is already set to 0. What else can I do?

It’s not uncommon for ssh to be disabled by default, but it’s typically available from just about any web hosting provider I’ve ever encountered. Are you certain you cannot enable it somewhere so that you can debug this properly?

Yes, I’m absolutely certain, I can’t get SSH access, i already asked my provider. :confused:

I just removed everythin besides the data folder, downloaded the new 28.0.0 files and updated again with the old config. This time it worked. Thanks for all the help so far

1 Like