Update problem: The following extra files have been found

Nextcloud version : 20.0.10.
PHP version : 7.4

Hello, I have a problem when upgrading my Nextcloud hub (hosting by Hostinger)

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

Steps to replicate it:

  1. Go to /updater
  2. Click on Start Update
  3. Get this error :
Check for expected files
The following extra files have been found:

    .xxxxxxxx.data

The output of your Nextcloud log in Admin > Logging:

OCP\AppFramework\QueryException: Could not resolve OCA\Files_Versions\Versions\IVersionManager! Class can not be instantiated

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

<?php
$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxxx',
  'secret' => 'xxxxxxxx',
  'trusted_domains' => 
  array (
    0 => 'nextcloud.xxxx.dev',
  ),
  'datadirectory' => '/home/u433055265/domains/xxxx.dev/public_html/nextcloud/.xxxxx.data',
  'dbtype' => 'mysql',
  'version' => '20.0.10.1',
  'overwrite.cli.url' => 'https://nextcloud.xxxx.dev',
  'dbname' => 'xxxxx',
  'dbhost' => '127.0.0.1',
  'dbport' => '',
  'dbtableprefix' => 'em2s_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxxxx',
  'dbpassword' => 'xxxx',
  'installed' => true,
  'updater.secret' => 'xxxxxx',
);

The problem is that you have renamed your datadirectory to something other than data (which is fine in general) but then left it in the installation folder for the Nextcloud Server application (which is not fine).

You have a couple options:

Option One (Move your datadirectory)

This is the best one long-term and will never have to be done again, but it’ll require the most upfront work.

You could move your .xxxxx.data directory, but that will require a bit more work since your particular problem means you can’t leave a symbolic link in place (so you’ll need to follow the first approach which entails adjusting your database oc_storage table too):

https://docs.nextcloud.com/server/latest/admin_manual/issues/general_troubleshooting.html#troubleshooting-data-directory

Option Two (Temporarily move your datadirectory)

This will require less work, but will also need to be done every time you update/upgrade. It also still needs to be performed carefully to make sure.

  • Put your NC Server into maintenance mode: occ maintenance mode --on
  • Temporarily rename the .xxxxx.data to folder simply data
  • Temporarily change your datadirectory value in your config.php to match the rename by changing it also simply to data
  • Run the Updater (from the command-line) and say “no” when it offers to turn off maintenance mode
  • Rename your data folder back to .xxxxx.data
  • Restore your prior datadirectory value in your config.php (to point back at your restored-in-name .xxxxx.data folder)
  • Turn off maintenance mode: occ maintenance mode --off
1 Like