The Basics
- Nextcloud Server version (e.g., 29.x.x):
31.0.11
- Operating system and version (e.g., Ubuntu 24.04):
k8s talos
- Web server and version (e.g, Apache 2.4.25):
Apache
- Reverse proxy and version _(e.g. nginx 1.27.2)
Bunkerweb
- PHP version (e.g, 8.3):
docker image version
- Is this the first time you’ve seen this error? (Yes / No):
Yes
- When did this problem seem to first start?
08/12/2025
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
Kubernetes community helm chart
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
yes
Summary of the issue you are facing:
Hello,
I am encountering an issue when attempting to update Nextcloud from version 31.0.11 to version 32.0.2. The following error appears: “UnexpectedValueException: The files of the app “files” were not correctly replaced before running the update.”
I am using Nextcloud in a K8S cluster, so I simply changed the tag version in my helm values file.
Does anyone have any ideas on how to resolve this issue?
Thank you for your help!
Steps to replicate it:
-
Change the tag in the values.yaml file
-
Apply with
helm upgrade --install nextcloud nextcloud/nextcloud -f values.yaml -n nextcloud
Log entries
Nextcloud
Defaulted container "nextcloud" out of: nextcloud, nextcloud-cron
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Updating database schema
Updated database
UnexpectedValueException: The files of the app "files" were not correctly replaced before running the update
Update failed
Maintenance mode is kept active
Resetting log level
command terminated with exit code 5
Configuration
Nextcloud
{
"system": {
"htaccess.RewriteBase": "\/",
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"maintenance_window_start": 1,
"memcache.local": "\\OC\\Memcache\\APCu",
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"forwarded_for_headers": [
"HTTP_X_FORWARDED_FOR"
],
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379
},
"mail_smtpmode": "smtp",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "587",
"mail_smtpauthtype": "LOGIN",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"upgrade.disable-web": true,
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
"cloud.****.ovh",
"office.****.ovh"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "pgsql",
"version": "31.0.11.2",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"maintenance": true,
"loglevel": 0,
"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",
"allow_local_remote_servers": true,
"app_install_overwrite": [],
"preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
"enable_previews": true,
"enabledPreviewProviders": [
"OC\\Preview\\Movie",
"OC\\Preview\\PNG",
"OC\\Preview\\JPEG",
"OC\\Preview\\GIF",
"OC\\Preview\\BMP",
"OC\\Preview\\XBitmap",
"OC\\Preview\\MP3",
"OC\\Preview\\MP4",
"OC\\Preview\\TXT",
"OC\\Preview\\MarkDown",
"OC\\Preview\\PDF",
"OC\\Preview\\TIFF",
"OC\\Preview\\HEIC",
"OC\\Preview\\Movie",
"OC\\Preview\\MKV",
"OC\\Preview\\MP4",
"OC\\Preview\\AVI",
"OC\\Preview\\Image"
],
"overwriteprotocol": "https",
"overwrite.cli.url": "https:\/\/cloud.***.ovh",
"default_phone_region": "FR",
"filesystem_check_changes": 1,
"preview_max_x": 256,
"preview_max_y ": 256,
"preview_max_memory": 1024,
"preview_max_filesize_image": 256,
"mail_sendmailmode": "smtp",
"mail_smtpauth": true,
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"mail_smtpsecure": "tls"
}
}
Apps
Enabled:
- activity: 4.0.0
- app_api: 5.0.2
- calendar: 5.5.9
- circles: 31.0.0
- cloud_federation_api: 1.14.0
- comments: 1.21.0
- contacts: 7.3.7
- contactsinteraction: 1.12.1
- cospend: 3.1.6
- dashboard: 7.11.0
- dav: 1.33.0
- deck: 1.15.5
- facerecognition: 0.9.70
- federatedfilesharing: 1.21.0
- federation: 1.21.0
- files: 2.3.1
- files_automatedtagging: 2.0.1
- files_downloadlimit: 4.0.0
- files_pdfviewer: 4.0.0
- files_reminders: 1.4.0
- files_retention: 2.0.1
- files_sharing: 1.23.2
- files_trashbin: 1.21.0
- files_versions: 1.24.0
- files_zip: 2.2.0
- firstrunwizard: 4.0.0
- logreader: 4.0.0
- lookup_server_connector: 1.19.0
- memories: 7.7.0
- nextcloud_announcements: 3.0.0
- notes: 4.12.4
- notifications: 4.0.0
- oauth2: 1.19.1
- phonetrack: 0.9.1
- photos: 4.0.0
- previewgenerator: 5.11.0
- privacy: 3.0.0
- profile: 1.0.0
- provisioning_api: 1.21.0
- qownnotesapi: 25.8.0
- recommendations: 4.0.0
- related_resources: 2.0.0
- richdocuments: 8.7.7
- serverinfo: 3.0.0
- settings: 1.14.0
- sharebymail: 1.21.0
- support: 3.0.0
- systemtags: 1.21.1
- tasks: 0.17.1
- text: 5.0.2
- theming: 2.6.1
- twofactor_backupcodes: 1.20.0
- twofactor_totp: 13.0.0-dev.0
- updatenotification: 1.21.0
- user_oidc: 8.1.0
- user_status: 1.11.0
- viewer: 4.0.0
- weather_status: 1.11.0
- workflowengine: 2.13.0
Disabled:
- admin_audit: 1.22.0 (installed 1.19.0)
- bruteforcesettings: 5.0.0-dev.0 (installed 2.3.0)
- cookbook: 0.11.5 (installed 0.11.5)
- csp_editor: 1.8.0 (installed 1.8.0)
- documentserver_community: 0.2.1 (installed 0.2.0)
- encryption: 2.20.0
- files_external: 1.24.0 (installed 1.9.0)
- password_policy: 4.0.0-dev.0 (installed 1.9.1)
- survey_client: 4.0.0-dev.0 (installed 1.7.0)
- suspicious_login: 10.0.0-dev.0
- twofactor_nextcloud_notification: 5.0.0 (installed 2.3.0)
- user_ldap: 1.22.0
- webhook_listeners: 1.2.0 (installed 1.1.0-dev)
- whiteboard: 1.4.0 (installed 1.4.0)