Update fails for Nextcloud Hub 10 (31.0.12)

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

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):
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04
  • Web server and version (e.g, Apache 2.4.25):
    • replace me
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx/1.18.0 (Ubuntu)
  • PHP version (e.g, 8.3):
    • 8.3
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • 6 april
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • replace me
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

Frontend displays a new version available 31.0.14.

When I try to update with command sudo -u www-data php /var/www/httpdocs/updater/updater.phar no updates are available.

What should I do to update the system?

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

  1. set nextcloud on maintenance after making backups

  2. execute sudo -u www-data php /var/www/httpdocs/updater/updater.phar

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

PASTE HERE

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

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

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

why don’t you try updating via frontend?
if it fails pls let us know why. Maybe there are even some entries in the error/nextcloud log. pls provide those

I’ve done this a few years ago, but the connection timed out and I had to reinstall everything. The system has dozens of users. Is this a safe procedure? Where do I need to make changes to increase the timeout? I use Nginx as my web server—do I need to configure the timeout there?

Alternatively, is it okay to download the zip file containing the update and install it manually?

Please provide your config as requested in the support template.

Also please see the Upgrader: Troubleshooting section of the Admin Manual. Your updater.log may have some clues about what is going on.

Sorry for the delay of my response. These are configuration details:

Nextcloud Server version (e.g., 29.x.x): 31.0.12.3
Operating system and version (e.g., Ubuntu 24.04): Ubuntu 22.04.5 LTS
Web server and version (e.g, Apache 2.4.25): nginx/1.18.0 (Ubuntu)
Reverse proxy and version _(e.g. nginx 1.27.2): no
PHP version (e.g, 8.3): php8.3
Is this the first time you’ve seen this error? (Yes / No): yes
When did this problem seem to first start? when tried to update on 6/april/26
Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.): Scaleway VM
Are you using Cloudflare, mod_security, or similar? (Yes / No): no

updater.log:

2025-12-28T09:08:25+0000 bBzf4wcyrO [info] endStep(“12”)
2025-12-28T09:08:25+0000 bBzf4wcyrO [info] update of code successful.
2025-12-28T09:09:07+0000 bBzf4wcyrO [info] maintenance mode is disabled - return code: 0
2026-04-06T08:02:09+0000 lKik0IWzu8 [info] updater cli is executed
2026-04-06T08:02:09+0000 lKik0IWzu8 [info] currentStep()
2026-04-06T08:02:09+0000 lKik0IWzu8 [info] current version: 31.0.12 build time: 2025-12-11T09:16:29+00:00 6b72bb307e91390c6efe4072b2829bbd1028651c
2026-04-06T08:02:09+0000 lKik0IWzu8 [info] getUpdateServerResponse()
2026-04-06T08:02:09+0000 lKik0IWzu8 [info] updaterServer: https://updates.nextcloud.com/updater_server/
2026-04-06T08:02:09+0000 lKik0IWzu8 [info] releaseChannel: stable
2026-04-06T08:02:09+0000 lKik0IWzu8 [info] internal version: 31.0.12.3
2026-04-06T08:02:09+0000 lKik0IWzu8 [info] updateURL: https://updates.nextcloud.com/updater_server/?version=31x0x12x3xxxstablexx2025-12-11T09%3A16%3A29%2B00%3A00+6b72bb307e91390c6efe4072b2829bbd1028651cx8x3x28
2026-04-06T08:02:10+0000 lKik0IWzu8 [info] checkForUpdate() Array
(
)

./occ config:list system
{
“system”: {
“instanceid”: “REMOVED SENSITIVE VALUE”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“datadirectory”: “REMOVED SENSITIVE VALUE”,
“dbtype”: “mysql”,
“version”: “31.0.12.3”,
“dbname”: “REMOVED SENSITIVE VALUE”,
“dbhost”: “REMOVED SENSITIVE VALUE”,
“dbtableprefix”: “oc_”,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“installed”: true,
“theme”: “”,
“mail_smtpmode”: “smtp”,
“mail_smtphost”: “REMOVED SENSITIVE VALUE”,
“mail_smtpport”: “587”,
“mail_smtpauth”: 1,
“mail_smtpauthtype”: “LOGIN”,
“mail_smtpname”: “REMOVED SENSITIVE VALUE”,
“mail_smtppassword”: “REMOVED SENSITIVE VALUE”,
“maintenance”: false,
“trusted_domains”: [
“www.acme.online”
],
“loglevel”: 3,
“mail_from_address”: “REMOVED SENSITIVE VALUE”,
“mail_domain”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“appstore.experimental.enabled”: false,
“mail_smtpsecure”: “tls”,
“trashbin_retention_obligation”: “auto”,
“overwrite.cli.url”: “https://www.acme.online”,
“mysql.utf8mb4”: true,
“memcache.local”: “\OC\Memcache\APCu”,
“updater.release.channel”: “stable”,
“encryption.legacy_format_support”: false,
“encryption.key_storage_migrated”: false,
“app_install_overwrite”: [
“sharepermissions”
]
}
}

Thanks.

Regards