Updater issue: Check for expected files

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): 16.0.4
Operating system and version (eg, Ubuntu 20.04): CentOS Linux 7
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.6 (CentOS)
PHP version (eg, 7.1): 7.2.22

I am trying to update my Nextcloud installation via the automatic updater. The updater gives an error message

Check for expected files
The following extra files have been found:


This file appears to be a directory, which contains the user files and data, and it is listed as the data-directory in the config.php file. I did find very similar issues in the posts, but none allowed me to solve this issue. Can I just move the directory away, run the update and move the directory back?

In the index.php-file (shown below) there is no mention of the directory.

Thanks a lot for your time!!

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

The output of your config.php file in /path/to/nextcloud

$CONFIG = array (
  'instanceid' => 'xxxxxxxxx',
  'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxxxxxx',
  'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '212.xxxxxxxx',
    2 => 'www.xxxxx.de', ),
  'datadirectory' => '/home/default/html/.htefxjwncnszcr.data',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => 'http://xxxxxxxxxx',
  'dbname' => 'default_ivug1',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oxpc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'default_ivug1',
  'dbpassword' => 'xxxxxxxxxxxxxxxxxxx',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'maintenance' => false,
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'updater.secret' => '$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',

part of index.php

private function getExpectedElementsList() {
		$expected = [
			// Generic
			// Folders
			// Files

Move the directory to a location outside the Nextcloud document root directory and make sure that the access right are correctly set.