Can't edit files in Office (NC32 / CODE)

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.0.13
  • Operating system and version (e.g., Ubuntu 24.04):
    • Host : Debian 21.12, Docker 28.5.0
    • Nextcloud container : Linux 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64 (from image nextcloud:fpm 417e972cf8ee)
  • Web server and version (e.g, Apache 2.4.25):
    • nginx 1.23.3 (fpm-cgi) in a docker container
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • same as webserver
  • PHP version (e.g, 8.3):
    • 8.3.26
  • Is this the first time you’ve seen this error? (Yes / No):
    • No, it sometimes happen after an update, usually sorted by restarting the container and refreshing page in the browser (with cache clear)
      sometimes the docs won’t edit, they are downloaded straight away,
  • When did this problem seem to first start?
    • right after the upgrade
  • 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:

As stated in the question, after upgrading to Nextcloud 32, I can’t edit any doc (.od*) in Nextcloud Office (using embedded CODE server version 25.04.5.4). It worked just fine prior to the upgrade.

Editing md and txt files work fine, as well as other files (drawIO)

There are no errors in the logs. I just get a message in the browser that says :

Failed to load the document

Unable to load Nextcloud Office - Please try again later

(it might not be the exact message in English, I’m translating from French)

I haven’t setup a deploy daemon '(as recommended with NC32) as I don’t have any ExApp installed, and I don’t have a high performance server setup for Talk either, as I don’t have the need for it.

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

  1. Upgrade to Nextcloud 32 with docker

  2. Try and edit an odt file

  3. fails

Log entries

Nextcloud

Not sure those are related to my problem, as they don’t occur at the same time…

[webdav] Erreur: Sabre\DAV\Exception\NotFound: 
	PROPFIND /public.php/dav/files/[user]
	de [client IP] par -- Ă  4 oct. 2025, 16:12:00
[no app in context] Erreur: Exception thrown: Sabre\DAV\Exception\NotFound
	PROPFIND /public.php/dav/files/[user]
	de [client IP] par -- Ă  4 oct. 2025, 16:12:00

Web Browser

Sometimes the hover bubble shows ‘Download’, sometimes ‘Edit’ ; the problem occurs when it says ‘Edit’

Web server / Reverse Proxy

Output of docker-compose logs -f nginx (sorry, it’s pretty muddled):

nginx_1      | [Client IP] - - [04/Oct/2025:14:04:34 +0200] "PROPFIND /remote.php/dav/files/[user]/Documents/[path to file] HTTP/2.0" 207 803 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" "-"(/var/www/html/nextcloud/remote.php -> PROPFIND /remote.php/dav/files/[user]/Documents/[path to file] HTTP/2.0)[ pathinfo :  / uri : /remote.php ]
nginx_1      | [Client IP] - - [04/Oct/2025:14:04:34 +0200] "GET /apps/files/api/v1/views HTTP/2.0" 200 132 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" "-"(/var/www/html/nextcloud/index.php -> GET /apps/files/api/v1/views HTTP/2.0)[ pathinfo :  / uri : /index.php ]
nginx_1      | [Client IP] - - [04/Oct/2025:14:04:35 +0200] "GET /apps/logreader/api/poll?lastReqId=8eQpbeNYvr8s48cBr4JG HTTP/2.0" 200 22 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" "-"(/var/www/html/nextcloud/index.php -> GET /apps/logreader/api/poll?lastReqId=8eQpbeNYvr8s48cBr4JG HTTP/2.0)[ pathinfo :  / uri : /index.php ]
nginx_1      | [Client IP] - - [04/Oct/2025:14:04:35 +0200] "GET /custom_apps/richdocumentscode/proxy.php?status HTTP/2.0" 200 35 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" "-"(/var/www/html/nextcloud/custom_apps/richdocumentscode/proxy.php -> GET /custom_apps/richdocumentscode/proxy.php?status HTTP/2.0)[ pathinfo :  / uri : /custom_apps/richdocumentscode/proxy.php ]
nginx_1      | [Client IP] - - [04/Oct/2025:14:04:35 +0200] "POST /apps/richdocuments/token HTTP/2.0" 200 332 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" "-"(/var/www/html/nextcloud/index.php -> POST /apps/richdocuments/token HTTP/2.0)[ pathinfo :  / uri : /index.php ]
nginx_1      | [Client IP] - - [04/Oct/2025:14:04:35 +0200] "PROPFIND /remote.php/dav/files/[user]/Documents/[path to file]/ HTTP/2.0" 207 796 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" "-"(/var/www/html/nextcloud/remote.php -> PROPFIND /remote.php/dav/files/[user]/Documents/[path to file]/ HTTP/2.0)[ pathinfo :  / uri : /remote.php ]
nginx_1      | [Client IP] - - [04/Oct/2025:14:04:36 +0200] "POST /custom_apps/richdocumentscode/proxy.php?req=/browser/be0b3cc3ef/cool.html?WOPISrc=https%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8138_oc6kk8tfehmq&lang=fr&closebutton=1&revisionhistory=1 HTTP/2.0" 200 5364 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" "-"(/var/www/html/nextcloud/custom_apps/richdocumentscode/proxy.php -> POST /custom_apps/richdocumentscode/proxy.php?req=/browser/be0b3cc3ef/cool.html?WOPISrc=https%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8138_oc6kk8tfehmq&lang=fr&closebutton=1&revisionhistory=1 HTTP/2.0)[ pathinfo :  / uri : /custom_apps/richdocumentscode/proxy.php ]
nginx_1      | [Nextcloud container IP] - - [04/Oct/2025:14:04:36 +0200] "GET /index.php/apps/richdocuments/wopi/files/8138_oc6kk8tfehmq?access_token=uW3rI5JpN6DiDVr4oorYhZGQ3GGHVnkb&access_token_ttl=0 HTTP/1.1" 200 1409 "-" "COOLWSD HTTP Agent 25.04.5.4" "-"(/var/www/html/nextcloud/index.php -> GET /index.php/apps/richdocuments/wopi/files/8138_oc6kk8tfehmq?access_token=uW3rI5JpN6DiDVr4oorYhZGQ3GGHVnkb&access_token_ttl=0 HTTP/1.1)[ pathinfo :  / uri : /index.php ]
nginx_1      | [Nextcloud container IP] - - [04/Oct/2025:14:04:36 +0200] "GET /index.php/apps/richdocuments/wopi/settings?type=systemconfig&access_token=BEVkIhwvC2XvjxGG3j7fXMUdYcYg7h7s&fileId=-1 HTTP/1.1" 200 227 "-" "COOLWSD HTTP Agent 25.04.5.4" "-"(/var/www/html/nextcloud/index.php -> GET /index.php/apps/richdocuments/wopi/settings?type=systemconfig&access_token=BEVkIhwvC2XvjxGG3j7fXMUdYcYg7h7s&fileId=-1 HTTP/1.1)[ pathinfo :  / uri : /index.php ]
nginx_1      | [Nextcloud container IP] - - [04/Oct/2025:14:04:36 +0200] "GET /apps/richdocuments/settings/systemconfig/8Yb3TZ3jYn4RRaR3ybb8jAWYtZnBGT5v/xcu/documentView.xcu HTTP/1.1" 200
6130 "-" "COOLWSD HTTP Agent 25.04.5.4" "-"(/var/www/html/nextcloud/index.php -> GET /apps/richdocuments/settings/systemconfig/8Yb3TZ3jYn4RRaR3ybb8jAWYtZnBGT5v/xcu/documentView.xcu HTTP/1.1)[ pathinfo :  / uri : /index.php ]
nginx_1      | [Nextcloud container IP] - - [04/Oct/2025:14:04:36 +0200] "GET /index.php/apps/richdocuments/wopi/files/8138_oc6kk8tfehmq?access_token=uW3rI5JpN6DiDVr4oorYhZGQ3GGHVnkb&access_token_ttl=0&no_auth_header=%2Fws%3FWOPISrc%3Dhttps%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8138_oc6kk8tfehmq&compat= HTTP/1.1" 200 1409 "-" "COOLWSD HTTP Agent 25.04.5.4" "-"(/var/www/html/nextcloud/index.php -> GET /index.php/apps/richdocuments/wopi/files/8138_oc6kk8tfehmq?access_token=uW3rI5JpN6DiDVr4oorYhZGQ3GGHVnkb&access_token_ttl=0&no_auth_header=%2Fws%3FWOPISrc%3Dhttps%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8138_oc6kk8tfehmq&compat= HTTP/1.1)[ pathinfo :  / uri : /index.php ]
nginx_1      | [Client IP] - - [04/Oct/2025:14:04:36 +0200] "POST /custom_apps/richdocumentscode/proxy.php?req=/cool/https%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8138_oc6kk8tfehmq%3Faccess_token%3DuW3rI5JpN6DiDVr4oorYhZGQ3GGHVnkb%26access_token_ttl%3D0%26no_auth_header%3D/ws?WOPISrc=https%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8138_oc6kk8tfehmq&compat=/ws/open/open/1 HTTP/2.0" 400 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" "-"(/var/www/html/nextcloud/custom_apps/richdocumentscode/proxy.php -> POST /custom_apps/richdocumentscod
e/proxy.php?req=/cool/https%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8138_oc6kk8tfehmq%3Faccess_token%3DuW3rI5JpN6DiDVr4oorYhZGQ3GGHVnkb%26access_token_ttl%3D0%26no_auth_header%3D/ws?WOPISrc=https%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8138_oc6kk8tfehmq&compat=/ws/open/open/1 HTTP/2.0)[ pathinfo :  / uri : /custom_apps/richdocumentscode/proxy.php ]
nginx_1      | [Nextcloud container IP] - - [04/Oct/2025:14:04:36 +0200] "GET /custom_apps/richdocuments/settings/fonts.json HTTP/1.1" 404 4852 "-" "COOLWSD HTTP Agent 25.04.5.4" "-"(/var/www/html/nextcloud/index.php -> GET /custom_apps/richdocuments/settings/fonts.json HTTP/1.1)[ pathinfo :  / uri : /index.php ]
nginx_1      | [Client IP] - - [04/Oct/2025:14:04:36 +0200] "GET /custom_apps/richdocumentscode/images/lc_uppage_branding.svg HTTP/2.0" 404 2248 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" "-"(/var/www/html/nextcloud/index.php -> GET /custom_apps/richdocumentscode/images/lc_uppage_branding.svg HTTP/2.0)[ pathinfo :  / uri : /index.php ]
nginx_1      | [Client IP] - - [04/Oct/2025:14:04:36 +0200] "GET /custom_apps/richdocumentscode/images/lc_downpage_branding.svg HTTP/2.0" 404 2247 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" "-"(/var/www/html/nextcloud/index.php -> GET /custom_apps/richdocumentscode/images/lc_downpage_branding.svg HTTP/2.0)[ pathinfo :  / uri : /index.php ]
nginx_1      | [Client IP] - - [04/Oct/2025:14:04:38 +0200] "GET /index.php/apps/files/preview-service-worker.js HTTP/2.0" 200 5323 "https://cloud.[mydomain].com/index.php/apps/files/preview-service-worker.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" "-"(/var/www/html/nextcloud/index.php -> GET /index.php/apps/files/preview-service-worker.js HTTP/2.0)[ pathinfo :  / uri : /index.php ]
nginx_1      | [Client IP] - - [04/Oct/2025:14:04:46 +0200] "GET /apps/logreader/api/poll?lastReqId=8eQpbeNYvr8s48cBr4JG HTTP/2.0" 200 22 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" "-"(/var/www/html/nextcloud/index.php -> GET /apps/logreader/api/poll?lastReqId=8eQpbeNYvr8s48cBr4JG HTTP/2.0)[ pathinfo :  / uri : /index.php ]
nginx_1      | [Client IP] - - [04/Oct/2025:14:04:46 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36" "-"(/var/www/html/nextcloud/ocs/v2.php -> GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0)[ pathinfo :  / uri : /ocs/v2.php ]
nginx_1      | [Client IP] - - [04/Oct/2025:14:04:46 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36" "-"(/var/www/html/nextcloud/ocs/v2.php -> GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0)[ pathinfo :  / uri : /ocs/v2.php ]

I assume this covers the whole request process, but I think those particular lines show when it hits the fan:

nginx_1      | [Client IP] - - [04/Oct/2025:14:04:36 +0200] "POST /custom_apps/richdocumentscode/proxy.php?req=/cool/https%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8138_oc6kk8tfehmq%3Faccess_token%3DuW3rI5JpN6DiDVr4oorYhZGQ3GGHVnkb%26access_token_ttl%3D0%26no_auth_header%3D/ws?WOPISrc=https%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8138_oc6kk8tfehmq&compat=/ws/open/open/1 HTTP/2.0" 400 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" "-"(/var/www/html/nextcloud/custom_apps/richdocumentscode/proxy.php -> POST /custom_apps/richdocumentscod
e/proxy.php?req=/cool/https%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8138_oc6kk8tfehmq%3Faccess_token%3DuW3rI5JpN6DiDVr4oorYhZGQ3GGHVnkb%26access_token_ttl%3D0%26no_auth_header%3D/ws?WOPISrc=https%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8138_oc6kk8tfehmq&compat=/ws/open/open/1 HTTP/2.0)[ pathinfo :  / uri : /custom_apps/richdocumentscode/proxy.php ]
nginx_1      | [Nextcloud container IP] - - [04/Oct/2025:14:04:36 +0200] "GET /custom_apps/richdocuments/settings/fonts.json HTTP/1.1" 404 4852 "-" "COOLWSD HTTP Agent 25.04.5.4" "-"(/var/www/html/nextcloud/index.php -> GET /custom_apps/richdocuments/settings/fonts.json HTTP/1.1)[ pathinfo :  / uri : /index.php ]
nginx_1      | [Client IP] - - [04/Oct/2025:14:04:36 +0200] "GET /custom_apps/richdocumentscode/images/lc_uppage_branding.svg HTTP/2.0" 404 2248 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" "-"(/var/www/html/nextcloud/index.php -> GET /custom_apps/richdocumentscode/images/lc_uppage_branding.svg HTTP/2.0)[ pathinfo :  / uri : /index.php ]
nginx_1      | [Client IP] - - [04/Oct/2025:14:04:36 +0200] "GET /custom_apps/richdocumentscode/images/lc_downpage_branding.svg HTTP/2.0" 404 2247 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" "-"(/var/www/html/nextcloud/index.php -> GET /custom_apps/richdocumentscode/images/lc_downpage_branding.svg HTTP/2.0)[ pathinfo :  / uri : /index.php ]

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!):

{
    "system": {
        "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
            }
        ],
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.[mydomain].com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "32.0.0.13",
        "overwrite.cli.url": "https:\/\/cloud.[mydomain].com",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0
        },
        "default_phone_region": "FR",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [
            "admin"
        ],
        "twofactor_enforced_excluded_groups": [],
        "log_type": "file",
        "logfile": "nextcloud.log",
        "loglevel": 2,
        "maintenance_window_start": 1,
        "allow_local_remote_servers": true,
        "theme": "",
        "app_install_overwrite": [
            "maps"
        ]
    }
}

Apps

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

Enabled:
  - activity: 5.0.0-dev.0
  - app_api: 32.0.0
  - bookmarks: 16.0.0
  - bruteforcesettings: 5.0.0-dev.0
  - calendar: 6.0.0
  - circles: 32.0.0
  - cloud_federation_api: 1.16.0
  - comments: 1.22.0
  - contacts: 8.0.2
  - contactsinteraction: 1.13.1
  - dashboard: 7.12.0
  - dav: 1.34.2
  - deck: 1.16.0
  - drawio: 3.1.1
  - federatedfilesharing: 1.22.0
  - federation: 1.22.0
  - files: 2.4.0
  - files_downloadlimit: 5.0.0-dev.0
  - files_pdfviewer: 5.0.0-dev.0
  - files_reminders: 1.5.0
  - files_sharing: 1.24.0
  - files_trashbin: 1.22.0
  - files_versions: 1.25.0
  - firstrunwizard: 5.0.0-dev.0
  - logreader: 5.0.0-dev.0
  - lookup_server_connector: 1.20.0
  - maps: 1.6.0
  - nextcloud_announcements: 4.0.0-dev.0
  - notes: 4.12.3
  - notifications: 5.0.0-dev.0
  - oauth2: 1.20.0
  - password_policy: 4.0.0-dev.0
  - photos: 5.0.0-dev.1
  - polls: 8.5.0
  - privacy: 4.0.0-dev.0
  - profile: 1.1.0
  - provisioning_api: 1.22.0
  - recommendations: 5.0.0-dev.0
  - related_resources: 3.0.0-dev.0
  - richdocuments: 9.0.0
  - richdocumentscode: 25.4.504
  - serverinfo: 4.0.0-dev.0
  - settings: 1.15.1
  - sharebymail: 1.22.0
  - spreed: 22.0.0
  - support: 4.0.0-dev.0
  - survey_client: 4.0.0-dev.0
  - text: 6.0.0-dev.0
  - theming: 2.7.0
  - twofactor_backupcodes: 1.21.0
  - twofactor_totp: 14.0.0
  - updatenotification: 1.22.0
  - user_status: 1.12.0
  - viewer: 5.0.0-dev.0
  - weather_status: 1.12.0
  - webhook_listeners: 1.3.0
  - workflowengine: 2.14.0
Disabled:
  - admin_audit: 1.22.0
  - encryption: 2.20.0
  - epubviewer: 1.8.0 (installed 1.8.0)
  - files_external: 1.24.0
  - gpxpod: 7.0.4 (installed 7.0.4)
  - suspicious_login: 10.0.0-dev.0
  - systemtags: 1.22.0 (installed 1.19.0)
  - tasks: 0.16.1 (installed 0.16.1)
  - twofactor_nextcloud_notification: 6.0.0-dev.0
  - user_ldap: 1.23.0

This may be because the embedded CODE Server app (richdocumentscode) is always slower, particularly after events that clear the /tmp directory. This is true for the Docker image and most other deployment scenarios, though the performance impact depends heavily on the underlying hardware.

The app must decompress and extract an AppImage file containing a full CODE installation into a temporary directory (usually /tmp) to run. Whenever /tmp is cleared, this process must be repeated. The first user to access the app after this will experience the most significant delay.

Depending on how long this takes, it may trigger timeouts rather than just appearing unusually slow.

For production deployments, it is recommended to run a dedicated CODE Docker container instead (note: this is unrelated to/does not require ExApp).

1 Like
1 Like

Thanks for your answer and your explanation.

This instance is mainly for personal use, so I figured I could just go with the embedded CODE server, which has worked very well so far. I know at one point I’m gonna have to switch to an All-in-one image.

I understand what you mean about the CODE app being an AppImage extracted in /tmp; does it mean that sooner or later it’s gonna be available again (like it has been with previous upgrades) ? Can I force it to decompress faster ? Can I check its state from the Nextcloud container, with the occ command or something like that ?

Thanks again. (And this issue doesn’t make NextCloud any less awesome :grin: )

I checked in /tmp and there is indeed an appimage_extracted… directory that was created at the time of the upgrade.

I tried removing the CODE app as well as Nextcloud Office and removing the /tmp/appimage_extracted…` and then reinstalling both apps. The AppImage is extracted quite quickly after the install, and the Nextcloud Office admin panel online shows Collabora Online server is reachable, at my server’s url (at one point, I thought it could be a nginx setting).

However, looking at the browser’s console while trying to edit a file, I notice these errors :

/custom_apps/richdocumentscode/proxy.php?req=/cool/https%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8140_oc6kk8tfehmq%3Faccess_token%3DA4pmBO1aq2wFcmWWvjpyYJ4pYf7SgvbB%26access_token_ttl%3D0%26no_auth_header%3D/ws?WOPISrc=https%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8140_oc6kk8tfehmq&compat=/ws/open/open/1:1          Failed to load resource: the server responded with a status of 400 ()
/custom_apps/richdocumentscode/images/lc_uppage_branding.svg:1          Failed to load resource: the server responded with a status of 404 ()
/custom_apps/richdocumentscode/images/lc_downpage_branding.svg:1          Failed to load resource: the server responded with a status of 404 ()
/custom_apps/richdocumentscode/proxy.php?req=/cool/https%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8140_oc6kk8tfehmq%3Faccess_token%3DA4pmBO1aq2wFcmWWvjpyYJ4pYf7SgvbB%26access_token_ttl%3D0%26permission%3Dedit/ws?WOPISrc=https%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8140_oc6kk8tfehmq&compat=/ws/open/open/1:1          Failed to load resource: the server responded with a status of 400 ()
proxy.php?req=/browser/be0b3cc3ef/bundle.js:12886 Uncaught TypeError: Cannot read properties of undefined (reading 'reason')
    at NewClass._onSocketClose (proxy.php?req=/browser/be0b3cc3ef/bundle.js:12886:18)
    at global.ProxySocket._signalErrorClose (proxy.php?req=/browser/be0b3cc3ef/global.js:1:29299)
    at XMLHttpRequest.<anonymous> (proxy.php?req=/browser/be0b3cc3ef/global.js:1:32121)
hook.js:608 Document loading failed due to timeout: Please check for failing network requests
overrideMethod @ hook.js:608

There are those 2 very similar requests that are responded a 400 :

  • /custom_apps/richdocumentscode/proxy.php?req=/cool/https%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8140_oc6kk8tfehmq%3Faccess_token%3DA4pmBO1aq2wFcmWWvjpyYJ4pYf7SgvbB%26access_token_ttl%3D0%26no_auth_header%3D/ws?WOPISrc=https%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8140_oc6kk8tfehmq&compat=/ws/open/open/1:1
    
  • /custom_apps/richdocumentscode/proxy.php?req=/cool/https%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8140_oc6kk8tfehmq%3Faccess_token%3DA4pmBO1aq2wFcmWWvjpyYJ4pYf7SgvbB%26access_token_ttl%3D0%26permission%3Dedit/ws?WOPISrc=https%3A%2F%2Fcloud.[mydomain].com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F8140_oc6kk8tfehmq&compat=/ws/open/open/1:1
    

I think that’s where things go wrong, and I’m really curious about what’s going on…

Just an update : CODE and Nextcloud Office are now working just fine, as it was before the upgrade. The thing is I haven’t done anything specific, and I don’t understand what was going now, nor what happened that made it work.

Still, problem solved. Though without a solution…

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.