Updater app runs into timeout

update_problems

#1

I tried to update via updater app (like I did several times before). This time I get in the steps backup and extracting this error: Parsing response failed. <html> <head><title>504 Gateway Time-out</title></head> <body bgcolor="white"> <center><h1>504 Gateway Time-out</h1></center> <hr><center>nginx</center> </body> </html> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page ----->

During the backup step it also said that I should reload the page later, which I did and then ran into “Nextcloud is in maintenance mode” message. I had to disable maintenance mode via command line and could then continue the update where I left. And at the extracting stage it timed out again. And then again on moving files step.

The update process itself succeeded thanks to the updater app that finished the steps in background and let me continue but it is annoying that I had to disable maintenance mode and restart every step. This never happened before and the last times some steps ran for minutes.

I haven’t changed anything on Apache side but can it be that this is a webserver issue?.

Nextcloud version (eg, 10.0.2):
Operating system: Synology
Apache 2.2
PHP version: 5.6


#2

I’ve the same issue.
Nextcloud 12.0.3 -> v.12.0.4
OS Debian Jessie
NGinx 1.12.2
PHP version 7.0.24


#3

You can either increase the time spans for timeouts, on larger systems it is better to start the upgrade from command line where normally no timeouts apply. E.g. for Debian:

sudo -u www-data php /var/www/nextcloud/updater/updater.phar

After that you have perhaps to start the occ upgrade command as well and turn off maintenance mode:

  sudo -u www-data php /var/www/nextcloud/occ upgrade
  sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off