How to restore backup from Web update? (stuck in: Update in process.)

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via 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, 20.0.5):
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): 2.4
PHP version (eg, 7.4): 7.4

The issue you are facing:
I did an upgrade via the web gui, which used to always work (I went through idk 5 major versions with this?). It failed at one step (I can’t recall which, also didn’t copy the error, it was something with a 403). I reloaded, assuming I could just rerun it, and now the whole page shows “Update in process.” at every URL.

It did a backup at the beginning of the upgrade process. How do I restore this backup? Where do I find it?

Is this the first time you’ve seen this error? Y:

Steps to replicate it:

  1. upgrade via web gui (I can’t recall which minor version to which minor version, and no way to find out in retrospect)

The output of your Nextcloud log in Admin > Logging:

Can't access anymore, the only thing I get back on the whole page is: Update in process.

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

$CONFIG = array (
  'instanceid' => '(hidden)',
  'passwordsalt' => '(hidden)',
  'secret' => '(hidden)',
  'trusted_domains' =>
  array (
    0 => '(hidden)',
    1 => '(hidden)',
    2 => 'localhost',
    3 => '(hidden)',
    4 => '(hidden)',
    5 => '',
  'datadirectory' => '/home/df/nextcloud_data/',
  'overwrite.cli.url' => '(hidden)',
  'htaccess.RewriteBase' => '/',
  'dbtype' => 'mysql',
  'version' => '',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '(hidden)',
  'dbpassword' => '(hidden)',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'appstoreenabled' => true,
  'appstoreurl' => '',
  'mail_from_address' => '(hidden)',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_domain' => '(hidden)',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '(hidden)',
  'mail_smtpport' => '465',
  'mail_smtpname' => '(hidden)',
  'mail_smtppassword' => '(hidden)',
  'enable_previews' => 'false',
  'redis.sock' => '/var/run/redis/redis-server.sock',
  'onlyoffice' =>
  array (
    'verify_peer_off' => true,
  'app_install_overwrite' =>
  array (
    0 => 'occweb',
    1 => 'deck',
    2 => 'cospend',
  '' => 'stable',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'updater.secret' => '(hidden)',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/home/df/apache/nextcloud/apps',
      'url' => '/apps',
      'writable' => true,

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

find and locate can't find that file, it's not in /var/www/ – where could it be?

The backup files are in the NC data folder.

You can just remove the .step file there to continue the updater.

I found this: /home/df/nextcloud_data/updater-oci0ljg73ipm/backups/nextcloud- but the backup restore guide says one also needs the database, where is this backed up?

I’d love to remove the .step file and just let the updater continue, but there is no .step file in the NC data folder :frowning: Is there any way to restart/continue the updater? I tried with occ but this fails because it expects a new version somewhere.

Ah the problem is that locate is unintuitive (does not find files in encrypted drives by default). Alright, I removed the .step file but that didn’t change anything.

Found the solution here:

sudo -u www-data php /var/www/nextcloud/updater/updater.phar