Update-error 17.0.2 -> 17.0.3

  • Create backup

Could not copy “/var/www/html/nextcloud/apps/mail/vendor/christophwurst/kitinerary-bin/bin/kitinerary-extractor” to “/data/updater-ocvkfvpmkzeh/backups/nextcloud-17.0.2.1/apps/mail/vendor/christophwurst/kitinerary-bin/bin/kitinerary-extractor”. Source /var/www/html/nextcloud/apps/mail/vendor/christophwurst/kitinerary-bin/bin/kitinerary-extractor is not readable. Destination /data/updater-ocvkfvpmkzeh/backups/nextcloud-17.0.2.1/apps/mail/vendor/christophwurst/kitinerary-bin/bin/kitinerary-extractor is not writable

#ls -la /var/www/html/nextcloud/apps/mail/vendor/christophwurst/kitinerary-bin/bin/kitinerary-extractor
–wxr-x–T 1 www-data www-data 15697272 Jan 29 10:19 /var/www/html/nextcloud/apps/mail/vendor/christophwurst/kitinerary-bin/bin/kitinerary-extractor
ls -la /data/updater-ocvkfvpmkzeh/backups/nextcloud-17.0.2.1/apps/mail/vendor/christophwurst/kitinerary-bin/bin/
drwxr-x— 2 www-data www-data 4096 Feb 19 15:11 .
drwxr-x— 3 www-data www-data 4096 Feb 19 15:11 …

What procedure did you use to update? You have to do it as user www-data. What is the data directory in your config file?

I start the update via web.
Updater öffnen

Initializing

Current version is 17.0.2.
Update to Nextcloud 17.0.3 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-17.0.3.zip
Open changelog :arrow_upper_right:
[start update]

  • Check for expected files

  • Check for write permissions

  • Create backup

Could not copy “/var/www/html/nextcloud/apps/mail/vendor/christophwurst/kitinerary-bin/bin/kitinerary-extractor” to “/data/updater-ocvkfvpmkzeh/backups/nextcloud-17.0.2.1/apps/mail/vendor/christophwurst/kitinerary-bin/bin/kitinerary-extractor”. Source /var/www/html/nextcloud/apps/mail/vendor/christophwurst/kitinerary-bin/bin/kitinerary-extractor is not readable. Destination /data/updater-ocvkfvpmkzeh/backups/nextcloud-17.0.2.1/apps/mail/vendor/christophwurst/kitinerary-bin/bin/kitinerary-extractor is not writable

‘datadirectory’ => ‘/data’,
nextcloud run in an unprivileged lxc
permission for the mounted directory is
drwxrwx—
ups :frowning:

‘datadirectory’ => ‘/data’,

That is a absolute path. There will be no directory “/data”. Change to

/var/www/html/nextcloud/data

Even better it would be to move the data directory outside the nextcloud root directory. A suitable location would be /var/lib/nextcloud/data

I solved this problem with chmod u+r /var/www/html/nextcloud/apps/mail/vendor/christophwurst/kitinerary-bin/bin/kitinerary-extractor