by loki279 » Mon Dec 13, 2021 11:54 am
The upgrade can only be started as user "nextcloud" root is not allowed to use occ in my environment. This was changed some time ago introducing the user "nexcloud", before it was "http" if I remember corretly. Anyways, this also explains why the update via pacman is not able to upgrade the nextcloud installation because it runs as root.
More precisely the command has to be executed by the user who owns the config.php file (which is the user "nextcloud" in arch arm by default)
$this->bbcode_second_pass_code('', '
[alarm@alarmpi nextcloud]$ sudo php ./occ upgrade
[sudo] password for alarm:
Console has to be executed with the user that owns the file config/config.php
')
This is why the command has to be executed with sudo -u nextcloud. The fact that I was root before that is random, I could have run the command as user alarm the same way.