Closed supermamie closed 7 months ago
27.1.2\~ynh1 -> 27.1.2\~ynh2
2023-10-12 10:59:55,527: DEBUG - + chown -R nextcloud:www-data /var/www/nextcloud
2023-10-12 10:59:57,097: DEBUG - + chown -R nextcloud: /home/yunohost.app/nextcloud/data
2023-10-12 11:23:00,996: DEBUG - + find /var/www/nextcloud/ -type f -print0
Only done once. (Then other actions made the upgrade still long, but those are not chown : )
2023-10-12 10:59:55,527: DEBUG - + chown -R nextcloud:www-data /var/www/nextcloud
2023-10-12 10:59:57,097: DEBUG - + chown -R nextcloud: /home/yunohost.app/nextcloud/data
2023-10-12 11:23:00,996: DEBUG - + find /var/www/nextcloud/ -type f -print0
2023-10-12 11:23:00,998: DEBUG - + xargs -r0 chmod 0644
2023-10-12 11:23:03,903: DEBUG - + find /var/www/nextcloud/ -type d -print0
2023-10-12 11:23:03,904: DEBUG - + xargs -r0 chmod 0755
2023-10-12 11:23:04,428: DEBUG - + xargs -r0 chmod 0640
2023-10-12 11:23:04,430: DEBUG - + find /home/yunohost.app/nextcloud/data/ -type f -print0
2023-10-12 11:44:48,200: DEBUG - + xargs -r0 chmod 0750
2023-10-12 11:44:48,206: DEBUG - + find /home/yunohost.app/nextcloud/data/ -type d -print0
2023-10-12 11:55:40,965: DEBUG - + chmod 640 /var/www/nextcloud/config/config.php
Describe the bug
chown -R nextcloud: /var/www/nextcloud /home/yunohost.app/nextcloud/data
is done twice on upgradeContext
Steps to reproduce
I launched the upgrade from the web interface, and as it was quite long, I went to tail the logs
tail -f /var/log/yunohost/yunohost-api.log
Here are some interesting parts :
As you can see, it took 20min for the chown. This is not a problem at all, I have a lot of files, it may be usefull for some reason. But, it is done again later in the process, and takes nearly 20min again :
Maybe this second time is not needed (but maybe it is, I just think it is strange to do it twice)
And while I am writting this ticket, there is another chown running, but this is a different command this time (instead of doing it in one command, it is done in two commands)
Here I had a timeout on the web interface
Expected behavior
Maybe do the chown only once ?
Logs
https://paste.yunohost.org/mogejaxone