Stuck update at step 6 from 20.0.8 -> 20.0.9

Running Nextcloud in a docker container with a mariadb container as the back-end for Nextcloud.

Tried updating with the web based updater which failed at step 6. Deleted the .step file in the updater folder and instead tried the cli in the container to do the update which many people recommend instead of the web based updater. Still stuck at step 6 and this time I got an error message I cannot understand or do anything with at the moment.
I hope someone here can help me so I can fix the problem and hopefully end up with a successful update and a working Nextcloud instance :slight_smile:

This is the command and output from the cli based updater:

Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4

Current version is 20.0.8.

Update to Nextcloud 20.0.9 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-20.0.9.zip
Open changelog :arrow_upper_right:

Steps that will be executed:
[ ] Check for expected files
[ ] Check for write permissions
[ ] Create backup
[ ] Downloading
[ ] Verify integrity
[ ] Extracting
[ ] Enable maintenance mode
[ ] Replace entry points
[ ] Delete old files
[ ] Move new files in place
[ ] Done

Start update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[:heavy_check_mark:] Check for expected files
[:heavy_check_mark:] Check for write permissions
[:heavy_check_mark:] Create backup
[:heavy_check_mark:] Downloading
[:heavy_check_mark:] Verify integrity
[ ] Extracting …PHP Warning: require(/config/www/nextcloud/updater/…/version.php): failed to open stream: No such file or directory in phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php on line 658
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 658
root@eb70432b34c5:/# sudo -u abc php /config/www/nextcloud/updater/updater.phar

hm … your path is looking some kind of “strange” …

when i have a look to my updater path (just below nextcloud) it looks like that →
updater]# ls -alt
total 224
drwxr-xr-x 14 apache apache 29 Apr 15 11:47 …
-rw-r–r-- 1 apache apache 600659 Apr 14 20:02 updater.phar
-rw-r–r-- 1 apache apache 66309 Apr 14 20:02 index.php
drwxr-xr-x 2 apache apache 4 Feb 8 2019 .

check your path … and did you run the update command on this path →

  1. Instead of clicking that button you can now invoke the command line based updater by going into the updater/ directory in the Nextcloud directory and executing the updater.phar as the web server user. (i.e. sudo -u www-data php /var/www/nextcloud/updater/updater.phar).

my path is the following →

…/nextcloud/lib/private/Updater.php …
but i think you’re missing the updater Directory (below nextcloud)

This is the path and command I am using, I am using Linuxserver’s docker image

sudo -u abc php /config/www/nextcloud/updater/updater.pha

In the /var/www/ path I have no nextcloud folder

Same issue when I use Linuxserver’s recommended update command which is:

docker exec -it nextcloud updater.phar

https://hub.docker.com/r/linuxserver/nextcloud/