Nextcloud version (eg, 20.0.5):
Operating system and version (eg, Ubuntu 20.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.4):
The issue you are facing:
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Open administration settings
- click “Open updater”
- click “Start update”
The output of your Nextcloud log in Admin > Logging:
no entry in log file related to the issue
The output of your config.php file in
/path/to/nextcloud (make sure you remove any identifiable information!):
'instanceid' => REDACTED, 'passwordsalt' => REDACTED, 'secret' => REDACTED, 'trusted_domains' => array ( 0 => local ip adress, 1 => my personal domain, ), 'datadirectory' => '/path/to/nextcloud/nas_data', 'dbtype' => 'mysql', 'version' => '220.127.116.11', 'overwrite.cli.url' => 'http://' + local ip adress, 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => REDACTED, 'dbpassword' => REDACTED, 'installed' => true, 'default_language' => 'en', 'default_phone_region' => REDACTED, 'memcache.local' => '\\OC\\Memcache\\APCu', 'mail_smtpmode' => 'smtp', 'mail_smtpsecure' => 'tls', 'mail_sendmailmode' => 'smtp', 'mail_from_address' => 'nextcloud', 'mail_domain' => REDACTED, 'mail_smtpauthtype' => 'LOGIN', 'mail_smtpauth' => 1, 'mail_smtphost' => REDACTED, 'mail_smtpport' => '587', 'mail_smtpname' => REDACTED, 'mail_smtppassword' => REDACTED, 'twofactor_enforced' => 'true', 'twofactor_enforced_groups' => array ( ), 'twofactor_enforced_excluded_groups' => array ( 0 => 'Users', 1 => 'admin', ), 'updater.secret' => REDACTED,
The output of your Apache/nginx/system log in
Nothing in these logs relevant to the issue
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.
nextcloud.log not found
I have run into an issue when trying to update my Nextcloud server.
When the updater reached the step “Check for expected files” it lists “nas_data” as an unexpected file.
As can be seen in the config file this is the directory used as “datadirectory”. This choice was made during config because I wanted to use a directory on my nas that is mounted to “path/to/nextcloud/nas_data”.
I looked into changing the name on the mounted directory to “data” and changing the path in the config.php-file, but this looks like a bad alternative for a few reasons. One of them being that each file in the db carries its path including the path to “nas_data”.
Is there another way of resolving this?