Upgrade to 31.0.3 failed

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:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.9
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 12.10
  • Web server and version (e.g, Apache 2.4.25):
    • Nginx 1.22.1
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Nginx 1.22.1
  • PHP version (e.g, 8.3):
    • PHP 8.2
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • during update
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • ? RasPi w/ DietPi, web updater
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

Error during upgrade.

Steps to replicate it (hint: details matter!):

  1. click on web updater button
  2. wait

Log entries

Sigh. In the “Delete old files” step, the updater reports “504 Gateway Time-out”. The problem is the same as what I’ve run into a few times before: a Raspberry Pi 4 with SSD takes more time to upgrade than some of the web scripts are willing to wait. Probably because the www area is over 840 MB …

Would it be an idea to omit the .map files from releases on the “Stable” channel? They are massive and serve no purpose in a production setting.

I’ve reverted - yet again - to a backup, i.e. 30.0.9 for now.

For completeness, the updater log up to when it failed:

2025-04-12T09:48:15+0000 57z0LAw9tX [info] storage location: /mnt/dietpi_userdata/nextcloud_data/updater-ocwmoi7mbwzu/downloads/
2025-04-12T09:48:18+0000 57z0LAw9tX [info] end of verifyIntegrity()
2025-04-12T09:48:18+0000 57z0LAw9tX [info] endStep("5")
2025-04-12T09:48:18+0000 BKQwUMSozc [info] request to updater
2025-04-12T09:48:18+0000 BKQwUMSozc [info] currentStep()
2025-04-12T09:48:18+0000 BKQwUMSozc [info] Step 5 is in state "end".
2025-04-12T09:48:18+0000 BKQwUMSozc [info] POST request for step "6"
2025-04-12T09:48:18+0000 BKQwUMSozc [info] startStep("6")
2025-04-12T09:48:18+0000 BKQwUMSozc [info] extractDownload()
2025-04-12T09:48:18+0000 BKQwUMSozc [info] storage location: /mnt/dietpi_userdata/nextcloud_data/updater-ocwmoi7mbwzu/downloads/
2025-04-12T09:48:18+0000 BKQwUMSozc [info] Libzip version detected: 1.7.3
2025-04-12T09:48:43+0000 BKQwUMSozc [info] end of extractDownload()
2025-04-12T09:48:43+0000 BKQwUMSozc [info] endStep("6")
2025-04-12T09:48:43+0000 OtYQc77oC4 [info] request to updater
2025-04-12T09:48:43+0000 OtYQc77oC4 [info] currentStep()
2025-04-12T09:48:43+0000 OtYQc77oC4 [info] Step 6 is in state "end".
2025-04-12T09:48:43+0000 OtYQc77oC4 [info] POST request for step "7"
2025-04-12T09:48:43+0000 OtYQc77oC4 [info] startStep("7")
2025-04-12T09:48:43+0000 OtYQc77oC4 [info] setMaintenanceMode("true")
2025-04-12T09:48:43+0000 OtYQc77oC4 [info] configFileName /var/www/nextcloud/updater/../config/config.php
2025-04-12T09:48:43+0000 OtYQc77oC4 [info] end of setMaintenanceMode()
2025-04-12T09:48:43+0000 OtYQc77oC4 [info] endStep("7")
2025-04-12T09:48:43+0000 oqhWb6O5UT [info] request to updater
2025-04-12T09:48:43+0000 oqhWb6O5UT [info] currentStep()
2025-04-12T09:48:43+0000 oqhWb6O5UT [info] Step 7 is in state "end".
2025-04-12T09:48:43+0000 oqhWb6O5UT [info] POST request for step "8"
2025-04-12T09:48:43+0000 oqhWb6O5UT [info] startStep("8")
2025-04-12T09:48:43+0000 oqhWb6O5UT [info] replaceEntryPoints()
2025-04-12T09:48:43+0000 oqhWb6O5UT [info] replace index.php
2025-04-12T09:48:43+0000 oqhWb6O5UT [info] replace status.php
2025-04-12T09:48:43+0000 oqhWb6O5UT [info] replace remote.php
2025-04-12T09:48:43+0000 oqhWb6O5UT [info] replace public.php
2025-04-12T09:48:43+0000 oqhWb6O5UT [info] replace ocs/v1.php
2025-04-12T09:48:43+0000 oqhWb6O5UT [info] replace ocs/v2.php
2025-04-12T09:48:44+0000 oqhWb6O5UT [info] end of replaceEntryPoints()
2025-04-12T09:48:44+0000 oqhWb6O5UT [info] endStep("8")
2025-04-12T09:48:44+0000 uPfcG0xyoT [info] request to updater
2025-04-12T09:48:44+0000 uPfcG0xyoT [info] currentStep()
2025-04-12T09:48:44+0000 uPfcG0xyoT [info] Step 8 is in state "end".
2025-04-12T09:48:44+0000 uPfcG0xyoT [info] POST request for step "9"
2025-04-12T09:48:44+0000 uPfcG0xyoT [info] startStep("9")
2025-04-12T09:48:44+0000 uPfcG0xyoT [info] deleteOldFiles()
2025-04-12T09:49:55+0000 uPfcG0xyoT [info] config sample exists
2025-04-12T09:49:55+0000 uPfcG0xyoT [info] themes README exists
2025-04-12T09:49:59+0000 uPfcG0xyoT [info] end of deleteOldFiles()
2025-04-12T09:49:59+0000 uPfcG0xyoT [info] endStep("9")
2025-04-12T10:01:29+0000 I4UCQ1Jaj5 [info] request to updater
2025-04-12T10:01:29+0000 I4UCQ1Jaj5 [info] currentStep()
2025-04-12T10:01:29+0000 I4UCQ1Jaj5 [info] Step 9 is in state "end".
2025-04-12T10:01:29+0000 I4UCQ1Jaj5 [info] POST request for step "9"
2025-04-12T10:01:29+0000 I4UCQ1Jaj5 [info] startStep("9")
2025-04-12T10:01:29+0000 I4UCQ1Jaj5 [info] deleteOldFiles()
2025-04-12T10:01:29+0000 I4UCQ1Jaj5 [error] POST request failed with other exception
2025-04-12T10:01:29+0000 I4UCQ1Jaj5 [error] Exception: Exception
Message: core/shipped.json is not available
Code:0
Trace:
#0 /var/www/nextcloud/updater/index.php(1372): Updater->deleteOldFiles()
#1 {main}
File:/var/www/nextcloud/updater/index.php
Line:879

2025-04-12T10:01:29+0000 I4UCQ1Jaj5 [info] rollbackChanges("9")
2025-04-12T10:01:29+0000 I4UCQ1Jaj5 [info] unlink .step
2025-04-12T10:01:29+0000 I4UCQ1Jaj5 [info] rollbackChanges - step >= 7
2025-04-12T10:01:29+0000 I4UCQ1Jaj5 [info] end of  rollbackChanges()

If timeout is an issue, it might be better to use the commandline updater: Upgrade via built-in updater — Nextcloud latest Administration Manual latest documentation

1 Like

Thanks, the cmdline version worked: sudo -u www-data php /var/www/nextcloud/updater/updater.phar

I do get some warnings on the admin page, but those may not be related:

One or more mimetype migrations are available. Occasionally new mimetypes are added to better handle certain file types. Migrating the mimetypes take a long time on larger instances so this is not done automatically during upgrades. Use the command `occ maintenance:repair --include-expensive` to perform the migrations.
Detected some missing optional indices. Occasionally new indices are added (by Nextcloud or installed applications) to improve database performance. Adding indices can sometimes take awhile and temporarily hurt performance so this is not done automatically during upgrades. Once the indices are added, queries to those tables should be faster. Use the command `occ db:add-missing-indices` to add them. Missing indices: "systag_objecttype" in table "systemtag_object_mapping" For more details see the documentation ↗.
Incorrect row format found in your database. ROW_FORMAT=Dynamic offers the best database performances for Nextcloud. Please update row format on the following list: oc_accounts, oc_accounts_data, oc_activity, [...]

The first two issues were fixed with:

sudo -u www-data php occ maintenance:repair --include-expensive
sudo -u www-data php occ db:add-missing-indices

The last one: no idea. Doesn’t look like a show-stopper.

Anyway, thanks - I guess I’ll have to use the cmdline updater from now on.

There are a few topics about that here on help.nextcloud.com. In the end, as you said, not a showstopper per se :slight_smile:

This post appears to address it - but I’d rather wait for an upgrade which will hopefully do it for me. My DB admin skills are non-existent.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.