Upgrade stopped at "Step 6 is currently in process. Please reload this page later."

Hi

OS: Debian
Version: 24.0.5

I was upgrading in the Web UI from 24.0.5 to 24.0.6 when it stopped. Web page/updater on my server displays “Step 6 is currently in process. Please reload this page later.” I use a Docker, but the web based updates had been working fine before. So I switched over to the CLI in the docker console, I get the following:

root@8f2c1d553487:/#sudo -u abc php --define apc.enable_cli=1 /config/www/nextcloud/updater/updater.phar
Nextcloud Updater - version: v24.0.0beta3-1-g67bf13b dirty

Step 6 is currently in process. Please call this command later.
root@8f2c1d553487:/#sudo -u abc php --define apc.enable_cli=1 /config/www/nextcloud/updater/updater.phar
Nextcloud Updater - version: v24.0.0beta3-1-g67bf13b dirty

Current version is 24.0.5.

Update to Nextcloud 24.0.6 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-24.0.6.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 676
PHP Fatal error: Uncaught Error: Failed opening required ‘/config/www/nextcloud/updater/…/version.php’ (include_path=‘.:/usr/share/php8’) in phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php:676
Stack trace:
#0 phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php(713): NC\Updater\Updater->getVersionByVersionFile()
#1 phar:///config/www/nextcloud/updater/updater.phar/lib/UpdateCommand.php(372): NC\Updater\Updater->extractDownload()
#2 phar:///config/www/nextcloud/updater/updater.phar/lib/UpdateCommand.php(233): NC\Updater\UpdateCommand->executeStep()
#3 phar:///config/www/nextcloud/updater/updater.phar/vendor/symfony/console/Command/Command.php(256): NC\Updater\UpdateCommand->execute()
#4 phar:///config/www/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(820): Symfony\Component\Console\Command\Command->run()
#5 phar:///config/www/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(187): Symfony\Component\Console\Application->doRunCommand()
#6 phar:///config/www/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(118): Symfony\Component\Console\Application->doRun()
#7 phar:///config/www/nextcloud/updater/updater.phar/updater.php(10): Symfony\Component\Console\Application->run()
#8 /config/www/nextcloud/updater/updater.phar(14): require(‘…’)
#9 {main}
thrown in phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php on line 676

After that, I tried running occ maintenance:repair. It resulted with this:

root@8f2c1d553487:/#occ maintenance:repair
PHP Warning: filemtime(): stat failed for /config/www/nextcloud/version.php in /config/www/nextcloud/lib/private/legacy/OC_Util.php on line 329
PHP Warning: require(/config/www/nextcloud/version.php): Failed to open stream: No such file or directory in /config/www/nextcloud/lib/private/legacy/OC_Util.php on line 330
An unhandled exception has been thrown:
Error: Failed opening required ‘/config/www/nextcloud/version.php’ (include_path=‘/config/www/nextcloud/3rdparty/pear/archive_tar:/config/www/nextcloud/3rdparty/pear/console_getopt:/config/www/nextcloud/3rdparty/pear/pear-core-minimal/src:/config/www/nextcloud/3rdparty/pear/pear_exception:/config/www/nextcloud/apps’) in /config/www/nextcloud/lib/private/legacy/OC_Util.php:330

It appears it is looking for PHP files that don’t exist, so unsure what to do at this point. Thanks.

If you are using Docker you upgrade by pulling a more current Docker image. Should be no reason to use the internal updater fwiw.

Thanks Just, you are right. I’ll try it this evening.

Hi Just, a bit of a correction. Docker is installed but I update with a Portainer image, and it didn’t work. I am not sure, but from what I read, the new image would download but it wouldn’t update the \data or \config folders since they are on ‘persistent’ volumes with how Portainer works it. I wanted to try to fix this issue without having to reload user directories first.

What did work was I took the first updater backup I found for version 24.0.5, and overlaid the corresponding \www\nextcloud directories. I’m at least back up and running on 24.0.5 and at least can get on with my day, and explore updating at another time.

Consider this resolved, I gather, although I have to figure out what to fix with Portainer. Regardless, thanks for your assistance.