nextcloud / nextcloud/updater

Upgrade 26>27 : Yet another "Step 6 is currently in process. Please reload this page later."

Open
#547 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage bug feature: deletion feature: extraction hotspot: shipped.json needs review
Dominant language
PHP
Stars
51
Forks
40
Avg merge
2d 19h
Merged PRs (30d)
3

Description

Stuck forever at "Step 6 is currently in process. Please reload this page later."

I let it on the step for several hours and it does nothing, pages refresh always show this

This is an old well known issue that was supposedly fixed there, but it still happen on my 26.0.13.1 installation. I read all the reports and tried mostly everything and nothing helped.

I have deleted multiple times the /data/update/.step file to redo everything again and it's always stuck there.

I am on Ubuntu 220.4 with Apache and PHP up -to-date (8.2)
the PHP memory limit is set to 512MB

Updater log file shows nothing helpful

2024-04-15T09:16:58+0200 GVgEnKNTW8 [info] storage location exists
2024-04-15T09:17:03+0200 GVgEnKNTW8 [info] end of downloadUpdate()
2024-04-15T09:17:03+0200 GVgEnKNTW8 [info] endStep("4")
2024-04-15T09:17:03+0200 ydky86VgUX [info] request to updater
2024-04-15T09:17:03+0200 ydky86VgUX [info] currentStep()
2024-04-15T09:17:03+0200 ydky86VgUX [info] Step 4 is in state "end".
2024-04-15T09:17:03+0200 ydky86VgUX [info] POST request for step "5"
2024-04-15T09:17:03+0200 ydky86VgUX [info] startStep("5")
2024-04-15T09:17:03+0200 ydky86VgUX [info] verifyIntegrity()
2024-04-15T09:17:03+0200 ydky86VgUX [info] getUpdateServerResponse()
2024-04-15T09:17:03+0200 ydky86VgUX [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-04-15T09:17:03+0200 ydky86VgUX [info] releaseChannel: stable
2024-04-15T09:17:03+0200 ydky86VgUX [info] internal version: 26.0.13.1
2024-04-15T09:17:03+0200 ydky86VgUX [info] updateURL: https://updates.nextcloud.com/updater_server/?version=26x0x13x1xxxstablexxx8x0x30
2024-04-15T09:17:03+0200 ydky86VgUX [info] getUpdateServerResponse response: Array
(
    [version] => 27.1.8.1
    [versionstring] => Nextcloud 27.1.8
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.8.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.8
    [autoupdater] => 1
    [eol] => 0
    [signature] => xxxx
)

2024-04-15T09:17:03+0200 ydky86VgUX [info] storage location: /var/www/html/nextcloud/data/updater-ocbkiyalgllo/downloads/
2024-04-15T09:17:04+0200 ydky86VgUX [info] end of verifyIntegrity()
2024-04-15T09:17:04+0200 ydky86VgUX [info] endStep("5")
2024-04-15T09:17:04+0200 MFPYQwby1Q [info] request to updater
2024-04-15T09:17:04+0200 MFPYQwby1Q [info] currentStep()
2024-04-15T09:17:04+0200 MFPYQwby1Q [info] Step 5 is in state "end".
2024-04-15T09:17:04+0200 MFPYQwby1Q [info] POST request for step "6"
2024-04-15T09:17:04+0200 MFPYQwby1Q [info] startStep("6")
2024-04-15T09:17:04+0200 MFPYQwby1Q [info] extractDownload()
2024-04-15T09:17:04+0200 MFPYQwby1Q [info] storage location: /var/www/html/nextcloud/data/updater-ocbkiyalgllo/downloads/
2024-04-15T09:17:32+0200 IKqpQ6ozOn [info] request to updater
2024-04-15T09:17:32+0200 IKqpQ6ozOn [info] currentStep()
2024-04-15T09:17:32+0200 IKqpQ6ozOn [info] Step 6 is in state "start".
2024-04-15T09:17:38+0200 TUpUjyYvX6 [info] request to updater
2024-04-15T09:17:38+0200 TUpUjyYvX6 [info] currentStep()
2024-04-15T09:17:38+0200 TUpUjyYvX6 [info] Step 6 is in state "start".
2024-04-15T09:17:43+0200 tJjP59TkmB [info] request to updater
2024-04-15T09:17:43+0200 tJjP59TkmB [info] currentStep()
2024-04-15T09:17:43+0200 tJjP59TkmB [info] Step 6 is in state "start".
2024-04-15T09:21:39+0200 25AExOGulU [info] request to updater
2024-04-15T09:21:39+0200 25AExOGulU [info] currentStep()
2024-04-15T09:21:39+0200 25AExOGulU [info] Step 6 is in state "start".

Contain of the downloads/nextcloud folder shows that it did extract the zip so why doesn't it just proceed with the next step of the installation ?

tom@www-prd:/var/www/html/nextcloud/data/updater-ocbkiyalgllo/downloads/nextcloud$ ll
total 1976
drwxr-xr-x 13 www-data www-data    4096 Apr 15 09:17 ./
drwxr-x---  3 www-data www-data      23 Apr 15 09:17 ../
drwxr-xr-x 45 www-data www-data    4096 Apr 15 09:17 3rdparty/
drwxr-xr-x 51 www-data www-data    4096 Apr 15 09:17 apps/
-rw-r--r--  1 www-data www-data   23796 Mar 28 08:02 AUTHORS
-rw-r--r--  1 www-data www-data    1283 Mar 28 08:02 composer.json
-rw-r--r--  1 www-data www-data    3140 Mar 28 08:02 composer.lock
drwxr-xr-x  2 www-data www-data      67 Apr 15 09:17 config/
-rw-r--r--  1 www-data www-data    4095 Mar 28 08:02 console.php
-rw-r--r--  1 www-data www-data   34520 Mar 28 08:02 COPYING
drwxr-xr-x 24 www-data www-data    4096 Apr 15 09:17 core/
-rw-r--r--  1 www-data www-data    6317 Mar 28 08:02 cron.php
drwxr-xr-x  2 www-data www-data   12288 Apr 15 09:17 dist/
-rw-r--r--  1 www-data www-data    3993 Mar 28 08:02 .htaccess
-rw-r--r--  1 www-data www-data     156 Mar 28 08:02 index.html
-rw-r--r--  1 www-data www-data    4103 Mar 28 08:02 index.php
drwxr-xr-x  6 www-data www-data     125 Apr 15 09:17 lib/
-rw-r--r--  1 www-data www-data     283 Mar 28 08:02 occ
drwxr-xr-x  2 www-data www-data      55 Apr 15 09:17 ocs/
drwxr-xr-x  2 www-data www-data      23 Apr 15 09:17 ocs-provider/
-rw-r--r--  1 www-data www-data    6341 Mar 28 08:02 package.json
-rw-r--r--  1 www-data www-data 1849537 Mar 28 08:02 package-lock.json
-rw-r--r--  1 www-data www-data    3187 Mar 28 08:02 public.php
-rw-r--r--  1 www-data www-data    5597 Mar 28 08:02 remote.php
drwxr-xr-x  4 www-data www-data     133 Apr 15 09:17 resources/
-rw-r--r--  1 www-data www-data      26 Mar 28 08:02 robots.txt
-rw-r--r--  1 www-data www-data    2452 Mar 28 08:02 status.php
drwxr-xr-x  3 www-data www-data      35 Apr 15 09:17 themes/
drwxr-xr-x  2 www-data www-data      43 Apr 15 09:17 updater/
-rw-r--r--  1 www-data www-data     101 Mar 28 08:02 .user.ini
-rw-r--r--  1 www-data www-data     403 Mar 28 08:05 version.php

My cloud is down for 24 hours and I just don't know what to do to fix it.

since I had all sorts of worst issues in the past with the occ maintenance_fix thing, I am reluctant to try to solve my issue with it and I would like to have some guidance on what to do.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the updater's step-6 handling alongside the reported /data/update/.step state, updater log, and extracted downloads/nextcloud contents. Reproduce the 26.0.13.1 to 27.1.8 upgrade failure and trace why step 6 remains in "start" after extraction; done means the upgrade proceeds beyond step 6 without manual recovery.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.