Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can.
The Basics
- Nextcloud Server version (e.g., 29.x.x):
30.0.4
- Operating system and version (e.g., Ubuntu 24.04):
Debian 12.9
- Web server and version (e.g, Apache 2.4.25):
nginx 1.22.1-9
- Reverse proxy and version _(e.g. nginx 1.27.2)
nginx 1.22.1-9
- PHP version (e.g, 8.3):
8.2
- Is this the first time you’ve seen this error? (Yes / No):
Yes
- When did this problem seem to first start?
During web-based upgrade
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
?
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
No
Summary of the issue you are facing:
Upgrade fails in step 6.
Steps to replicate it (hint: details matter!):
- go to admin page
- start web-based update, then due to failure:
rm /mnt/dietpi_userdata/nextcloud_data/updater-ocwmoi7mbwzu/.step
cd /var/www/nextcloud/
sudo -u www-data php updater/updater.phar
Log entries
[...]
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(/var/www/nextcloud/updater/../version.php): Failed to open stream: No such file or directory in phar:///var/www/nextcloud/updater/updater.phar/lib/Updater.php on line 699
PHP Fatal error: Uncaught Error: Failed opening required '/var/www/nextcloud/updater/../version.php' (include_path='.:/usr/share/php') in phar:///var/www/nextcloud/updater/updater.phar/lib/Updater.php:699
Stack trace:
#0 phar:///var/www/nextcloud/updater/updater.phar/lib/Updater.php(744): NC\Updater\Updater->getVersionByVersionFile()
#1 phar:///var/www/nextcloud/updater/updater.phar/lib/UpdateCommand.php(387): NC\Updater\Updater->extractDownload()
#2 phar:///var/www/nextcloud/updater/updater.phar/lib/UpdateCommand.php(240): NC\Updater\UpdateCommand->executeStep()
#3 phar:///var/www/nextcloud/updater/updater.phar/vendor/symfony/console/Command/Command.php(298): NC\Updater\UpdateCommand->execute()
#4 phar:///var/www/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run()
#5 phar:///var/www/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#6 phar:///var/www/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#7 phar:///var/www/nextcloud/updater/updater.phar/updater.php(12): Symfony\Component\Console\Application->run()
#8 /var/www/nextcloud/updater/updater.phar(14): require('...')
#9 {main}
thrown in phar:///var/www/nextcloud/updater/updater.phar/lib/Updater.php on line 699
This is the same error message as shown by the web updater.
I’ve been using Nextcloud for over a decade. I always do my updates this way. There have been similar failures in the past, perhaps due to timeouts? (i.e. when running from a slow HD on a Raspberry Pi, but this went away once I switched to an SSD.
The way this is stuck right now, I don’t know how to recover. Any help would be appreciated.
Update: I’ve reverted to last night’s backup, i.e. 30.0.4 - since the upgrade did not run to completion, I assume that no database changes have been applied (e.g. calendar data).