Problem updating to 22.0.0

Hello,
I run nextcloud in a docker container and recently updated the container to nextcloud 22.0.0.
When running the upgrade procedure via occ or browser, it prints

Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Updating database schema
Updated database
Checking for update of app accessibility in appstore

At this point the upgrade process gets stuck and nothing happens.
Any ideas?

Thanks a lot!

@infomobi strange… have you more details in log of nextcloud ?

Logfile says: (doesn´t help me at all) :frowning:

{"reqId":"GmoBA8G4bniBKFZJjPFY","level":0,"time":"2021-07-22T08:30:01+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Update required, skipping cron","userAgent":"--","version":"21.0.3.1"}

{"reqId":"pOFD4Cm2MJ3yC9ANFEDl","level":1,"time":"2021-07-22T08:30:05+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::setDebugLogLevel: Set log level to debug","userAgent":"--","version":"21.0.3.1"}

{"reqId":"pOFD4Cm2MJ3yC9ANFEDl","level":0,"time":"2021-07-22T08:30:05+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"starting upgrade from 21.0.3.1 to 22.0.0.11","userAgent":"--","version":"21.0.3.1"}

{"reqId":"pOFD4Cm2MJ3yC9ANFEDl","level":1,"time":"2021-07-22T08:30:05+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"21.0.3.1"}

{"reqId":"pOFD4Cm2MJ3yC9ANFEDl","level":1,"time":"2021-07-22T08:30:05+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Repair MySQL collation","userAgent":"--","version":"21.0.3.1"}

{"reqId":"pOFD4Cm2MJ3yC9ANFEDl","level":1,"time":"2021-07-22T08:30:05+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::info: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"21.0.3.1"}

{"reqId":"pOFD4Cm2MJ3yC9ANFEDl","level":1,"time":"2021-07-22T08:30:05+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::info: Repair info: All tables already have the correct collation -> nothing to do","userAgent":"--","version":"21.0.3.1"}

{"reqId":"pOFD4Cm2MJ3yC9ANFEDl","level":1,"time":"2021-07-22T08:30:05+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"21.0.3.1"}

{"reqId":"pOFD4Cm2MJ3yC9ANFEDl","level":1,"time":"2021-07-22T08:30:05+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Repair SQLite autoincrement","userAgent":"--","version":"21.0.3.1"}

{"reqId":"pOFD4Cm2MJ3yC9ANFEDl","level":1,"time":"2021-07-22T08:30:05+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"21.0.3.1"}

{"reqId":"pOFD4Cm2MJ3yC9ANFEDl","level":1,"time":"2021-07-22T08:30:05+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Copy data from accounts table when migrating from ownCloud","userAgent":"--","version":"21.0.3.1"}

{"reqId":"pOFD4Cm2MJ3yC9ANFEDl","level":1,"time":"2021-07-22T08:30:06+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"21.0.3.1"}

{"reqId":"pOFD4Cm2MJ3yC9ANFEDl","level":1,"time":"2021-07-22T08:30:06+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Drop account terms table when migrating from ownCloud","userAgent":"--","version":"21.0.3.1"}

{"reqId":"pOFD4Cm2MJ3yC9ANFEDl","level":1,"time":"2021-07-22T08:30:06+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::dbUpgradeBefore: Updating database schema","userAgent":"--","version":"21.0.3.1"}

{"reqId":"pOFD4Cm2MJ3yC9ANFEDl","level":1,"time":"2021-07-22T08:30:06+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::dbUpgrade: Updated database","userAgent":"--","version":"21.0.3.1"}

{"reqId":"pOFD4Cm2MJ3yC9ANFEDl","level":0,"time":"2021-07-22T08:30:06+00:00","remoteAddr":"","user":"--","app":"encryption","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.3.1"}

{"reqId":"pOFD4Cm2MJ3yC9ANFEDl","level":0,"time":"2021-07-22T08:30:06+00:00","remoteAddr":"","user":"--","app":"files_sharing","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.3.1"}

{"reqId":"pOFD4Cm2MJ3yC9ANFEDl","level":1,"time":"2021-07-22T08:30:06+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"accessibility\" in appstore","userAgent":"--","version":"21.0.3.1"}

{"reqId":"fkejDF9cdIrn6iBM1IZJ","level":0,"time":"2021-07-22T08:35:02+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Update required, skipping cron","userAgent":"--","version":"21.0.3.1"}

If I disable the app accessibility, it stucks with the next app :frowning:

@infomobi what you have sent me are not error messages but messages indicating the steps in progress of the occ maintenance:repair command.

do you have messages of level 2 or higher ?

What I sent you is the only output in nextcloud.log, when I execute
php occ upgrade

What can I do?

Thank you for your help!

@infomobi ok, can you send me your config.php ( /../nextcloud/config/config.php, hide private information like pasword, instanceid , passwordsalt, secret , db, …) ?

Here is my config.php:

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'overwriteprotocol' => 'https',
  'instanceid' => 'HIDDEN',
  'passwordsalt' => 'HIDDEN',
  'secret' => 'HIDDEN',
  'trusted_domains' => 
  array (
    0 => 'HIDDEN',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '21.0.3.1',
  'overwrite.cli.url' => 'HIDDEN',
  'dbname' => 'nextcloud',
  'dbhost' => 'mariadb',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'HIDDEN',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'HIDDEN',
  'mail_from_address' => 'noreply',
  'mail_domain' => 'HIDDEN',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpname' => 'HIDDEN',
  'mail_smtppassword' => 'HIDDEN',
  'loglevel' => 0,
  'maintenance' => true,
  'mail_smtpport' => '587',
  'default_phone_region' => 'DE',
  'theme' => '',
);

@infomobi all is good in your config.php, really strange …

try this and then try again to upgrade :
sudo -u www-data php /var/www/nextcloud/occ update:check

Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade

                                                            
  There are no commands defined in the "update" namespace.  
                                                            
  Did you mean this?                                        
      maintenance:update

@infomobi you don’t have the same comand but no problem, I can’t help you right now, I don’t know why your upgrade is stuck when checking for update for apps.

OK. Thanks a lot anyhow.

One more question: Is it possible to skip update checks, so that the upgrade process can complete and my nextcloud starts working again?

@infomobi I’m not sure it’s possible…

Found the solution myself. It seems, there is a bug in 22.0.0.
The solution to this issue solved my problem:
https://github.com/nextcloud/server/issues/27870

1 Like