Update to 19.0.10 - code integrity error

Support intro
example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version somewhere between 19.0.2 and 19.0.10.1 (I am upgrading)
Operating system and version Linux shared hosting
Apache or nginx version Apache 2.4.46
PHP version 7.2.34 (but I have set it to alt-php74 everywhere in multi-PHP mgr, not clear why the discrepancy in CPanel server information)

The issue you are facing:
Web Updater completes, and send me to the usual “blue page” to “finish the update”.
Script proceeds through a long list of actions with no interesting info, and ends abruptly with
Starting code integrity check... An error occurred.

If I click on the proposed link Please reload the page, I end up stuck on the Nextcloud maintenance page and there is no obvious way to get out of it or to fix the integrity issue.

There is no way to know if I am in a dangerous transition or in a safe halt.
Updater log just says I’ve completed the final step #12 and no other useful info

I can change the status to ‘maintenance = false’ under config.php, and the maintenance page automatically brings me back to the blue "pls complete update screen’, looping all over again to “integrity checked failed”, without any solution.

Is this the first time you’ve seen this error?
Y (because it’s the 1st time I upgrade to this version)

Steps to replicate it:

  1. Run web updater from Admin Nextcloud page, then “complete update”. Script fails
  2. set maintenance = false in config.php
  3. click on “complete update” and script fails again. I can do this as many times as I want

The output of your Nextcloud log in Admin > Logging:
I can’t get into Admin / Logging; I’m in maintenance mode

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'my_instance',
  'passwordsalt' => 'mypwdsalt',
  'secret' => 'mysecret',
  'trusted_domains' => 
  array (
    0 => 'myclouddomain',
  ),
  'datadirectory' => '/myhostedroot/nextclouddata',
  'dbtype' => 'mysql',
  'version' => '19.0.2.2',
  'overwrite.cli.url' => 'https://realcloudURLgoes here',
  'dbname' => 'mydbname',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'mydbusername',
  'dbpassword' => 'myDBpwd',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'maintenance' => true,
  'theme' => '',
  'loglevel' => 0,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'admin',
  'mail_domain' => 'mymaildomain',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'mysmtphost',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'admin@mydomain',
  'mail_smtppassword' => 'mysmtppwd',
  'app_install_overwrite' => 
  array (
    0 => 'occweb',
  ),
  'updater.secret' => 'myupdatersecret',
);

The output of your Apache/nginx/system log in /var/log/____:
I can’t access that folder in hosted env.

Interesting point:

  • there is normally a log file somewhere showing which files fail the integrity test, and it’s easy to fix those files by downloading from original ZIP archive.
    there is no such file on the system after the upgrade. I have no idea where is the integrity problem

  • for info, the end of updater log looks like this (boring, nothing of interest before)

2021-04-12T06:15:48+0000 o1KpAK0G4I [info] startStep("12")
2021-04-12T06:15:48+0000 o1KpAK0G4I [info] finalize()
2021-04-12T06:15:48+0000 o1KpAK0G4I [info] storage location: /home/ceaproje/nextclouddata/updater-ocjji4zeykh2/downloads/nextcloud/
2021-04-12T06:15:49+0000 o1KpAK0G4I [info] call opcache_reset()
2021-04-12T06:15:49+0000 o1KpAK0G4I [info] end of finalize()
2021-04-12T06:15:49+0000 o1KpAK0G4I [info] endStep("12")
2021-04-12T08:47:46+0000 KiDqGgF49i [info] request to updater
2021-04-12T08:47:46+0000 KiDqGgF49i [info] currentStep()
2021-04-12T08:47:46+0000 KiDqGgF49i [info] Step 12 is in state "end".
2021-04-12T08:47:46+0000 KiDqGgF49i [info] show HTML page
2021-04-12T08:47:46+0000 KiDqGgF49i [info] current version: 19.0.10 build time: 2021-04-08T13:20:10+00:00 8f42028088a1559d7f85ecd2015abd679f62733d
  • http://myclouddomain/status.php returns the following
    {"installed":true,"maintenance":true,"needsDbUpgrade":true,"version":"19.0.10.1","versionstring":"19.0.10","edition":"","productname":"Nextcloud","extendedSupport":false}
    It’s not clear why I need a DB upgrade. The updater completed all the DB steps without reporting any issue or changing anything.

  • finally, this is what the final “complete update” step returns:

Update to 19.0.10
An error occurred.

Detailed logs 
Preparing update
Set log level to debug
Turned on maintenance mode
Repair step: Repair MySQL collation
Repair info: All tables already have the correct collation -> nothing to do
Repair step: Repair SQLite autoincrement
Repair step: Copy data from accounts table when migrating from ownCloud
Repair step: Drop account terms table when migrating from ownCloud
Updating database schema
Updated database
Checking for update of app "bruteforcesettings" in appstore
Checked for update of app "bruteforcesettings" in appstore
Checking for update of app "cloud_federation_api" in appstore
Checked for update of app "cloud_federation_api" in appstore
Checking for update of app "dav" in appstore
Checked for update of app "dav" in appstore
Checking for update of app "federatedfilesharing" in appstore
Checked for update of app "federatedfilesharing" in appstore
Checking for update of app "files" in appstore
Checked for update of app "files" in appstore
Checking for update of app "files_rightclick" in appstore
Checked for update of app "files_rightclick" in appstore
Checking for update of app "files_sharing" in appstore
Checked for update of app "files_sharing" in appstore
Checking for update of app "files_trashbin" in appstore
Checked for update of app "files_trashbin" in appstore
Checking for update of app "files_versions" in appstore
Checked for update of app "files_versions" in appstore
Checking for update of app "groupfolders" in appstore
Checked for update of app "groupfolders" in appstore
Checking for update of app "impersonate" in appstore
Checked for update of app "impersonate" in appstore
Checking for update of app "logreader" in appstore
Checked for update of app "logreader" in appstore
Checking for update of app "lookup_server_connector" in appstore
Checked for update of app "lookup_server_connector" in appstore
Checking for update of app "metadata" in appstore
Checked for update of app "metadata" in appstore
Checking for update of app "oauth2" in appstore
Checked for update of app "oauth2" in appstore
Checking for update of app "password_policy" in appstore
Checked for update of app "password_policy" in appstore
Checking for update of app "privacy" in appstore
Checked for update of app "privacy" in appstore
Checking for update of app "provisioning_api" in appstore
Checked for update of app "provisioning_api" in appstore
Checking for update of app "ransomware_detection" in appstore
Checked for update of app "ransomware_detection" in appstore
Checking for update of app "ransomware_protection" in appstore
Checked for update of app "ransomware_protection" in appstore
Checking for update of app "settings" in appstore
Checked for update of app "settings" in appstore
Checking for update of app "theming" in appstore
Checked for update of app "theming" in appstore
Checking for update of app "twofactor_backupcodes" in appstore
Checked for update of app "twofactor_backupcodes" in appstore
Checking for update of app "updatenotification" in appstore
Checked for update of app "updatenotification" in appstore
Checking for update of app "viewer" in appstore
Checked for update of app "viewer" in appstore
Checking for update of app "workflowengine" in appstore
Checked for update of app "workflowengine" in appstore
Checking for update of app "occweb" in appstore
Checked for update of app "occweb" in appstore
Repair step: Repair MySQL collation
Repair info: All tables already have the correct collation -> nothing to do
Repair step: Repair mime types
Repair step: Clean tags and favorites
Repair info: 0 tags of deleted users have been removed.
Repair info: 0 tags for delete files have been removed.
Repair info: 0 tag entries for deleted tags have been removed.
Repair info: 0 tags with no entries have been removed.
Repair step: Repair invalid shares
Repair step: Move .step file of updater to backup location
Repair step: Fix potential broken mount points
Repair info: No mounts updated
Repair step: Add log rotate job
Repair step: Clear frontend caches
Repair info: Image cache cleared
Repair info: SCSS cache cleared
Repair info: JS cache cleared
Repair step: Clear every generated avatar on major updates
Repair step: Add preview background cleanup job
Repair step: Queue a one-time job to cleanup old backups of the updater
Repair step: Cleanup invalid photocache files for carddav
Repair step: Add background job to cleanup login flow v2 tokens
Repair step: Remove potentially over exposing share links
Repair info: No need to remove link shares.
Repair step: Clear access cache of projects
Repair step: Reset generated avatar flag
Repair step: Repair DAV shares
Repair info: Repaired DAV group shares
Starting code integrity check
An error occurred.

Please reload the page.

(and yes, all the lines about updating apps appear in duplicate, this is not a copy/paste error on my part)

Any help much appreciated.