I just tried upgrading an existing nextCloud 10.0.1 instance to the latest version 10.0.2 using the new updater.
Unfortunately, the Check for write permissions step gives me the error The following places can not be written to: followed by a very long list of files.
All those files are within the directory /var/www/web/nextcloud/updater/ which right now only holds 1 file (index.php).
Here’s a screenshot of the currently set permissions which look correct to me:
I believe the updater overwrites almost everything in the NC root as the www-data user, yet basically all of that is owned by root with no R/W for the www-data group.
What are some of the files it suggests can’t be written out of interest?
Check for write permissions
The following places can not be written to:
/var/www/nextcloud/html/updater/../.
/var/www/nextcloud/html/updater/../.htaccess
The only file inside …/updater is index.php
The owner of the whole structure is www-data:www-data rw-r-r
I had. almost, the same problem and checked my history, it was fixed with chown -R www-data:www-data nextcloud_web_dir (-R) in case something into there was root:root
this also worked for me - many thanks. any reason why this is happening and needed? Will it be needed again for future upgrades? I don’t recall doing anything in particular on my install to change permissions of files.
I had exactly the same problem when I went to update from 11.0.1 to 11.0.2 ( apache2 ).
Me too solved the problem of permissions, executing : sudo shown -R www-data:www-data /var/www/Nextcloud_Dir
but it is the right way ?
Hi, I know this is old post, but it was still on first google page in my lookup for v12->v13 update, so I decided to give a hint for people that couldn’t make Updater going with chown and chmod commands.
I had Nextcloud installation on Fedora server in folder outside of primary Apache folder, so any permission I used, even 777 apache:apache on everything didn’t work, because SELinux was blocking writing. If this is your case, use:
Thank you for guiding but It still had same problem when I update from 17.02 to 18.01 (I had use: # chown -R apache:apache /var/www/html/nextcloud)
Please help!
Initializing
Current version is 17.0.2.
Update to Nextcloud 18.0.1 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-18.0.1.zip Open changelog
Retry update
Update 2: That script does not fix an issue, it adds another one. This issue is an SELinux issue (I’m on Fedora 32). I’ve played around with the SELinux settings for a few hours but they’re just a royal pain in the rear end. Disable SELInux, run the web updater, and then re-enable it.