Update gets stuck at Delete old files

Nextcloud version 16.0.4
Operating system and version Ubuntu 18.04
Apache or nginx version Apache 2.4.29
PHP version 7.2.19

The issue you are facing:
When I update my Nextcloud with the updater it gets stuck at the “Delete old files” check"

Is this the first time you’ve seen this error? No, this is the second time this has happened.

Steps to replicate it:

  1. Go to the updater
  2. Click Update
  3. Problem happens

<?php
$CONFIG = array (
  'instanceid' => '***',
  'passwordsalt' => '***',
  'secret' => '***',
  'trusted_domains' => 
  array (
    0 => 'domain.example,
  ),
  'datadirectory' => '/var/www/nextcloud/nextcloud',
  'dbtype' => 'mysql',
  'version' => '16.0.3.0',
  'overwrite.cli.url' => 'https://domain.example',
  'dbname' => 'next',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'cloud',
  'dbpassword' => '******',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'maintenance' => false,
);

Solved the problem by giving permission to www-data to the … directory.

1 Like