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.
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!):
click on web updater button
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.
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, [...]