Nextcloud version (eg, 20.0.5): 22.0.0
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.41
PHP version (eg, 7.4): 7.4.3
The issue you are facing:
When running the updater, either using WebGUI or commandline, I get stuck at “Create backup”.
My datadirectory is located on a external fileserver and is mounted to the the Nextcloud server at /mnt/nextcloud . www-data:www-data is the owner of that folder and I have no issues reading/wrighting files to it from within nextcloud.
The share is mounted to that folder in fstab with
uid=www-data
gid=www-data
file_mode=0770
dir_mode=0770
When running the updater it gets stuck at Creating Backup with the following errormessage:
Could not copy "/var/www/nextcloud/config/config.php.backup" to "/mnt/nextcloud/data/updater-oc8yxc9l94g1/backups/nextcloud-22.0.0.11-1635594002/config/config.php.backup".
Source /var/www/nextcloud/config/config.php.backup is not readable.
Destination /mnt/nextcloud/data/updater-oc8yxc9l94g1/backups/nextcloud-22.0.0.11-1635594002/config/config.php.backup is not writable
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Setup Nextcloud with the datadirectory located in a folder mounted as SMB storage
- Run updater in commandline or web-gui
The output of your Nextcloud log in Admin > Logging:
No log entries was created as a result of this.
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'passwordsalt' => '<REDACTED>',
'secret' => '<REDACTED>',
'trusted_domains' =>
array (
0 => '<REDACTED>',
1 => '<REDACTED>',
2 => '<REDACTED>',
),
'trusted_proxies' =>
array (
0 => '<REDACTED>',
1 => '<REDACTED>',
),
'datadirectory' => '/mnt/nextcloud/data',
'dbtype' => 'mysql',
'version' => '22.0.0.11',
'overwrite.cli.url' => '<REDACTED>',
'skeletondirectory' => '',
'defaultapp' => 'files',
'default_phone_region' => '<REDACTED>',
'overwritehost' => '<REDACTED>',
'overwriteprotocol' => 'https',
'dbname' => '<REDACTED>',
'dbhost' => '<REDACTED>',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '<REDACTED>',
'dbpassword' => '<REDACTED>',
'installed' => true,
'mail_from_address' => '<REDACTED>',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => '<REDACTED>',
'mail_smtpauthtype' => 'PLAIN',
'mail_smtpauth' => 1,
'mail_smtphost' => '<REDACTED>',
'mail_smtpport' => '<REDACTED>',
'mail_smtpname' => '<REDACTED>',
'mail_smtppassword' => '<REDACTED>',
'mail_smtpsecure' => 'ssl',
'instanceid' => '<REDACTED>',
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'maintenance' => false,
'updater.secret' => '<REDACTED>',
);
The output of your Apache/nginx/system log in /var/log/____
: