I know this is an old topic, but I couldn’t find any solution when researching it.
However, I have figured out the issue and can confirm the following steps to fix it. Its mainly related to when using OwnCloud in a shared hosting environment, and using multi-php installs, such as within Plesk etc.
Fix :
edit updater/src/Utils/OccRunner.php
Line 158, starting with $cmd =
end of file set the php command to use the PHP location of your install. EG using php7.4 in Plesk it becomes:
$cmd = “/opt/plesk/php/7.4/bin/php $occPath --no-warnings $cmdLine”;
Next in the following files, replace any reference to localhost with the FQDN of your install
EG: owncloud.mydomain.com
updater/src/Console/Application.php ( line 140)
updater/src/Http/Request.php ( line 77 )
updater/src/Utils/OccRunner.php ( line 128 )
Should be able to fix this easily in a future update.
In the meantime , I just do the 4 changes before I update each time.
Hope this helps someone