[SOLVED] Cannot update to 11.0.2

Hello Nextcloud,

I have a problem that seems very simple, and the solutions I’ve found on this and other forums have also been simple, however, these don’t work for me unfortunately. The problem is that when I try to update with the web-updater to Nextcloud 11.0.2 from Nextcloud 11.0.1 I get the following:

The following places can not be written to:

/usr/share/nginx/html/nextcloud/updater/../occ
/usr/share/nginx/html/nextcloud/updater/../console.php
/usr/share/nginx/html/nextcloud/updater/../db_structure.xml
/usr/share/nginx/html/nextcloud/updater/../index.html
/usr/share/nginx/html/nextcloud/updater/../3rdparty/nikic/php-parser/grammar/README.md
[...]

My http-user is nginx, which is why I have donet the following before updating:

chown nginx:nginx -R /usr/share/nginx/html/nextcloud
find nextcloud/ -type f -exec chmod 640 {} \;
find nextcloud/ -type d -exec chmod 750 {} \;

I noticed that the problems with permissions comes from the update folder, so I wonder whether it would help to run
rm -rf /usr/share/nginx/html/nextcloud/updater
and then update manually?

I don’t know what else to try, therefore I would greatly appreciate any help on this issue.

I solved this by myself.

Doing a manual upgrade solved the problem, and also showed why there was a problem with the web-updater, namely that when one use SElinux one has to issue the following:

setenforce 0
semanage fcontext -a -t httpd_sys_rw_content_t 'nextcloud/data'
restorecon 'nextcloud/data'
semanage fcontext -a -t httpd_sys_rw_content_t 'nextcloud/config'
restorecon 'nextcloud/config'
semanage fcontext -a -t httpd_sys_rw_content_t 'nextcloud/apps'
restorecon 'nextcloud/apps'

I hope this can help others having the same problem :slight_smile: