NC 18.0.1 can't upgrade to 18.0.3

Hi,

It seems that my instance is stuck to 18.0.1 version.
It is working well, it is stuck for a couple weeks now.
So it is not a big deal, but I’m concern for latter updates.

The updater seems to do its job but that the upgrader never runs.
I’m on stable channel, I tried to go to beta channel without better results.
I tried the web updater and the command line as well.

Thanks,

Nicolas

Mandatory infos:
Nextcloud version : 18.0.1
Operating system and version : Debian Buster 10.3
Apache or nginx version: Apache 2.4.38-3+deb10u3
PHP version : 7.4.4

The issue you are facing:
The upgrade process seems stuck.

Is this the first time you’ve seen this error? Yes

Steps to replicate it:

  1. sudo -u www-data php7.4 /var/www/nextcloud/updater/updater.phar
  2. Continue update? [y/N] y
  3. Should the "occ upgrade" command be executed? [Y/n] Y
  4. Keep maintenance mode active? [y/N] N

update chek output

sudo -u www-data php7.4 /var/www/nextcloud/occ update:check
Nextcloud 18.0.3 is available. Get more information on how to update at https://docs.nextcloud.com/server/18/admin_manual/maintenance/upgrade.html.
1 update available

updater.phar output

sudo -u www-data php7.4 /var/www/nextcloud/updater/updater.phar
Nextcloud Updater - version: v16.0.3-3-ga0c2b25 dirty

Current version is 18.0.1.

Update to Nextcloud 18.0.3 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-18.0.3.zip
Open changelog ↗

Steps that will be executed:
[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done

Continue update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done

Update of code successful.

Should the "occ upgrade" command be executed? [Y/n] Y
Nextcloud is already latest version

Keep maintenance mode active? [y/N] N
Maintenance mode already disabled

Maintenance mode is disabled

The output of your Nextcloud log in Admin > Logging:

Error	PHP	"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? at /var/www/nextcloud/apps/workflowengine/lib/Helper/LogContext.php#55	
2020-04-03T21:25:03+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:08:34+0200
Error	PHP	Undefined index: changelogURL at /var/www/nextcloud/core/Controller/WhatsNewController.php#91	
2020-04-03T21:04:12+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:06+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:06+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:06+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:06+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:06+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:06+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:04:05+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:02:58+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:02:58+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:02:58+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:02:58+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:02:58+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:02:57+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:02:57+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:02:56+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:02:56+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:02:56+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:02:56+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:02:56+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:02:56+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:02:56+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:02:56+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:02:56+0200
Error	PHP	Trying to access array offset on value of type null at /var/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230	
2020-04-03T21:02:56+0200

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

<?php
$CONFIG = array (
  'instanceid' => 'ocexxxxxx',
  'passwordsalt' => 'xxxxxx',
  'secret' => 'xxxxx',
  'trusted_domains' => 
  array (
    0 => 'xxxx.xxx.yy',
  ),
  'datadirectory' => '/media/nextcloud-data',
  'overwrite.cli.url' => 'https://xxxx.xxx.yy',
  'dbtype' => 'pgsql',
  'version' => '18.0.1.3',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => 'xxxx',
  'installed' => true,
  'maintenance' => false,
  'loglevel' => 2,
  'theme' => '',
  'updater.release.channel' => 'stable',
  'app_install_overwrite' => 
  array (
    0 => 'calendar',
    1 => 'drawio',
  ),
  'updater.secret' => 'secret',
);

The output of your Apache/nginx/system log in /var/log/____:

cat /var/log/apache2/error.log 
[Fri Apr 03 00:00:08.534490 2020] [mpm_event:notice] [pid 21733:tid 140301113611392] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Fri Apr 03 00:00:08.534584 2020] [core:notice] [pid 21733:tid 140301113611392] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 03 16:19:34.450700 2020] [mpm_event:notice] [pid 21733:tid 140301113611392] AH00491: caught SIGTERM, shutting down
[Fri Apr 03 16:19:34.667216 2020] [mpm_event:notice] [pid 29494:tid 139925940139136] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Fri Apr 03 16:19:34.667338 2020] [core:notice] [pid 29494:tid 139925940139136] AH00094: Command line: '/usr/sbin/apache2'

Didn’t try to replicate but might worth looking at this, a https://github.com/nextcloud/server/issues/18996

If you can switch to php7.3 try that.

Hi Josh,

Thanks for you answer. Actually I forgot to mention that I had this behaviour with php 7.2.
I just upgraded PHP version last week-end.
So I’m not sure it is related to the PHP version

There seems to be a problem with some apps. Did you try disabling the workflow app?

Hi

I try to disablethe workflow app, even delete it.
Tried to remove a couple ones I don’t use and disable others.

Still stuck at 18.0.1

The Nextcloud log should have changed, as you disable apps. Try to find out where it happens.