Stuck in step 6

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version 27.1.2
Operating system and version Debian 11 latest patches on bare metal
Managed by ISPConfig latest version
pache or nginx version Apache latest version
PHP version 8.1 (but from 7.0 to 8.3 every version availabe and may be configured for the nextcloud website

The issue you are facing:
Updates tucks in step 6, restored a webseite version from 5 days ago, tried to update, but still tells me upgrade in progress step 6. At the time 2023-10-22 of the back no upgrade was startet

Is this the first time you’ve seen this error? (Y/N):Y
Running nextcloud sind begin of the year, dir every update since then, without any problem

Steps to replicate it:

  1. started the update by “Updater öffnen”

The output of your Nextcloud log in Admin > Logging:


2023-10-13T13:26:52+0200 Z515E384eX [info] checkForUpdate() Array
(
    [version] => 27.1.2.1
    [versionstring] => Nextcloud 27.1.2
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.2.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.2
    [autoupdater] => 1
    [eol] => 0
    [signature] => a8ZbtJSTFgl0HaGVIu+95bvryxyGT8JjZnRmqnXs4Q8l5e+DknF5HIEbamygxUyh
w2gM53VN/47lT4gYJliXyHaExtUZC4RSK+t1heN7VmmVI3gVuNPAXJB9yIYiqDuG
ZXSOF4iUVzOFxMjcr/IePKAHq7SCqO4z7+DyqiRmxGsQ39O/PXGnTwQISsPcBCgk
xmGs12jxE14hdQ9+FC0SiIFMTqnXcQCyaNo7WpiFmguYbYF5g0MMz9gU9NQshdsR
8k656enup2mFcYhLtEwU1xqUyGshkqJIeDYZVmMAUjIDl7WDW48Rf4TaUFt0xhhd
E0naA2Zl4UCBBKH06CGPtg==
)

2023-10-13T13:26:52+0200 Z515E384eX [info] getChangelogURL()
2023-10-13T13:26:52+0200 Z515E384eX [info] end of checkForUpdate() Update to Nextcloud 27.1.2 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-27.1.2.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#27-1-2" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2023-10-13T13:26:56+0200 YcsESCZWNc [info] request to updater
2023-10-13T13:26:56+0200 YcsESCZWNc [info] currentStep()
2023-10-13T13:26:56+0200 YcsESCZWNc [info] POST request for step "1"
2023-10-13T13:26:56+0200 YcsESCZWNc [info] startStep("1")
2023-10-13T13:26:56+0200 YcsESCZWNc [info] checkForExpectedFilesAndFolders()
2023-10-13T13:26:56+0200 YcsESCZWNc [info] end of checkForExpectedFilesAndFolders()
2023-10-13T13:26:56+0200 YcsESCZWNc [info] endStep("1")
2023-10-13T13:26:56+0200 Yl9weeS2Kn [info] request to updater
2023-10-13T13:26:56+0200 Yl9weeS2Kn [info] currentStep()
2023-10-13T13:26:56+0200 Yl9weeS2Kn [info] Step 1 is in state "end".
2023-10-13T13:26:56+0200 Yl9weeS2Kn [info] POST request for step "2"
2023-10-13T13:26:56+0200 Yl9weeS2Kn [info] startStep("2")
2023-10-13T13:26:56+0200 Yl9weeS2Kn [info] checkWritePermissions()
2023-10-13T13:26:56+0200 Yl9weeS2Kn [info] end of checkWritePermissions()
2023-10-13T13:26:56+0200 Yl9weeS2Kn [info] endStep("2")
2023-10-13T13:26:56+0200 lliGPt3bAn [info] request to updater
2023-10-13T13:26:56+0200 lliGPt3bAn [info] currentStep()
2023-10-13T13:26:56+0200 lliGPt3bAn [info] Step 2 is in state "end".
2023-10-13T13:26:56+0200 lliGPt3bAn [info] POST request for step "3"
2023-10-13T13:26:56+0200 lliGPt3bAn [info] startStep("3")
2023-10-13T13:26:56+0200 lliGPt3bAn [info] createBackup()
2023-10-13T13:26:56+0200 lliGPt3bAn [info] backup folder location: /var/www/clients/client0/web2/web/data/updater-oc8a91ex1mmx/backups/nextcloud-27.1.1.0-1697196416/
2023-10-13T13:28:32+0200 lliGPt3bAn [info] end of createBackup()
2023-10-13T13:28:32+0200 lliGPt3bAn [info] endStep("3")
2023-10-13T13:28:32+0200 kyN3jZWF6L [info] request to updater
2023-10-13T13:28:32+0200 kyN3jZWF6L [info] currentStep()
2023-10-13T13:28:32+0200 kyN3jZWF6L [info] Step 3 is in state "end".
2023-10-13T13:28:32+0200 kyN3jZWF6L [info] POST request for step "4"
2023-10-13T13:28:32+0200 kyN3jZWF6L [info] startStep("4")
2023-10-13T13:28:32+0200 kyN3jZWF6L [info] downloadUpdate()
2023-10-13T13:28:32+0200 kyN3jZWF6L [info] getUpdateServerResponse()
2023-10-13T13:28:32+0200 kyN3jZWF6L [info] updaterServer: https://updates.nextcloud.com/updater_server/
2023-10-13T13:28:32+0200 kyN3jZWF6L [info] releaseChannel: stable
2023-10-13T13:28:32+0200 kyN3jZWF6L [info] internal version: 27.1.1.0
2023-10-13T13:28:32+0200 kyN3jZWF6L [info] updateURL: https://updates.nextcloud.com/updater_server/?version=27x1x1x0xxxstablexx2023-09-21T09%3A05%3A38%2B00%3A00+f08d7818360df171dfc47a412b5a35c524b01f9fx8x1x23
2023-10-13T13:28:32+0200 kyN3jZWF6L [info] getUpdateServerResponse response: Array
(
    [version] => 27.1.2.1
    [versionstring] => Nextcloud 27.1.2
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.2.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.2
    [autoupdater] => 1
    [eol] => 0
    [signature] => a8ZbtJSTFgl0HaGVIu+95bvryxyGT8JjZnRmqnXs4Q8l5e+DknF5HIEbamygxUyh
w2gM53VN/47lT4gYJliXyHaExtUZC4RSK+t1heN7VmmVI3gVuNPAXJB9yIYiqDuG
ZXSOF4iUVzOFxMjcr/IePKAHq7SCqO4z7+DyqiRmxGsQ39O/PXGnTwQISsPcBCgk
xmGs12jxE14hdQ9+FC0SiIFMTqnXcQCyaNo7WpiFmguYbYF5g0MMz9gU9NQshdsR
8k656enup2mFcYhLtEwU1xqUyGshkqJIeDYZVmMAUjIDl7WDW48Rf4TaUFt0xhhd
E0naA2Zl4UCBBKH06CGPtg==
)

2023-10-13T13:28:32+0200 kyN3jZWF6L [info] storage location exists
2023-10-13T13:28:34+0200 kyN3jZWF6L [info] end of downloadUpdate()
2023-10-13T13:28:34+0200 kyN3jZWF6L [info] endStep("4")
2023-10-13T13:28:34+0200 gAb9dkorPh [info] request to updater
2023-10-13T13:28:34+0200 gAb9dkorPh [info] currentStep()
2023-10-13T13:28:34+0200 gAb9dkorPh [info] Step 4 is in state "end".
2023-10-13T13:28:34+0200 gAb9dkorPh [info] POST request for step "5"
2023-10-13T13:28:34+0200 gAb9dkorPh [info] startStep("5")
2023-10-13T13:28:34+0200 gAb9dkorPh [info] verifyIntegrity()
2023-10-13T13:28:34+0200 gAb9dkorPh [info] getUpdateServerResponse()
2023-10-13T13:28:34+0200 gAb9dkorPh [info] updaterServer: https://updates.nextcloud.com/updater_server/
2023-10-13T13:28:34+0200 gAb9dkorPh [info] releaseChannel: stable
2023-10-13T13:28:34+0200 gAb9dkorPh [info] internal version: 27.1.1.0
2023-10-13T13:28:34+0200 gAb9dkorPh [info] updateURL: https://updates.nextcloud.com/updater_server/?version=27x1x1x0xxxstablexx2023-09-21T09%3A05%3A38%2B00%3A00+f08d7818360df171dfc47a412b5a35c524b01f9fx8x1x23
2023-10-13T13:28:34+0200 gAb9dkorPh [info] getUpdateServerResponse response: Array
(
    [version] => 27.1.2.1
    [versionstring] => Nextcloud 27.1.2
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.2.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.2
    [autoupdater] => 1
    [eol] => 0
    [signature] => a8ZbtJSTFgl0HaGVIu+95bvryxyGT8JjZnRmqnXs4Q8l5e+DknF5HIEbamygxUyh
w2gM53VN/47lT4gYJliXyHaExtUZC4RSK+t1heN7VmmVI3gVuNPAXJB9yIYiqDuG
ZXSOF4iUVzOFxMjcr/IePKAHq7SCqO4z7+DyqiRmxGsQ39O/PXGnTwQISsPcBCgk
xmGs12jxE14hdQ9+FC0SiIFMTqnXcQCyaNo7WpiFmguYbYF5g0MMz9gU9NQshdsR
8k656enup2mFcYhLtEwU1xqUyGshkqJIeDYZVmMAUjIDl7WDW48Rf4TaUFt0xhhd
E0naA2Zl4UCBBKH06CGPtg==
)

2023-10-13T13:28:34+0200 gAb9dkorPh [info] storage location: /var/www/clients/client0/web2/web/data/updater-oc8a91ex1mmx/downloads/
2023-10-13T13:28:35+0200 gAb9dkorPh [info] end of verifyIntegrity()
2023-10-13T13:28:35+0200 gAb9dkorPh [info] endStep("5")
2023-10-13T13:28:35+0200 aQe65rgrPt [info] request to updater
2023-10-13T13:28:35+0200 aQe65rgrPt [info] currentStep()
2023-10-13T13:28:35+0200 aQe65rgrPt [info] Step 5 is in state "end".
2023-10-13T13:28:35+0200 aQe65rgrPt [info] POST request for step "6"
2023-10-13T13:28:35+0200 aQe65rgrPt [info] startStep("6")
2023-10-13T13:28:35+0200 aQe65rgrPt [info] extractDownload()
2023-10-13T13:28:35+0200 aQe65rgrPt [info] storage location: /var/www/clients/client0/web2/web/data/updater-oc8a91ex1mmx/downloads/
2023-10-13T13:28:45+0200 aQe65rgrPt [info] end of extractDownload()
2023-10-13T13:28:45+0200 aQe65rgrPt [info] endStep("6")
2023-10-13T13:28:45+0200 cVoods1SCm [info] request to updater
2023-10-13T13:28:45+0200 cVoods1SCm [info] currentStep()
2023-10-13T13:28:45+0200 cVoods1SCm [info] Step 6 is in state "end".
2023-10-13T13:28:45+0200 cVoods1SCm [info] POST request for step "7"
2023-10-13T13:28:46+0200 cVoods1SCm [info] startStep("7")
2023-10-13T13:28:46+0200 cVoods1SCm [info] setMaintenanceMode("true")
2023-10-13T13:28:46+0200 cVoods1SCm [info] configFileName /var/www/clients/client0/web2/web/updater/../config/config.php
2023-10-13T13:28:46+0200 cVoods1SCm [info] end of setMaintenanceMode()
2023-10-13T13:28:46+0200 cVoods1SCm [info] endStep("7")
2023-10-13T13:28:46+0200 FLxwUSQ05v [info] request to updater
2023-10-13T13:28:46+0200 FLxwUSQ05v [info] currentStep()
2023-10-13T13:28:46+0200 FLxwUSQ05v [info] Step 7 is in state "end".
2023-10-13T13:28:46+0200 FLxwUSQ05v [info] POST request for step "8"
2023-10-13T13:28:46+0200 FLxwUSQ05v [info] startStep("8")
2023-10-13T13:28:46+0200 FLxwUSQ05v [info] replaceEntryPoints()
2023-10-13T13:28:46+0200 FLxwUSQ05v [info] replace index.php
2023-10-13T13:28:46+0200 FLxwUSQ05v [info] replace status.php
2023-10-13T13:28:46+0200 FLxwUSQ05v [info] replace remote.php
2023-10-13T13:28:46+0200 FLxwUSQ05v [info] replace public.php
2023-10-13T13:28:46+0200 FLxwUSQ05v [info] replace ocs/v1.php
2023-10-13T13:28:46+0200 FLxwUSQ05v [info] replace ocs/v2.php
2023-10-13T13:28:46+0200 FLxwUSQ05v [info] end of replaceEntryPoints()
2023-10-13T13:28:46+0200 FLxwUSQ05v [info] endStep("8")
2023-10-13T13:28:46+0200 o3mWZjb6Qd [info] request to updater
2023-10-13T13:28:46+0200 o3mWZjb6Qd [info] currentStep()
2023-10-13T13:28:46+0200 o3mWZjb6Qd [info] Step 8 is in state "end".
2023-10-13T13:28:46+0200 o3mWZjb6Qd [info] POST request for step "9"
2023-10-13T13:28:46+0200 o3mWZjb6Qd [info] startStep("9")
2023-10-13T13:28:46+0200 o3mWZjb6Qd [info] deleteOldFiles()
2023-10-13T13:28:48+0200 o3mWZjb6Qd [info] config sample exists
2023-10-13T13:28:48+0200 o3mWZjb6Qd [info] themes README exists
2023-10-13T13:29:02+0200 o3mWZjb6Qd [info] end of deleteOldFiles()
2023-10-13T13:29:02+0200 o3mWZjb6Qd [info] endStep("9")
2023-10-13T13:29:02+0200 4f7RT4EyQM [info] request to updater
2023-10-13T13:29:02+0200 4f7RT4EyQM [info] currentStep()
2023-10-13T13:29:02+0200 4f7RT4EyQM [info] Step 9 is in state "end".
2023-10-13T13:29:02+0200 4f7RT4EyQM [info] POST request for step "10"
2023-10-13T13:29:02+0200 4f7RT4EyQM [info] startStep("10")
2023-10-13T13:29:02+0200 4f7RT4EyQM [info] moveNewVersionInPlace()
2023-10-13T13:29:02+0200 4f7RT4EyQM [info] storage location: /var/www/clients/client0/web2/web/data/updater-oc8a91ex1mmx/downloads/nextcloud/
2023-10-13T13:29:09+0200 4f7RT4EyQM [info] end of moveNewVersionInPlace()
2023-10-13T13:29:09+0200 4f7RT4EyQM [info] endStep("10")
2023-10-13T13:29:17+0200 ZSTmBqvNqW [info] request to updater
2023-10-13T13:29:17+0200 ZSTmBqvNqW [info] currentStep()
2023-10-13T13:29:17+0200 ZSTmBqvNqW [info] Step 10 is in state "end".
2023-10-13T13:29:17+0200 ZSTmBqvNqW [info] POST request for step "11"
2023-10-13T13:29:17+0200 ZSTmBqvNqW [info] startStep("11")
2023-10-13T13:29:17+0200 ZSTmBqvNqW [info] setMaintenanceMode("false")
2023-10-13T13:29:17+0200 ZSTmBqvNqW [info] configFileName /var/www/clients/client0/web2/web/updater/../config/config.php
2023-10-13T13:29:17+0200 ZSTmBqvNqW [info] end of setMaintenanceMode()
2023-10-13T13:29:17+0200 ZSTmBqvNqW [info] endStep("11")
2023-10-13T13:29:17+0200 OBWC2Z5CU8 [info] request to updater
2023-10-13T13:29:17+0200 OBWC2Z5CU8 [info] currentStep()
2023-10-13T13:29:17+0200 OBWC2Z5CU8 [info] Step 11 is in state "end".
2023-10-13T13:29:17+0200 OBWC2Z5CU8 [info] POST request for step "12"
2023-10-13T13:29:17+0200 OBWC2Z5CU8 [info] startStep("12")
2023-10-13T13:29:17+0200 OBWC2Z5CU8 [info] finalize()
2023-10-13T13:29:17+0200 OBWC2Z5CU8 [info] storage location: /var/www/clients/client0/web2/web/data/updater-oc8a91ex1mmx/downloads/nextcloud/
2023-10-13T13:29:17+0200 OBWC2Z5CU8 [info] call opcache_reset()
2023-10-13T13:29:17+0200 OBWC2Z5CU8 [info] end of finalize()
2023-10-13T13:29:17+0200 OBWC2Z5CU8 [info] endStep("12")
2023-10-27T17:45:28+0200 Mje2Ue5F1l [info] request to updater
2023-10-27T17:45:28+0200 Mje2Ue5F1l [info] currentStep()
2023-10-27T17:45:28+0200 Mje2Ue5F1l [info] Step 6 is in state "start".
2023-10-27T17:51:19+0200 eCxPvXsxAm [info] request to updater
2023-10-27T17:51:19+0200 eCxPvXsxAm [info] currentStep()
2023-10-27T17:51:19+0200 eCxPvXsxAm [info] Step 6 is in state "start".

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => 'nextcloud.muekno.de',
  ),
  'datadirectory' => '/var/www/clients/client0/web2/web/data',
  'dbtype' => 'mysql',
  'version' => '27.1.2.1',
  'overwrite.cli.url' => 'https://nextcloud.muekno.de',
  'dbname' => '',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'mail_from_address' => 'nextcloud',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'muekno.de',
  'mail_smtphost' => '127.0.0.1',
  'mail_smtpport' => '25',
  'enable_previews' => 'false',
  'default_phone_region' => 'DE',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memories.exiftool' => '/var/www/clients/client0/web2/web/apps/memories/exiftool-bin/exiftool-amd64-glibc',
  'auth.bruteforce.protection.enabled' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'memories.vod.path' => '/var/www/clients/client0/web2/web/apps/memories/exiftool-bin/go-vod-amd64',
  'updater.secret' => '',
);

The output of your Apache/nginx/system log in /var/log/____:
nithing rekevant to problem here


PASTE HERE

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

nothing relevant to error here

The are some posts to the same problem online. I read all and tried the solutions, mostly the same, but no success.
Still wonder where nextcloud store information aber updateing and beeing stuck in step 6 even I restore an 5 days old backup. I did’nt start an update at that time

I had a very similar problem upgrading to 27.1.2 a couple of days ago. I had a nightmare few hours sorting it out :frowning:

You can clear the flag by deleting /data/nextcloud/data/updater-ocwi4zmd2n8c/.step (a hidden file) and trying to the run the update again. That updater-ocwi4zmd2n8c folder might vary by installation.

I resorted to running the update manually which I think I’ll always do in future as it doesn’t suffer from timeouts, e.g. the backup step.

sudo -u nginx php --define apc.enable_cli=1 /data/nextcloud/updater/updater.phar
sudo -u nginx php --define apc.enable_cli=1 /data/nextcloud/occ upgrade
sudo -u nginx php --define apc.enable_cli=1 /data/nextcloud/occ db:add-missing-indices
sudo -u nginx php --define apc.enable_cli=1 /data/nextcloud/occ maintenance:mode --off

You’ll have to change nginx to the user running your webserver and the data/nextcloud path.

However, update.phar crashed out every time when unarchiving - problem with version.php file from memory. I ended up with a totally broken system.

In the end, I downloaded the exact old version ZIP and unzipping into the nextcloud folder as all the source files had been deleted. I think mine crashed trying to move the new version. As I said, a nightmare. I didn’t bother trying to upgrade again as it was already 2am!

However, I have arranged downtime this evening to try the upgrade again and suspiciously 27.1.3 has been released since I tried two days ago…

This version upgraded fine so I suspect there was a fault with 27.1.2 archive.

My mistake the first time was not taking a backup of the VM - only takes 7 minutes on Azure so I face the prospect of restoring from the previous night which would loose all the days changes plus there are other apps running on the VM. I suspect we’ve all had nights like that!

Great, tip ist perfect and help me a lot. Deleted the .step file and tried update to 27.1.3 again. Ran absolut smooth and I am at 27.1.3 now .

Thank you a lot
I am glad it is solved!

1 Like