Docker upgrade 32.0.1-fpm to 33.0.0-fpm failed

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 33
  • Operating system and version (e.g., Ubuntu 24.04):
    • Docker 28
  • Web server and version (e.g, Apache 2.4.25):
    • fpm
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • caddy 2
  • PHP version (e.g, 8.3):
    • 8.4
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Just after update
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Docker compose
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

Just update nextcloud, like normally

  1. Change version number on docker-compose file
  2. compose up to get new version
  3. Wait for stop updating
  4. Manually launch occ
    1. db:add-missing-columns
    2. db:add-missing-indices
    3. db:add-missing-primary-keys
    4. maintenance:repair --include-expensive

And go to my nextcloud URL => 502 error. I check caddy log => 502

I try to go on my nextcloud container via bypass caddy, always 502 error. And no errors, or hint, in nextcloud log.

Log entries

Nextcloud

nextcloud       | Configuring Redis as session handler
nextcloud       | => Searching for hook scripts (*.sh) to run, located in the folder "/docker-entrypoint-hooks.d/before-starting"
nextcloud       | ==> Skipped: the "before-starting" folder is empty (or does not exist)
nextcloud       | [17-Mar-2026 12:55:21] NOTICE: fpm is running, pid 1
nextcloud       | [17-Mar-2026 12:55:21] NOTICE: ready to handle connections

Web server / Reverse Proxy

Caddy container log

{
	"level": "error",
	"ts": 1773747287.3833458,
	"logger": "http.log.access.log0",
	"msg": "handled request",
	...
	"status": 502,
}

Configuration

Nextcloud

The output of occ config:list system

{
    "system": {
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "my-nextcloud.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "33.0.0.16",
        "overwrite.cli.url": "https:\/\/box.digitaly.io",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "theme": "",
        "loglevel": 0,
        "maintenance": false,
        "app_install_overwrite": [
            "previewgenerator",
            "passman"
        ],
        "upgrade.disable-web": true
    }
}

Apps

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

Enabled:
  - bruteforcesettings: 6.0.0-dev.0
  - circles: 33.0.0
  - cloud_federation_api: 1.17.0
  - contactsinteraction: 1.14.1
  - dav: 1.36.0
  - federatedfilesharing: 1.23.0
  - files: 2.5.0
  - files_downloadlimit: 5.1.0-dev.0
  - files_pdfviewer: 6.0.0-dev.0
  - files_reminders: 1.6.0
  - files_sharing: 1.25.2
  - files_trashbin: 1.23.0
  - files_versions: 1.26.0
  - firstrunwizard: 6.0.0-dev.0
  - logreader: 6.0.0
  - lookup_server_connector: 1.21.0
  - notifications: 6.0.0
  - oauth2: 1.21.0
  - passman: 2.4.12
  - password_policy: 5.0.0-dev.0
  - previewgenerator: 5.13.0
  - privacy: 5.0.0-dev.0
  - profile: 1.2.0
  - provisioning_api: 1.23.0
  - related_resources: 4.0.0-dev.0
  - settings: 1.16.0
  - text: 7.0.0-dev.3
  - theming: 2.8.0
  - twofactor_backupcodes: 1.22.0
  - twofactor_totp: 15.0.0-dev.0
  - updatenotification: 1.23.0
  - viewer: 6.0.0-dev.0
  - webhook_listeners: 1.5.0
  - workflowengine: 2.15.0
Disabled:
  - activity: 6.0.0-dev.0 (installed 2.14.3)
  - admin_audit: 1.23.0
  - app_api: 33.0.0 (installed 32.0.0)
  - comments: 1.23.0 (installed 1.11.0)
  - dashboard: 7.13.0 (installed 7.1.0)
  - encryption: 2.21.0
  - federation: 1.23.0 (installed 1.11.0)
  - files_external: 1.25.1
  - files_rightclick: 0.15.1 (installed 1.6.0)
  - nextcloud_announcements: 5.0.0 (installed 1.10.0)
  - photos: 6.0.0-dev.0 (installed 1.3.0)
  - recommendations: 6.0.0-dev.0 (installed 1.0.0)
  - serverinfo: 5.0.0-dev.0 (installed 1.11.0)
  - sharebymail: 1.23.0 (installed 1.11.0)
  - support: 5.0.0 (installed 1.4.0)
  - survey_client: 5.0.0-dev.0 (installed 1.9.0)
  - suspicious_login: 11.0.0-dev.0
  - systemtags: 1.23.0 (installed 1.11.0)
  - twofactor_nextcloud_notification: 7.0.0
  - user_ldap: 1.24.0
  - user_status: 1.13.0 (installed 1.1.1)
  - weather_status: 1.13.0 (installed 1.1.0)

Post your Compose file.