Updater app runs into timeout

I’m hitting this with the 14.0.2 → 15.0.4 update (running in an unRAID Docker container).

I have no idea how to edit connection timeouts but was able to use the following to make some progress - but not an actual upgrade. (Hopefully others seeing this won’t run into the"Delete old files" error I saw.)

I ended up needing to check ownership of updater.phar (ls -aFl /config/www/nextcloud/updater/updater.phar) which turned out to be user abc then using the following to run the update from the console.

sudo -u abc php /config/www/nextcloud/updater/updater.phar
sudo -u abc php /config/www/nextcloud/occ upgrade
sudo -u abc php /config/www/nextcloud/occ maintenance:mode --off

However, I did end up getting getting the following during the updater.phar step. Oddly, it appeared empty when I looked in the folder…

[ ] Delete old files ...PHP Warning:  rmdir(/config/www/nextcloud/updater/../lib/private/legacy): Directory not empty in phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php on line 843
[✘] Delete old files failed
Could not rmdir: /config/www/nextcloud/updater/../lib/private/legacy

Update failed. To resume or retry just execute the updater again.

I tried a re-run of the update and ended up getting a different error:

[✔] Verify integrity
[ ] Extracting ...PHP Warning:  require(/config/www/nextcloud/updater/../version.php): failed to open stream: No such file ordirectory in phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php on line 640
PHP Fatal error:  require(): Failed opening required '/config/www/nextcloud/updater/../version.php' (include_path='.:/usr/share/php7') in phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php on line 640

So because I have no other option, I decided to ran the updater yet-again and got the following - not really sure how to proceed from there. I like Nextcloud but I must admit - it shouldn’t be this hard…

Nextcloud Updater - version: v14.0.2RC2-1-g21ab216

Step 6 is currently in process. Please call this command later.

Edit: I have no idea if this is the ‘right’ thing to do, but I got out of my “Step 6 is currently in process” loop by deleting the /data/updater-octucxxxxxxx/.step file as described here:

Re-ran the updater, but got the same “failed to open stream” error and again stuck in “Step 6” loop. :frowning:

1 Like