Update failed from 18.0.6 to 18.0.7

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


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


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 (eg, 18.0.2): 18.0.6
Operating system and version (eg, Ubuntu 20.04): OpenSuse Leap 15.2
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.43 (Linux/SUSE)
PHP version (eg, 7.1): 7.4.6 (cli)

The issue you are facing:

Update failed while using Web-Updater. Updated get stuck at point “Deleting old files”. Opening NC-website now shows “Update in process”.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Call website URL
  2. Trying to set maintenance mode to “off” and restart upgrade via OCC results “Nextcloud is already latest version”

The output of your Nextcloud log in Admin > Logging:

not accessable

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

$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => 'nextcloud.xxx.xxx',
  'datadirectory' => '/srv/nextcloud_data',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => 'https://nextcloud.xxx.xxx',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxx',
  'dbpassword' => 'xxx',
  'installed' => true,
  'has_rebuilt_cache' => true,
  'maintenance' => true,
  'theme' => '',
  'loglevel' => 2,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'xxx',
  'mail_domain' => 'xxx',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'xxx',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'xxx',
  'mail_smtppassword' => 'xxx',
  'updater.secret' => 'xxx',



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

no special entries for update time


sudo -u wwwrun php ./occ update:check


Nextcloud 18.0.7 is available. Get more information on how to update at https://docs.nextcloud.com/server/18/admin_manual/maintenance/upgrade.html.
1 update available

But when I now try to run

sudo -u wwwrun php updater.phar

nothing happens. No output on the command line.

How can I re-run the upgrade or revert the done steps to bring NC live again?


I think if you have shell-access (e.g. ssh) you can better use command line upgrade. But i do not know if you can solve your actual problem. But perhaps for your next update :wink:

part " Using the command line based updater"

sudo -u www-data php updater.phar (directory /var/www/html/nextcloud/updater)


Perhaps you in this step:

sudo -u www-data php occ upgrade