Updater stuck (in step 4) and no `updater` folder can be found

Nextcloud version: 20.0.5
Operating system and version: Raspbian GNU/Linux 10 (buster) / NextcloudPi v1.34.7
Apache or nginx version: Apache 2.4.38
PHP version: 7.3

The issue you are facing:

Trying to upgrade from 20.05 to 20.07 via the web updater. Updater stuck in step 4 (downloading) for more than 2 days, and is probably dead (maybe because I did a system update and services reset during the nextcloud update process, which usually takes hours for me). For resetting it, most forum entries (e.g. 12177, 7998, 27377) recommend to remove the file nextcloud/data/updater-randomstring/.step, however, no subfolder updater* can be found on my data folder.

Searching files like *step* or *updater* gives apparently nothing usable.

Question: Where is my updater data, and how to reset it?
Thank you very much.

Some logs

Log: the updater is stuck for some time.

$:/var/www/nextcloud/updater $ sudo -u www-data php updater.phar 
Cannot load Zend OPcache - it was already loaded
Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4

Step 4 is currently in process. Please call this command later.

Log: trying to find files .step or even a folder called updater-*.

$:/var/www/nextcloud $ find -iname "*step*"
./lib/public/Migration/SimpleMigrationStep.php
./lib/public/Migration/IMigrationStep.php
./lib/public/Migration/IRepairStep.php
./lib/private/Repair/MoveUpdaterStepFile.php
./3rdparty/patchwork/utf8/src/Patchwork/PHP/Shim/charset/from.nextstep.ser
./apps/text/lib/Db/Step.php
./apps/text/lib/Db/StepMapper.php
./apps/text/js/highlight/step21.js.map
./apps/text/js/highlight/step21.js
./apps/calendar/lib/RepairSteps
./apps/calendar/lib/RepairSteps/CurrentViewNameRepairStep.php
./core/doc/admin/_images/updater-cli-3-running-step.png
./core/doc/admin/_images/updater-cli-4-failed-step.png
./core/doc/admin/_images/updater-4-failed-step.png
./core/doc/admin/_images/updater-3-running-step.png
./core/skeleton/Photos/Steps.jpg
$:/var/www/nextcloud $ find -iname "*updater*"
./lib/public/Files/Cache/IUpdater.php
./lib/private/Repair/AddCleanupUpdaterBackupsJob.php
./lib/private/Repair/MoveUpdaterStepFile.php
./lib/private/Updater.php
./lib/private/Files/Cache/Updater.php
./lib/private/Updater
./apps/support/lib/Repair/SwitchUpdaterServer.php
./apps/twofactor_totp/lib/Listener/StateChangeRegistryUpdater.php
./apps/files_sharing/lib/Updater.php
./apps/contacts/lib/Cron/SocialUpdateRegistration.php
./apps/news/lib/Command/Updater
./apps/news/lib/Cron/UpdaterJob.php
./apps/news/lib/Service/UpdaterService.php
./apps/twofactor_backupcodes/lib/Listener/RegistryUpdater.php
./updater
./updater/updater.phar
./core/doc/admin/_images/updater-cli-2-start-updater.png
./core/doc/admin/_images/updater-cli-3-running-step.png
./core/doc/admin/_images/updater-2-open-updater.png
./core/doc/admin/_images/updater-cli-5-continue-update.png
./core/doc/admin/_images/updater-cli-8-no-interaction.png
./core/doc/admin/_images/updater-5-continue-update.png
./core/doc/admin/_images/updater-cli-6-run-command.png
./core/doc/admin/_images/updater-cli-4-failed-step.png
./core/doc/admin/_images/updater-cli-7-maintenance.png
./core/doc/admin/_images/updater-7-disable-maintenance.png
./core/doc/admin/_images/updater-9-upgrade-page.png
./core/doc/admin/_images/updater-1-update-available.png
./core/doc/admin/_images/updater-4-failed-step.png
./core/doc/admin/_images/updater-6-maintenance-mode.png
./core/doc/admin/_images/updater-3-running-step.png
./core/doc/admin/_images/updater-8-keep-maintenance.png
./core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php

It’s in the data-folder (check your config/config.php if you don’t know where) called updater-....

1 Like

Thank you very much! I thought the data directory meant the nextcloud/data folder, and not a folder specified by my config file. Checking it, I saw the line 'datadirectory' => '/media/USBdrive/ncdata', which means that I was not searching the appropriate place. Alas, going the right folder, I found the .step file, erased it, and restarted my update.

Thank you very much, again!