Update stuck at each step, only reload to continue

Nextcloud version (eg, 20.0.5): form 24.0 to 26.4
Operating system and version (eg, Ubuntu 20.04): Rocky linux 9.2
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.53
PHP version (eg, 7.4): php-8.0.27

The issue you are facing:
While update, the page is always stuck at each step, waiting for unlimited time, and not continue to the next step.

However, we can see the status of the step is started and end at seconds from the .step file inside the update-**** folder.
After the .step file say the step is end, One can reload the update webpage, and then cuntinue to the next update step. Just by watch .step file and reload webpage, we can update the NC.

Is this the first time you’ve seen this error? (Y/N): N
This issue has been happening more than 10 months ago. The NC is updated several times from 24 to 26, while this issue always happen.

Steps to replicate it:

Canot replicate this issue in another Rocky linux 9 system by backup and restore the same NC.

The output of your Nextcloud log in Admin > Logging:

{"reqId":"ZLneFuQ15ynY41JDHzEIogAAFRM","level":3,"time":"2023-07-21T01:23:34+00:00","remoteAddr":"****","user":"--","app":"PHP","method":"PUT","url":"/ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json","message":"Cannot modify header information - headers already sent by (output started at /var/www/html/nextcloud/lib/private/legacy/OC_API.php:76) at /var/www/html/nextcloud/lib/private/legacy/OC_API.php#55","userAgent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.5359.125 Safari/537.36","version":"26.0.3.2","data":{"app":"PHP"},"id":"64b9dea85fc92"}
{"reqId":"ZLneFuQ15ynY41JDHzEIogAAFRM","level":3,"time":"2023-07-21T01:23:34+00:00","remoteAddr":"****","user":"--","app":"PHP","method":"PUT","url":"/ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json","message":"Cannot modify header information - headers already sent by (output started at /var/www/html/nextcloud/lib/private/legacy/OC_API.php:76) at /var/www/html/nextcloud/lib/private/legacy/OC_API.php#114","userAgent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.5359.125 Safari/537.36","version":"26.0.3.2","data":{"app":"PHP"},"id":"64b9dea85fc7f"}
{"reqId":"ZLneGHQfZZkthzdDyxlLYwAATg0","level":3,"time":"2023-07-21T01:23:36+00:00","remoteAddr":"****","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/files/api/v1/stats","message":"Cannot modify header information - headers already sent by (output started at /var/www/html/nextcloud/lib/private/Template/Base.php:136) at /var/www/html/nextcloud/lib/private/AppFramework/Http/Output.php#70","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36","version":"26.0.3.2","data":{"app":"PHP"},"id":"64b9dea85bd93"}
1 Like

I am using the occ command for updating. The GUI updater is good, especially considering it is a webbased application, basically live updating the system it is running under. However I have had zero issues and odd behaviors with the occ update command. Add --no-interactions and it runs without asking you anything.

occ command woks fine for me

cd <nextcloud_path>  # such as:   cd /var/www/html/nextcloud
# command in CentOS
sudo -u apache php updater/updater.phar
# command in Ubuntu
sudo -u www-data php updater/updater.phar

# to check the command options by:
sudo -u apache php updater/updater.phar --help