Unable to complete nextcloud update - failed on back up

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 (eg, 20.0.5): Nextcloud Hub 7 (28.0.2)
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04.4 LTS
Apache or nginx version (eg, Apache 2.4.25): 2.4.52-1ubuntu4.7
PHP version (eg, 7.4): 8.3.3

The issue you are facing:
Performing an application update of Nextcloud Hub using the updater, i am failing on the creating backup tasks

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

Steps to replicate it:

  1. Perform an update using the updater

The output of your Nextcloud log in Admin > Logging:

Nothing in the logs

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

PASTE HERE

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

started at /var/www/nc.networkingtitan.com/apps/richdocumentscode/proxy.php:219) in /var/www/nc.networkingtitan.com/apps/richdo
[Thu Feb 29 14:15:38.234230 2024] [php:warn] [pid 2495377] [client 192.168.15.1:9362] PHP Warning:  http_response_code(): Cannrted at /var/www/nc.networkingtitan.com/apps/richdocumentscode/proxy.php:219) in 

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.


What’s the actual error message? Check your updater.log file for clues.

The log file doesnt show an issue


2024-02-29T17:10:05-0500 RPuxDW5lV2 [info] getChangelogURL()
2024-02-29T17:10:05-0500 RPuxDW5lV2 [info] end of checkForUpdate() Update to Nextcloud 28.0.3 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-28.0.3.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#28-0-3" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2024-02-29T17:10:07-0500 eDt6EQWHYr [info] request to updater
2024-02-29T17:10:07-0500 eDt6EQWHYr [info] currentStep()
2024-02-29T17:10:07-0500 eDt6EQWHYr [info] POST request for step "1"
2024-02-29T17:10:07-0500 eDt6EQWHYr [info] startStep("1")
2024-02-29T17:10:08-0500 eDt6EQWHYr [info] checkForExpectedFilesAndFolders()
2024-02-29T17:10:08-0500 eDt6EQWHYr [info] end of checkForExpectedFilesAndFolders()
2024-02-29T17:10:08-0500 eDt6EQWHYr [info] endStep("1")
2024-02-29T17:10:08-0500 LZgsMxvesI [info] request to updater
2024-02-29T17:10:08-0500 LZgsMxvesI [info] currentStep()
2024-02-29T17:10:08-0500 LZgsMxvesI [info] Step 1 is in state "end".
2024-02-29T17:10:08-0500 LZgsMxvesI [info] POST request for step "2"
2024-02-29T17:10:08-0500 LZgsMxvesI [info] startStep("2")
2024-02-29T17:10:08-0500 LZgsMxvesI [info] checkWritePermissions()
2024-02-29T17:10:08-0500 LZgsMxvesI [info] end of checkWritePermissions()
2024-02-29T17:10:08-0500 LZgsMxvesI [info] endStep("2")
2024-02-29T17:10:08-0500 BEaPyQgvvb [info] request to updater
2024-02-29T17:10:08-0500 BEaPyQgvvb [info] currentStep()
2024-02-29T17:10:08-0500 BEaPyQgvvb [info] Step 2 is in state "end".
2024-02-29T17:10:08-0500 BEaPyQgvvb [info] POST request for step "3"
2024-02-29T17:10:08-0500 BEaPyQgvvb [info] startStep("3")
2024-02-29T17:10:08-0500 BEaPyQgvvb [info] createBackup()
2024-02-29T17:10:08-0500 BEaPyQgvvb [info] backup folder location: /mnt/nextcloud_data/updater-ocmbkxzjtpa4/backups/nextcloud-28.0.2.5-1709244608/
2024-02-29T17:14:55-0500 dFcSHuwsxJ [info] end of createBackup()
2024-02-29T17:14:55-0500 dFcSHuwsxJ [info] endStep("3")

But on the frotend the error message shown on why it failed is this

Create backup
Parsing response failed.
Show detailed response
<html><body><h1>504 Gateway Time-out</h1>
The server didn't respond in time.
</body></html>

Please use the command line updater.

sudo -u www-data php /path/to/nextcloud/updater/updater.phar

documentation

1 Like

Seems to be stuck on Extracting… Its been like this for over 30 minutes.


Continue update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[ ] Extracting ...

Have you updated a file and left the previous version? Have you checked the update log in data folder?