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
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.
[] Check for expected files
[] Check for write permissions
[] Create backup
[] Downloading
[] 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.