Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step 5 is currently in process. #272

Closed
dacoex opened this issue Mar 16, 2020 · 14 comments · Fixed by #472
Closed

Step 5 is currently in process. #272

dacoex opened this issue Mar 16, 2020 · 14 comments · Fixed by #472

Comments

@dacoex
Copy link

dacoex commented Mar 16, 2020

My instance is running on 17.0.3

The admin web site shows that version 17.0.4 is available to upgrade.

After hitting upgrade, it fails.
Step 5 is currently in process. Please reload this page later.

Using the command line via ssh shows that system runs already on latest version:

/usr/bin/php71 ./occ upgrade
Cannot load Zend OPcache - it was already loaded
Nextcloud is already latest version

After running
/usr/bin/php71 ./occ maintenance:repair

And then trying to upgrade in the web-interface, the error says:

Check for expected files
Parsing response failed.

@nazar-pc
Copy link

nazar-pc commented Jan 3, 2021

Exact same issue here when attempting an upgrade from 19.0.6.2 to 20.0.4.0.

Also fails with web-interface with:

Verifying integrity
Parsing response failed.
Show detailed response

CLI says "Nextcloud is already latest version" and refreshing updater page results in "Step 5 is currently in process. Please reload this page later."

@klimentyev
Copy link

@nazar-pc I've the same problem too.

@klimentyev
Copy link

@nazar-pc
Copy link

nazar-pc commented Jan 3, 2021

Interesting. php occ upgrade didn't want to upgrade, but with php updater/updater.phar turned out updater wanted to consume more memory than PHP was allowed to use. Now it makes sense, though web updater didn't handle it gracefully and I'm wondering why a lot of memory is needed to verify integrity.

With php -d memory_limit=1024M updater/updater.phar everything worked fine, thanks for the hint!

@klimentyev
Copy link

I was able to update my small server with memory_limit=512M in PHP config.

@uwemock
Copy link

uwemock commented Jan 11, 2021

Is there a way to get around this limitation?

I have no way to raise my the memory limit on my installation.

@stephang
Copy link

stephang commented Apr 19, 2021

If the upgrade process failed earlier, your update is stuck with this message.

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

"Step 5" is validating the download, so no production files should have been touched yet. In that case you can try to completely cancel the upgrade process.

  • go to your data dir (example: /var/www/nextcloud/data)
  • here, you should have a directory with all the update files (updater-[INSTANCE_ID])
  • remove / rename the file .step
  • re-open the updater

@marcelklehr
Copy link
Member

There should really be some kind of --reset or --force param :/

@tomtom
Copy link

tomtom commented Dec 10, 2022

In a shared web-hosting environment, step 5 fails (most likely) due to memory restrictions. The updater stops with an error. All other recommendations for dealing with this situation don't really work in such an environment.

It seems to me, we can simply skip step 5 by editing the .step file and by replacing "start" with "end". Could somebody with intimate knowledge of NC please verify this is a sensible thing to do?

@tomtom
Copy link

tomtom commented Dec 10, 2022

Maybe the updater could work with a zip file that was downloaded & verified & put in a specific folder by the user beforehand?

@tomtom
Copy link

tomtom commented Dec 21, 2022 via email

@joshtrichards
Copy link
Member

Now it makes sense, though web updater didn't handle it gracefully and I'm wondering why a lot of memory is needed to verify integrity.

The Updater requires memory at least equal to size of the current Archive file: See #505 for some analysis.

At present, Archive sizes are about ~220MB so assume you need at least 256MB for the verifyIntegrity() step (5). Unsurprisingly this has increased over the years. With Server v18 it was ~100MB.

Is there a way to get around this limitation? I have no way to raise my the memory limit on my installation.

Yes, do a manual update which will always work in environments where the Updater can't be used: https://docs.nextcloud.com/server/latest/admin_manual/maintenance/manual_upgrade.html

There should really be some kind of --reset or --force param :/

occ maintenance:repair automatically clears out a .step file if one does not wish to do it manually.

In a shared web-hosting environment, step 5 fails (most likely) due to memory restrictions. The updater stops with an error. All other recommendations for dealing with this situation don't really work in such an environment.

A manual update will always work if the Updater won't work in your environment: https://docs.nextcloud.com/server/latest/admin_manual/maintenance/manual_upgrade.html

@tomtom
Copy link

tomtom commented Apr 16, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
9 participants