Update from nextcloud-31.0.7.1 to 31.0.8 failed AFTER starting step 10

I started the update on the cli with sudo -u www-data php [path]/updater/updater.phar.

After starting step10 it failed with the following error:

2025-08-15T10:14:50+0000 QfIeZCy3Wu [info] themes README exists
2025-08-15T10:14:53+0000 QfIeZCy3Wu [info] end of deleteOldFiles()
2025-08-15T10:14:53+0000 QfIeZCy3Wu [info] endStep("9")
2025-08-15T10:14:53+0000 QfIeZCy3Wu [info] executeStep request for step "10"
2025-08-15T10:14:53+0000 QfIeZCy3Wu [info] startStep("10")
2025-08-15T10:14:53+0000 QfIeZCy3Wu [info] moveNewVersionInPlace()
2025-08-15T10:14:53+0000 QfIeZCy3Wu [info] storage location: /[redacted]-data/updater-ocemhjh9y8rx/downloads/nextcloud/
2025-08-15T10:14:53+0000 QfIeZCy3Wu [error] executeStep request failed with other exception
2025-08-15T10:14:53+0000 QfIeZCy3Wu [error] Exception: Exception
Message: Could not rmdir /[redacted]-data/updater-ocemhjh9y8rx/downloads/nextcloud/3rdparty/justinrainbow/json-schema/src/JsonSchema/Exception
Code:0
Trace:
#0 phar:///[redacted]/updater/updater.phar/lib/Updater.php(997): NC\Updater\Updater->moveWithExclusions()
#1 phar:///[redacted]/updater/updater.phar/lib/UpdateCommand.php(381): NC\Updater\Updater->moveNewVersionInPlace()
#2 phar:///[redacted]/updater/updater.phar/lib/UpdateCommand.php(222): NC\Updater\UpdateCommand->executeStep()
#3 phar:///[redacted]/updater/updater.phar/vendor/symfony/console/Command/Command.php(298): NC\Updater\UpdateCommand->execute()
#4 phar:///[redacted]/updater/updater.phar/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run()
#5 phar:///[redacted]/updater/updater.phar/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#6 phar:///[redacted]/updater/updater.phar/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#7 phar:///[redacted]/updater/updater.phar/updater.php(17): Symfony\Component\Console\Application->run()
#8 /[redacted]/updater/updater.phar(14): require('...')
#9 {main}
File:phar:///[redacted]/updater/updater.phar/lib/Updater.php
Line:971

2025-08-15T10:14:53+0000 QfIeZCy3Wu [info] rollbackChanges("10")
2025-08-15T10:14:53+0000 QfIeZCy3Wu [info] unlink .step
2025-08-15T10:14:53+0000 QfIeZCy3Wu [info] rollbackChanges - step >= 7
2025-08-15T10:14:53+0000 QfIeZCy3Wu [info] end of  rollbackChanges()

How to troubleshoot this issue? In the meantime i rolled back to the backup.

I am aware of the other posting regarding upgrade errors from the same original version here but since it errored at a different state I decided to open a new topic. Feel free to merge into the other topic if it feels appropriate.

I did the same - rolled back.

This topic was automatically closed after 3 days. New replies are no longer allowed.

removing the directory failed - from this message I would assume file system permissions issues on the specific directory - please double check user www-data has read and write access to this directory (and files created during update also have the right permissions applied) file_permission

Hmm, but why would a directory not be ownedby www-data, when the process is started by sudo -u www-data? I checked all the directories especially
/[redacted]-data/updater-ocemhjh9y8rx/downloads/nextcloud/3rdparty/justinrainbow/json-schema/src/JsonSchema/ and it is just as expected owned by www-data and www-data has all permissions on that directory.

I retried the upgrade with the upgrader.phar from my 31.0.4.1 backup. This is version “Nextcloud Updater - version: v30.0.2rc1-9-ge6d305f”. This went as expected and upgraded my installation to 31.0.8.

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