Update from 27.1.4 to 27.1.5 failed at backup stage [Hostinger.com]

[/details]

Nextcloud version (eg, 20.0.5): 27.1.4
Operating system and version (eg, Ubuntu 20.04): Hostinger.com account
Apache or nginx version (eg, Apache 2.4.25): Hostinger.com account
PHP version (eg, 7.4): 8.1

The issue you are facing:

I have tried to run the updater to update to 27.1.5 and it failed at the backup stage.
If I try to run the updater again I get “Step 3 is currently in process. Please reload this page later.”

How do I reset the update process and try again?
Folder ‘updater-ocpsu2182mjj’ has been created underneath my data folder.
This has sub folders backups/nextcloud-27.1.4.1-1702563332 the last of which appears to have a copy of the current system.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Open admin overview
  2. Click on “Open Updater”

The output of updater.log:

2023-12-14T14:15:27+0000 zazH2nrurJ [info] request to updater
2023-12-14T14:15:27+0000 zazH2nrurJ [info] currentStep()
2023-12-14T14:15:27+0000 zazH2nrurJ [info] show HTML page
2023-12-14T14:15:27+0000 zazH2nrurJ [info] current version: 27.1.4 build time: 2023-11-23T17:54:42+00:00 2668bd0cd54784b8464b15b23ea7b7336ee1bdc3
2023-12-14T14:15:28+0000 zazH2nrurJ [info] getUpdateServerResponse()
2023-12-14T14:15:28+0000 zazH2nrurJ [info] updaterServer: https://updates.nextcloud.com/updater_server/
2023-12-14T14:15:28+0000 zazH2nrurJ [info] releaseChannel: stable
2023-12-14T14:15:28+0000 zazH2nrurJ [info] internal version: 27.1.4.1
2023-12-14T14:15:28+0000 zazH2nrurJ [info] updateURL: https://updates.nextcloud.com/updater_server/?version=27x1x4x1xxxstablexx2023-11-23T17%3A54%3A42%2B00%3A00+2668bd0cd54784b8464b15b23ea7b7336ee1bdc3x8x1x18
2023-12-14T14:15:28+0000 zazH2nrurJ [info] getUpdateServerResponse response: Array
(
    [version] => 27.1.5.1
    [versionstring] => Nextcloud 27.1.5
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.5.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.5
    [autoupdater] => 1
    [eol] => 0
    [signature] => 1F9XxI67a9hARF50mL3YYax6+Takd1EU0R6mOAm5EYB7EbzdKqbQCzFhObX1jwcn
OB4S+68ZtcHhSngWz429nMHWt/dN4zFZjFv1b49Fa/3T2LGFfG6fju/VznTM/8n9
bZKfvQdpdUB9ilAzkdXZuKLl4niK/WEhL2xWY2ZV4sT9DkOFtVFNig2cPEL1rrw9
I6xqffV3bwlH5zI9hqJ1sPk63v/3mjgqDorqPTM8irHXNqQzbh1VdmeHz/Af/ncj
9J0xDa5AoDtEc1E/mW20em3adiHIMnMmmYg5XvwISKuKRsPP22f9M67kQYR8tedJ
SQf15rCZIxeaqll1lJMrMA==
)

2023-12-14T14:15:28+0000 zazH2nrurJ [info] checkForUpdate() Array
(
    [version] => 27.1.5.1
    [versionstring] => Nextcloud 27.1.5
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.5.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.5
    [autoupdater] => 1
    [eol] => 0
    [signature] => 1F9XxI67a9hARF50mL3YYax6+Takd1EU0R6mOAm5EYB7EbzdKqbQCzFhObX1jwcn
OB4S+68ZtcHhSngWz429nMHWt/dN4zFZjFv1b49Fa/3T2LGFfG6fju/VznTM/8n9
bZKfvQdpdUB9ilAzkdXZuKLl4niK/WEhL2xWY2ZV4sT9DkOFtVFNig2cPEL1rrw9
I6xqffV3bwlH5zI9hqJ1sPk63v/3mjgqDorqPTM8irHXNqQzbh1VdmeHz/Af/ncj
9J0xDa5AoDtEc1E/mW20em3adiHIMnMmmYg5XvwISKuKRsPP22f9M67kQYR8tedJ
SQf15rCZIxeaqll1lJMrMA==
)

2023-12-14T14:15:28+0000 zazH2nrurJ [info] getChangelogURL()
2023-12-14T14:15:28+0000 zazH2nrurJ [info] end of checkForUpdate() Update to Nextcloud 27.1.5 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.5.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#27-1-5" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2023-12-14T14:15:31+0000 oaBiyJIYc0 [info] request to updater
2023-12-14T14:15:31+0000 oaBiyJIYc0 [info] currentStep()
2023-12-14T14:15:31+0000 oaBiyJIYc0 [info] POST request for step "1"
2023-12-14T14:15:31+0000 oaBiyJIYc0 [info] startStep("1")
2023-12-14T14:15:31+0000 oaBiyJIYc0 [info] checkForExpectedFilesAndFolders()
2023-12-14T14:15:31+0000 oaBiyJIYc0 [info] end of checkForExpectedFilesAndFolders()
2023-12-14T14:15:31+0000 oaBiyJIYc0 [info] endStep("1")
2023-12-14T14:15:31+0000 wiTDCfEQBX [info] request to updater
2023-12-14T14:15:31+0000 wiTDCfEQBX [info] currentStep()
2023-12-14T14:15:31+0000 wiTDCfEQBX [info] Step 1 is in state "end".
2023-12-14T14:15:31+0000 wiTDCfEQBX [info] POST request for step "2"
2023-12-14T14:15:31+0000 wiTDCfEQBX [info] startStep("2")
2023-12-14T14:15:31+0000 wiTDCfEQBX [info] checkWritePermissions()
2023-12-14T14:15:31+0000 wiTDCfEQBX [info] end of checkWritePermissions()
2023-12-14T14:15:31+0000 wiTDCfEQBX [info] endStep("2")
2023-12-14T14:15:31+0000 gfHPN6LZc2 [info] request to updater
2023-12-14T14:15:31+0000 gfHPN6LZc2 [info] currentStep()
2023-12-14T14:15:31+0000 gfHPN6LZc2 [info] Step 2 is in state "end".
2023-12-14T14:15:31+0000 gfHPN6LZc2 [info] POST request for step "3"
2023-12-14T14:15:32+0000 gfHPN6LZc2 [info] startStep("3")
2023-12-14T14:15:32+0000 gfHPN6LZc2 [info] createBackup()
2023-12-14T14:15:32+0000 gfHPN6LZc2 [info] backup folder location: /home/u********/domains/k-m-a-c.org/public_html/nextcloud/updater-ocpsu2182mjj/backups/nextcloud-27.1.4.1-1702563332/
2023-12-14T14:17:54+0000 q5dUjdZGNC [info] request to updater
2023-12-14T14:17:54+0000 q5dUjdZGNC [info] currentStep()
2023-12-14T14:17:54+0000 q5dUjdZGNC [info] Step 3 is in state "start".
2023-12-14T14:18:28+0000 83Z9ASa4Hc [info] request to updater
2023-12-14T14:18:28+0000 83Z9ASa4Hc [info] currentStep()
2023-12-14T14:18:28+0000 83Z9ASa4Hc [info] Step 3 is in state "start".
2023-12-14T14:18:37+0000 7D9NIOEI0O [info] request to updater
2023-12-14T14:18:37+0000 7D9NIOEI0O [info] currentStep()
2023-12-14T14:18:37+0000 7D9NIOEI0O [info] Step 3 is in state "start".
2023-12-14T14:20:01+0000 Yam86NQXqg [info] request to updater
2023-12-14T14:20:01+0000 Yam86NQXqg [info] currentStep()
2023-12-14T14:20:01+0000 Yam86NQXqg [info] Step 3 is in state "start".
2023-12-14T14:38:26+0000 5Yglh7P3Bg [info] request to updater
2023-12-14T14:38:26+0000 5Yglh7P3Bg [info] currentStep()
2023-12-14T14:38:26+0000 5Yglh7P3Bg [info] Step 3 is in state "start".

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

config.php does not exist

The output of your Apache/nginx/system log in /var/log/____:

Don't have access

Without system log it is a lot of guessing. The last time the updater stopped at the backup stage for me is when I run out of disk space. Worth checking.

Thanks for answering.

I have plenty of space free.
image

I think the backup actually completed.

System logs are full of cron job entries so 100% irrelevant for this issue.

I have examined the MySql database and I can’t see any tables with names that would suggest upgrade progresss.

How can I reset the update so that I can try again?

Been doing a bit more digging and I have found a “hidden” file called .step in the folder ‘updater-ocpsu2182mjj’ which contains the data {“state”:“start”,“step”:3}

Am I safe to delete this folder and try again?

I decided to bite the bullet and deleted the log files and the backup created earlier to reset the update process and that worked.

on the updater screen I get this


when I click on the show detailed response arrow

nextcloud.log is empty 0 bytes

updater.log

2023-12-19T10:38:35+0000 ZIwX5lI2jE [info] request to updater
2023-12-19T10:38:35+0000 ZIwX5lI2jE [info] currentStep()
2023-12-19T10:38:35+0000 ZIwX5lI2jE [info] show HTML page
2023-12-19T10:38:35+0000 ZIwX5lI2jE [info] current version: 27.1.4 build time: 2023-11-23T17:54:42+00:00 2668bd0cd54784b8464b15b23ea7b7336ee1bdc3
2023-12-19T10:38:35+0000 ZIwX5lI2jE [info] getUpdateServerResponse()
2023-12-19T10:38:35+0000 ZIwX5lI2jE [info] updaterServer: https://updates.nextcloud.com/updater_server/
2023-12-19T10:38:35+0000 ZIwX5lI2jE [info] releaseChannel: stable
2023-12-19T10:38:35+0000 ZIwX5lI2jE [info] internal version: 27.1.4.1
2023-12-19T10:38:35+0000 ZIwX5lI2jE [info] updateURL: https://updates.nextcloud.com/updater_server/?version=27x1x4x1xxxstablexx2023-11-23T17%3A54%3A42%2B00%3A00+2668bd0cd54784b8464b15b23ea7b7336ee1bdc3x8x1x18
2023-12-19T10:38:35+0000 ZIwX5lI2jE [info] getUpdateServerResponse response: Array
(
    [version] => 27.1.5.1
    [versionstring] => Nextcloud 27.1.5
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.5.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.5
    [autoupdater] => 1
    [eol] => 0
    [signature] => 1F9XxI67a9hARF50mL3YYax6+Takd1EU0R6mOAm5EYB7EbzdKqbQCzFhObX1jwcn
OB4S+68ZtcHhSngWz429nMHWt/dN4zFZjFv1b49Fa/3T2LGFfG6fju/VznTM/8n9
bZKfvQdpdUB9ilAzkdXZuKLl4niK/WEhL2xWY2ZV4sT9DkOFtVFNig2cPEL1rrw9
I6xqffV3bwlH5zI9hqJ1sPk63v/3mjgqDorqPTM8irHXNqQzbh1VdmeHz/Af/ncj
9J0xDa5AoDtEc1E/mW20em3adiHIMnMmmYg5XvwISKuKRsPP22f9M67kQYR8tedJ
SQf15rCZIxeaqll1lJMrMA==
)

2023-12-19T10:38:35+0000 ZIwX5lI2jE [info] checkForUpdate() Array
(
    [version] => 27.1.5.1
    [versionstring] => Nextcloud 27.1.5
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.5.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.5
    [autoupdater] => 1
    [eol] => 0
    [signature] => 1F9XxI67a9hARF50mL3YYax6+Takd1EU0R6mOAm5EYB7EbzdKqbQCzFhObX1jwcn
OB4S+68ZtcHhSngWz429nMHWt/dN4zFZjFv1b49Fa/3T2LGFfG6fju/VznTM/8n9
bZKfvQdpdUB9ilAzkdXZuKLl4niK/WEhL2xWY2ZV4sT9DkOFtVFNig2cPEL1rrw9
I6xqffV3bwlH5zI9hqJ1sPk63v/3mjgqDorqPTM8irHXNqQzbh1VdmeHz/Af/ncj
9J0xDa5AoDtEc1E/mW20em3adiHIMnMmmYg5XvwISKuKRsPP22f9M67kQYR8tedJ
SQf15rCZIxeaqll1lJMrMA==
)

2023-12-19T10:38:35+0000 ZIwX5lI2jE [info] getChangelogURL()
2023-12-19T10:38:35+0000 ZIwX5lI2jE [info] end of checkForUpdate() Update to Nextcloud 27.1.5 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.5.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#27-1-5" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2023-12-19T10:38:38+0000 jZ8Wu1kIC1 [info] request to updater
2023-12-19T10:38:38+0000 jZ8Wu1kIC1 [info] currentStep()
2023-12-19T10:38:38+0000 jZ8Wu1kIC1 [info] POST request for step "1"
2023-12-19T10:38:38+0000 jZ8Wu1kIC1 [info] startStep("1")
2023-12-19T10:38:38+0000 jZ8Wu1kIC1 [info] checkForExpectedFilesAndFolders()
2023-12-19T10:38:38+0000 jZ8Wu1kIC1 [info] end of checkForExpectedFilesAndFolders()
2023-12-19T10:38:38+0000 jZ8Wu1kIC1 [info] endStep("1")
2023-12-19T10:38:38+0000 ktWmJ3pSkP [info] request to updater
2023-12-19T10:38:38+0000 ktWmJ3pSkP [info] currentStep()
2023-12-19T10:38:38+0000 ktWmJ3pSkP [info] Step 1 is in state "end".
2023-12-19T10:38:38+0000 ktWmJ3pSkP [info] POST request for step "2"
2023-12-19T10:38:38+0000 ktWmJ3pSkP [info] startStep("2")
2023-12-19T10:38:38+0000 ktWmJ3pSkP [info] checkWritePermissions()
2023-12-19T10:38:38+0000 ktWmJ3pSkP [info] end of checkWritePermissions()
2023-12-19T10:38:38+0000 ktWmJ3pSkP [info] endStep("2")
2023-12-19T10:38:38+0000 qwhO5gIzs6 [info] request to updater
2023-12-19T10:38:38+0000 qwhO5gIzs6 [info] currentStep()
2023-12-19T10:38:38+0000 qwhO5gIzs6 [info] Step 2 is in state "end".
2023-12-19T10:38:38+0000 qwhO5gIzs6 [info] POST request for step "3"
2023-12-19T10:38:38+0000 qwhO5gIzs6 [info] startStep("3")
2023-12-19T10:38:38+0000 qwhO5gIzs6 [info] createBackup()
2023-12-19T10:38:38+0000 qwhO5gIzs6 [info] backup folder location: /REDACTED/k-m-a-c.org/public_html/nextcloud/updater-ocpsu2182mjj/backups/nextcloud-27.1.4.1-1702982318/
2023-12-19T10:42:18+0000 p5kHKk2v1T [info] request to updater
2023-12-19T10:42:18+0000 p5kHKk2v1T [info] currentStep()
2023-12-19T10:42:18+0000 p5kHKk2v1T [info] Step 3 is in state "start".

If I click on the try again button I get this
image