Stuck on update process. Step 5 is currently in process. Please reload this page later

fokin legend

try to find the step file using find command, something like:
find / | grep .step
and then rename or delete the .step file

1 Like

Thanks to all that gave answers in this thread - it worked for me too!
I only had to:

  • Set the php memory limit to 512M in php.ini
  • Remove the old updater-oc3phxvt6byt directory from the data directory.

To avoid rewriting:
Maybe this is a solution which worked for me -

PHP-Speichergrenze einstellen

Geschickter ist es im gleichen Ordner die versteckte Datei “.user.ini” um folgende Zeilen zu erweitern:

memory_limit=512M
max_execution_time=7200

Sieht dann so aus:

mbstring.func_overload=0
always_populate_raw_post_data=-1
default_charset=‘UTF-8’
output_buffering=0
memory_limit=512M
max_execution_time=7200

https://www.andysblog.de/nextcloud-bei-all-inkl-com-installieren

Support Ukraine
Bernd

I think that worked for me too, hosted on all-inkl (Germany).
I deleted all stuff from “updater-xyz123” in /nextcloud/data, follow your tip and in the first time it stuck again at the same point. But after reloading the updater page two or three times, the progress going forward until the end.

I’ve just got the same issue updating from 23.0.5 to 24.0.1 and this hack helped to finish the update. Thanks! It’s a shame that NC devs couldn’t fix this bug for 3 years.

This worked for me. Worth noting that I did NOT have a /data/updater-xxxxx/ directory.

It is as amarus describes. And the issue is, that you need to

  • add the line after avery update in -htaccess
  • and also delete the old update folder in data.

there is no old update leftovers in my data folder… can u help?

Same for me, awesome

boosting this - this is the only thing that worked for me after every number of other steps - renaming .step files, deleting updater directory, etc. So hilarious we have to cowboy code to delete protections but… there ya go!

this worked for me

That did it for me. Thanks a bunch!

Found this thread after experiencing the same issue.

The PHP memory limit seems to be one of the major reasons why this is happening.

However, I already set this up in my .user.ini file, but it seems that on each upgrade, Nextcloud removes the .user.ini file.

Is there anyway to keep that file so we won’t run into future issues with the memory limit?

I just add the following code to setback update to step 4

if($currentStep['step'] == 5 ){
  $currentStep['state'] = "end";
  $currentStep['step'] = 4;
}

after the following code at line 1327

// Check if already a step is in process
$currentStep = $updater->currentStep();
$stepNumber = 0;

Worked for me. thanks!!

I found this, and it fixed the issue for me (php 8.2, Nextcloud 26.0.3 → 26.0.7):

sudo -u www-data php /var/www/nextcloud/occ maintenance:repair
sudo -u www-data php /var/www/nextcloud/updater/updater.phar --no-interaction

Thank-you leogrande.
Link for original post:

2 Likes

Thanks so much, this fixed all updates from 20 to 28 on webhosting!

Danke, Thanks,
it helped me too.

This worked for me, thanks!