I try to update with the installer via Settings.
However the update stops with following message:
Check for write permissions
The following places can not be written to:
/srv/www/htdocs/nextcloud/updater/../.user.ini
/srv/www/htdocs/nextcloud/updater/../.htaccess
/srv/www/htdocs/nextcloud/updater/../AUTHORS
/srv/www/htdocs/nextcloud/updater/../COPYING
/srv/www/htdocs/nextcloud/updater/../console.php
/srv/www/htdocs/nextcloud/updater/../cron.php
/srv/www/htdocs/nextcloud/updater/../index.html
/srv/www/htdocs/nextcloud/updater/../index.php
/srv/www/htdocs/nextcloud/updater/../public.php
/srv/www/htdocs/nextcloud/updater/../remote.php
/srv/www/htdocs/nextcloud/updater/../robots.txt
/srv/www/htdocs/nextcloud/updater/../status.php
/srv/www/htdocs/nextcloud/updater/../version.php
So I changed the permission of the folder update via chmod 777, so everybody should have access to this folder. Unfortunately this does not help.
However the folder is empty. So I do not know, what to do.
The same error occured when trying to update to 20.0.8
Although the last sub directory of the path is “updater”, the following two dots (..) are indicating that the process wants to write data to the directory above “updater”, which is the “nextcloud” directory
for me … i happend from time to time, that after a major operating system upgrade … the OS did change the owner my data-directory … that’s why … i created a regular check script, which will check (& correct if wrong), owner & permission:
thanks for your support. @j-ed, yes that was the solution; I misunderstood the “/…/”.
Now I am happy, that the system is running again.
I changed the permissions for the files listed. The update-process worked, until it should “replace entry points”. At that point it was obviously a comparable problem with the permissions. Nextcloud stopped with the message “update in progress”
So I saved the permissions with
getfacl
in order to reset them at the end of the update process.
Then I changed all permission to 777 and finished the update.
During the update process the permissions are now re-set automatically, so I do not have to changed them again.
Now the system is running and the permissions seem to be set in the correct way (without any action by myself…)