Nextcloud 25 CLI Updater crashing

Nextcloud version: 25.0.13
Operating system and version : ubuntu 20.04
Apache or nginx version : Nginx 1.27.0
PHP version : 8.2

The issue you are facing:

Hi,
Trying to Upgrade to NC26 via command updater.Updated successfully to the latest release of 25 via the Web Updater and upgraded PHP 7.4 to 8.2 after.
Now when trying to call the CLI Upgrader it throws an exception.

When calling the Updater it crashes with the following exception:
PHP Fatal error: Uncaught Error: Call to undefined function NC\Updater\simplexml_load_string() in phar:///usr/share/nginx/nextcloud/updater/updater.phar/lib/Updater.php:499

Stacktrace:

#0phar:///usr/share/nginx/nextcloud/updater/updater.phar/lib/Updater.php(132): NC\Updater\Updater->getUpdateServerResponse() #1phar:///usr/share/nginx/nextcloud/updater/updater.phar/lib/UpdateCommand.php(149): NC\Updater\Updater->checkForUpdate() #2 phar:///usr/share/nginx/nextcloud/updater/updater.phar/vendor/symfony/console/Command/Command.php(255): NC\Updater\UpdateCommand->execute() #3phar:///usr/share/nginx/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(1021): Symfony\Component\Console\Command\Command->run() #4phar:///usr/share/nginx/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand() #5phar:///usr/share/nginx/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun() #6 phar:///usr/share/nginx/nextcloud/updater/updater.phar/updater.php(10): Symfony\Component\Console\Application->run() #7 /usr/share/nginx/nextcloud/updater/updater.phar(14): require('...') #8 {main} thrown in phar:///usr/share/nginx/nextcloud/updater/updater.phar/lib/Updater.php on line 499

Thanks for the help!

You are probably missing the SimpleXML module in php:
https://docs.nextcloud.com/server/26/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

2 Likes

Yes that was it. Thanks :+1:

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.