The Basics
- Nextcloud Server version
32.0.6.1
- Operating system and version
debian trixie (docker image nextcloud:latest)
- Web server and version
apache 2.4.66
- Reverse proxy and version
none, direct connection in private network
- PHP version (e.g, 8.3):
8.3.30
- Is this the first time you’ve seen this error?
Yes
- When did this problem seem to first start?
after docker image update and possible db problem
- Installation method
docker
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
No
Summary of the issue you are facing:
Server is stuck in “Update needed” state after docker image update and possible db problem (I had to change data dir for postgre 18 and it was a mess at some point).
I ran occ upgrade, it goes well but does not change the situation.
I desactivated as many apps as I could.
How can I know what is wrong? What does the nextcloud script compare to say that there is a need for an occ upgrade?
It might be a discrepancy between db and files installed, how can I check that?
Thank you for your help.
Log entries
Nothing relevant in nextcloud.log
» sudo docker exec --user www-data -it nextcloud php occ -vvv upgrade
2026-02-19T10:14:32+00:00 Setting log level to debug
2026-02-19T10:14:32+00:00 Turned on maintenance mode
2026-02-19T10:14:32+00:00 Repair step: Repair MySQL collation
2026-02-19T10:14:32+00:00 Repair info: Not a mysql database -> nothing to do
2026-02-19T10:14:32+00:00 Repair step: Copy data from accounts table when migrating from ownCloud
2026-02-19T10:14:32+00:00 Repair step: Drop account terms table when migrating from ownCloud
2026-02-19T10:14:32+00:00 Updating database schema
2026-02-19T10:14:32+00:00 Updated database
2026-02-19T10:14:32+00:00 Updating <support> ...
2026-02-19T10:14:32+00:00 Repair step: Switches from default updater server to the customer one if a valid subscription is available
2026-02-19T10:14:32+00:00 Repair info: Repair step already executed
2026-02-19T10:14:32+00:00 Repair step: Migrate some config values to lazy loading
2026-02-19T10:14:32+00:00 Updated <support> to 4.0.0
2026-02-19T10:14:33+00:00 Repair step: Repair MySQL collation
2026-02-19T10:14:33+00:00 Repair info: Not a mysql database -> nothing to do
2026-02-19T10:14:33+00:00 Repair step: Clean tags and favorites
2026-02-19T10:14:33+00:00 Repair info: 0 tags of deleted users have been removed.
2026-02-19T10:14:33+00:00 Repair info: 0 tags for delete files have been removed.
2026-02-19T10:14:33+00:00 Repair info: 0 tag entries for deleted tags have been removed.
2026-02-19T10:14:33+00:00 Repair info: 0 tags with no entries have been removed.
2026-02-19T10:14:33+00:00 Repair step: Repair invalid shares
2026-02-19T10:14:33+00:00 Repair step: Move .step file of updater to backup location
2026-02-19T10:14:33+00:00 Repair step: Add move avatar background job
2026-02-19T10:14:33+00:00 Repair info: Repair step already executed
2026-02-19T10:14:33+00:00 Repair step: Add preview cleanup background jobs
2026-02-19T10:14:33+00:00 Repair step: Migrate oc_properties table to nextcloud schema
2026-02-19T10:14:33+00:00 Repair info: oc_properties table does not exist.
2026-02-19T10:14:33+00:00 Repair step: Migrate oauth2_clients table to nextcloud schema
2026-02-19T10:14:33+00:00 Repair info: Update the oauth2_access_tokens table schema.
2026-02-19T10:14:33+00:00 Repair info: Update the oauth2_clients table schema.
2026-02-19T10:14:33+00:00 Repair info: Delete clients (and their related access tokens) with the redirect_uri starting with oc:// or ending with *
2026-02-19T10:14:33+00:00 Repair step: Repair language codes
2026-02-19T10:14:33+00:00 Repair step: Add log rotate job
2026-02-19T10:14:33+00:00 Repair step: Clear frontend caches
2026-02-19T10:14:33+00:00 Repair info: Image cache cleared
2026-02-19T10:14:33+00:00 Repair info: JS cache cleared
2026-02-19T10:14:33+00:00 Repair step: Clear every generated avatar
2026-02-19T10:14:33+00:00 Repair step: Add preview background cleanup job
2026-02-19T10:14:33+00:00 Repair step: Queue a one-time job to cleanup old backups of the updater
2026-02-19T10:14:33+00:00 Repair step: Cleanup invalid photocache files for carddav
2026-02-19T10:14:33+00:00 Repair step: Add background job to cleanup login flow v2 tokens
2026-02-19T10:14:33+00:00 Repair step: Remove potentially over exposing share links
2026-02-19T10:14:33+00:00 Repair info: No need to remove link shares.
2026-02-19T10:14:33+00:00 Repair step: Clear access cache of projects
2026-02-19T10:14:33+00:00 Repair step: Reset generated avatar flag
2026-02-19T10:14:33+00:00 Repair step: Keep legacy encryption enabled
2026-02-19T10:14:33+00:00 Repair step: Check encryption key format
2026-02-19T10:14:33+00:00 Repair step: Remove old dashboard app config data
2026-02-19T10:14:33+00:00 Repair step: Add job to cleanup the bruteforce entries
2026-02-19T10:14:33+00:00 Repair step: Queue a one-time job to check for user uploaded certificates
2026-02-19T10:14:33+00:00 Repair step: Repair DAV shares
2026-02-19T10:14:33+00:00 Repair step: Add background job to set the lookup server share state for users
2026-02-19T10:14:33+00:00 Repair step: Add token cleanup job
2026-02-19T10:14:33+00:00 Repair step: Clean up abandoned apps
2026-02-19T10:14:33+00:00 Repair step: Add possibly missing system config
2026-02-19T10:14:33+00:00 Repair step: Add AI tasks cleanup jobs
2026-02-19T10:14:33+00:00 Repair step: Queue a job to generate metadata
2026-02-19T10:14:33+00:00 Repair step: Cache logo dimension to fix size in emails on Outlook
2026-02-19T10:14:33+00:00 Repair info: Theming is not used to provide a logo
2026-02-19T10:14:33+00:00 Repair step: Remove legacy ".ocdata" file
2026-02-19T10:14:33+00:00 Repair step: Add cleanup-deleted-users background job
2026-02-19T10:14:33+00:00 Repair step: Validate account properties and store phone numbers in a known format for search
2026-02-19T10:14:33+00:00 Repair info: Queued background to validate account properties.
2026-02-19T10:14:33+00:00 Repair step: Migrate config keys
2026-02-19T10:14:33+00:00 Starting code integrity check...
2026-02-19T10:14:45+00:00 Finished code integrity check
2026-02-19T10:14:45+00:00 Update successful
2026-02-19T10:14:45+00:00 Turned off maintenance mode
2026-02-19T10:14:45+00:00 Resetting log level
Configuration
docker compose
services:
db:
image: postgres:latest
container_name: nextcloud_db
restart: always
volumes:
- ./nextcloud-db:/var/lib/postgresql
environment:
- POSTGRES_PASSWORD=***************
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
redis:
image: redis
container_name: nextcloud_redis
restart: always
app:
image: nextcloud:latest
container_name: nextcloud
restart: always
ports:
- 8080:80
depends_on:
- redis
- db
volumes:
- ./nextcloud:/var/www/html
environment:
- POSTGRES_PASSWORD=****************
- POSTGRES_DATABASE=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_HOST=db
- PHP_MEMORY_LIMIT=2048M
- PHP_UPLOAD_LIMIT=1024M
cron:
container_name: nextcloud_cron
depends_on:
- db
- redis
- app
image: nextcloud
restart: unless-stopped
volumes:
- ./nextcloud:/var/www/html
entrypoint: /cron.sh
imaginary:
container_name: nextcloud_imaginary
image: nextcloud/aio-imaginary:latest
restart: unless-stopped
expose:
- "9000"
depends_on:
- app
environment:
- TZ=Europe/Paris
cap_add:
- SYS_NICE
tmpfs:
- /tmp
Nextcloud
The output of occ config:list system
"system": {
"htaccess.RewriteBase": "\/",
"memcache.local": "\\OC\\Memcache\\APCu",
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"upgrade.disable-web": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"192.168.1.2:8080",
"b3"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "pgsql",
"version": "32.0.6.1",
"overwrite.cli.url": "http:\/\/192.168.1.2:8080",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"maintenance": false,
"memories.db.triggers.fcu": true,
"memories.exiftool": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/exiftool-amd64-glibc",
"memories.vod.path": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/go-vod-amd64",
"app_install_overwrite": [],
"loglevel": 1
}Apps
The output of occ app:list (if possible).
Enabled:
- cloud_federation_api: 1.16.0
- dav: 1.34.2
- federatedfilesharing: 1.22.0
- files: 2.4.0
- files_downloadlimit: 5.0.0-dev.0
- files_external: 1.24.1
- lookup_server_connector: 1.20.0
- oauth2: 1.20.0
- profile: 1.1.0
- provisioning_api: 1.22.0
- settings: 1.15.1
- support: 4.0.0-dev.0
- theming: 2.7.0
- twofactor_backupcodes: 1.21.0
- user_status: 1.12.0
- viewer: 5.0.0
- weather_status: 1.12.0
- webhook_listeners: 1.3.0
- workflowengine: 2.14.0
Disabled:
- activity: 5.0.0 (installed 5.0.0)
- admin_audit: 1.22.0 (installed 1.22.0)
- app_api: 32.0.0 (installed 32.0.0)
- bruteforcesettings: 5.0.0 (installed 5.0.0)
- calendar: 6.2.0 (installed 6.2.0)
- camerarawpreviews: 0.8.8 (installed 0.8.8)
- circles: 32.0.0 (installed 32.0.0)
- comments: 1.22.0 (installed 1.22.0)
- contacts: 8.3.3 (installed 8.3.3)
- contactsinteraction: 1.13.1 (installed 1.13.1)
- dashboard: 7.12.0 (installed 7.11.0)
- encryption: 2.20.0
- federation: 1.22.0 (installed 1.22.0)
- files_pdfviewer: 5.0.0 (installed 5.0.0)
- files_reminders: 1.5.0 (installed 1.5.0)
- files_sharing: 1.24.1 (installed 1.24.1)
- files_trashbin: 1.22.0 (installed 1.22.0)
- files_versions: 1.25.0 (installed 1.25.0)
- firstrunwizard: 5.0.0 (installed 5.0.0)
- forms: 5.2.4 (installed 5.2.4)
- logreader: 5.0.0 (installed 5.0.0)
- memories: 7.8.2 (installed 7.8.2)
- metadata: 0.23.0 (installed 0.23.0)
- music: 2.5.1 (installed 2.5.1)
- news: 27.2.0 (installed 27.2.0)
- nextcloud_announcements: 4.0.0 (installed 4.0.0)
- notes: 4.13.0 (installed 4.13.0)
- notifications: 5.0.0 (installed 5.0.0)
- notify_push: 1.3.0 (installed 1.3.0)
- password_policy: 4.0.0 (installed 4.0.0)
- passwords: 2025.12.21 (installed 2025.12.21)
- photos: 5.0.0 (installed 5.0.0)
- previewgenerator: 5.12.1 (installed 5.12.1)
- privacy: 4.0.0 (installed 4.0.0)
- recognize: 10.0.7 (installed 10.0.7)
- recommendations: 5.0.0 (installed 5.0.0)
- related_resources: 3.0.0 (installed 3.0.0)
- richdocuments: 9.0.2 (installed 9.0.2)
- richdocumentscode: 25.4.901 (installed 25.4.901)
- serverinfo: 4.0.0 (installed 4.0.0)
- sharebymail: 1.22.0 (installed 1.22.0)
- survey_client: 4.0.0 (installed 4.0.0)
- suspicious_login: 10.0.0
- systemtags: 1.22.0 (installed 1.22.0)
- text: 6.0.1 (installed 6.0.1)
- twofactor_nextcloud_notification: 6.0.0
- twofactor_totp: 14.0.0
- updatenotification: 1.22.0 (installed 1.22.0)
- user_ldap: 1.23.0
- whiteboard: 1.5.6 (installed 1.5.6)