Documents won't load on AIO
Describe the bug Since I updated to 10.1 or 10.2 office documents just show an endless spinner. (My configuration didn't change otherwise) AIO version: Nextcloud AIO v10.4.0
[index] Error: Call to a member function xpath() on false in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 41
POST /apps/richdocuments/token
from 192.168.0.215 by aronkvh at 2025. jan. 21. 23:42:58
In settings, the Office page says
Could not establish connection to the Collabora Online server.
Failed to connect to the remote server: cURL error 28: Connection timed out after 5002 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://mydomainname.com/hosting/discovery
To Reproduce Try opening any office document.
Client details: Happens on desktop and mobile, any browser
Server details
Operating system: Ubuntu 22.04.5 LTS
Web server: Apache(AIO)
Nextcloud version: Nextcloud Hub 9 (30.0.5)
Version of the richdocuments app: 8.5.3
Version of Collabora Online
Configuration of the richdocuments app
{
"apps": {
"richdocuments": {
"wopi_allowlist": "🟦🟦🟦🟦,127.0.0.1\/8,192.168.0.0\/16,172.16.0.0\/12,10.0.0.0\/8,fd00::\/8,::1,104.21.67.47,2606:4700:3031::ac43:d584,🟩🟩🟩🟩",
"types": "prevent_group_restriction",
"wopi_callback_url": "",
"public_wopi_url": "⬛⬛⬛⬛",
"installed_version": "8.5.3",
"wopi_url": "⬛⬛⬛⬛",
"disable_certificate_verification": "",
"enabled": "yes"
}
}
}
Output from curl -vvv https://$NC_DOMAIN:443/hosting/discovery
22:53:38.033714 [0-x] == Info: [READ] client_reset, clear readers 22:53:38.054734 [0-0] == Info: Host ⬛⬛⬛⬛:443 was resolved. 22:53:38.054928 [0-0] == Info: IPv6: (none) 22:53:38.055119 [0-0] == Info: IPv4: {{publicip}} 22:53:38.055283 [0-0] == Info: [HTTPS-CONNECT] added 22:53:38.055486 [0-0] == Info: [HTTPS-CONNECT] connect, init 22:53:38.055662 [0-0] == Info: [HTTPS-CONNECT] connect, check h21 22:53:38.055863 [0-0] == Info: Trying {{publicip}}:443... 22:53:38.056249 [0-0] == Info: [HTTPS-CONNECT] connect -> 0, done=0 22:53:38.056545 [0-0] == Info: [HTTPS-CONNECT] adjust_pollset -> 1 socks 22:53:39.057304 [0-0] == Info: [HTTPS-CONNECT] connect, check h21 22:53:39.057458 [0-0] == Info: [HTTPS-CONNECT] connect -> 0, done=0 22:53:39.057748 [0-0] == Info: [HTTPS-CONNECT] adjust_pollset -> 1 socks 22:53:40.036040 [0-0] == Info: [HTTPS-CONNECT] connect, check h21
I am unable to reproduce this on my end using a non-AIO setup. In the AIO issue you filed, I saw in the Collabora logs that there are many errors that the Collabora server is unable to fetch the font remote config settings. Can you please issue a request to https://cloud.example.com/apps/richdocuments/settings/fonts.json and see if it returns a proper response?
I am thinking somehow the connectivity between the Collabora container (or however you have it set up) and the Nextcloud container cannot communicate well. We made no significant changes to this in richdocuments 8.5.3, as far as I am aware, and there have not been updates since. So, if it worked before your upgrade of AIO with richdocuments 8.5.3, I am not sure it's really a bug. At least, for the moment, I'm not convinced.
Additionally, is there any more information you can send, like the Nextcloud logs or browser network logs specifically?
I don't know what to look for that's relevant to you but here are:
browser network logs
22:01:44.957 Failed to get subsystem status for purpose
Object { rejected: true, message: Error }
content-script.js:104:25
22:01:45.109 [DEBUG] files: Initial templates folder
Object { app: "files", uid: "username", level: "1", templatesPath: false }
core-common.js:1:2529779
22:01:45.110 [DEBUG] @nextcloud/files: Navigation service initialized
Object { app: "@nextcloud/files", uid: "username", level: "1" }
core-common.js:1:2529779
22:01:45.110 [DEBUG] @nextcloud/files: FileActions initialized
Object { app: "@nextcloud/files", uid: "username", level: "1" }
core-common.js:1:2529779
22:01:45.110 [DEBUG] @nextcloud/files: NewFileMenu initialized
Object { app: "@nextcloud/files", uid: "username", level: "1" }
core-common.js:1:2529779
22:01:45.173 [DEBUG] @nextcloud/files: FileListHeaders initialized
Object { app: "@nextcloud/files", uid: "username", level: "1" }
core-common.js:1:2529779
22:01:45.226 [INFO] activity: Activity API registered
Object { app: "activity", uid: "username", level: "1" }
logger.chunk.mjs:2:13894
22:01:45.261 [WARN] viewer: Some mimes were ignored because they are not enabled in the server previews config
Object { app: "viewer", uid: "username", level: "1", ignoredMimes: (1) […] }
previewUtils-BnCbNhwl.chunk.mjs:6:366
22:01:45.262 [DEBUG] viewer: OCA.Viewer initialized
Object { app: "viewer", uid: "username", level: "1" }
previewUtils-BnCbNhwl.chunk.mjs:6:230
22:01:45.307 [DEBUG] core: Unified search initialized!
Object { app: "core", uid: "username", level: "1" }
core-common.js:1:2529779
22:01:45.333 OCA.Files.Settings initialized files-main.js:1:145118
22:01:45.335 [DEBUG] files: Navigation mounted. Showing requested view
Object { app: "files", uid: "username", level: "1", view: {…} }
core-common.js:1:2529779
22:01:45.362 [DEBUG] @nextcloud/upload: Destination set
Object { app: "@nextcloud/upload", uid: "username", level: "1", folder: {…} }
core-common.js:1:2529779
22:01:45.363 [DEBUG] @nextcloud/upload: Upload workspace initialized
Object { app: "@nextcloud/upload", uid: "username", level: "1", destination: {…}, root: "https://cloud.example.com/remote.php/dav/files/username", isPublic: false, maxChunksSize: 10485760 }
core-common.js:1:2529779
22:01:45.375 [DEBUG] files: New file list filter registered
Object { app: "files", uid: "username", level: "1", id: "files:hidden" }
core-common.js:1:2529779
22:01:45.375 [DEBUG] files: New file list filter registered
Object { app: "files", uid: "username", level: "1", id: "files:type" }
core-common.js:1:2529779
22:01:45.375 [DEBUG] files: New file list filter registered
Object { app: "files", uid: "username", level: "1", id: "files:modified" }
core-common.js:1:2529779
22:01:45.375 [DEBUG] files: New file list filter registered
Object { app: "files", uid: "username", level: "1", id: "files_sharing:account" }
core-common.js:1:2529779
22:01:45.375 [DEBUG] files: New file list filter registered
Object { app: "files", uid: "username", level: "1", id: "files:filename" }
core-common.js:1:2529779
22:01:45.428 OCA.Files.Sidebar initialized files-sidebar.js:1:18471
22:01:45.474 OCA.Sharing.ShareSearch initialized files_sharing-files_sharing_tab.js:1:715
22:01:45.474 OCA.Sharing.ExternalLinkActions initialized files_sharing-files_sharing_tab.js:1:1491
22:01:45.474 OCA.Sharing.ExternalShareActions initialized files_sharing-files_sharing_tab.js:1:2369
22:01:45.734 OCA.Comments.View initialized comments-comments-app.js:1:18224
22:01:45.817 [ERROR] viewer: Could not register handler
Object { app: "viewer", uid: "username", level: "1", error: "The handler doesn't have a valid component", handler: {…} }
previewUtils-BnCbNhwl.chunk.mjs:6:434
log https://cloud.example.com/apps/viewer/js/previewUtils-BnCbNhwl.chunk.mjs:6
error https://cloud.example.com/apps/viewer/js/previewUtils-BnCbNhwl.chunk.mjs:6
registerHandler https://cloud.example.com/apps/viewer/js/viewer-init.mjs?v=91b310b7-141:4788
an you please issue a request to
https://cloud.example.com/apps/richdocuments/settings/fonts.jsonand see if it returns a proper response?
{ "fonts": [ { "stamp": "2fd5543f7f95fd3891c0db80d3a40f41", "uri": "https://cloud.example.com/apps/richdocuments/settings/fonts/Lato-Black.ttf" }, { "stamp": "d9881220b9714e1eba12ae4688803c63", "uri": "https://cloud.example.com/apps/richdocuments/settings/fonts/Lato-BlackItalic.ttf" }, { "stamp": "0a58850f787e6924f25c4cf0d8fb6ec9", "uri": "https://cloud.example.com/apps/richdocuments/settings/fonts/Lato-Bold.ttf" }, { "stamp": "92451017a816d1a2f0739287cebf32c6", "uri": "https://cloud.example.com/apps/richdocuments/settings/fonts/Lato-BoldItalic.ttf" }, { "stamp": "667ff760e385d6f14f8911f811b6ec76", "uri": "https://cloud.example.com/apps/richdocuments/settings/fonts/Lato-Italic.ttf" }, { "stamp": "cb03506c070be66aa84f386c4be6c269", "uri": "https://cloud.example.com/apps/richdocuments/settings/fonts/Lato-Light.ttf" }, { "stamp": "0eb103ecf8ca6a6d3c3fb4af173f7961", "uri": "https://cloud.example.com/apps/richdocuments/settings/fonts/Lato-LightItalic.ttf" }, { "stamp": "4298f76cf8c2858a9e00c7450d2895c0", "uri": "https://cloud.example.com/apps/richdocuments/settings/fonts/Lato-Regular.ttf" }, { "stamp": "034bd132854b573217407a3978da984d", "uri": "https://cloud.example.com/apps/richdocuments/settings/fonts/Lato-Thin.ttf" }, { "stamp": "b5178cde3a58fb506331655de618f163", "uri": "https://cloud.example.com/apps/richdocuments/settings/fonts/RobotoSlab-VariableFont_wght.ttf" } ], "kind": "fontconfiguration", "server": "Felhő (https://cloud.example.com)" }
- logs from nextcloud container:
Want to add that I’m having this issue as well, since doing the latest updates on AIO. Endless spinner when trying to open an excel document on webGUI collabora. Same document opens just fine when I open through OnlyOffice app on iOS.
Tried disabling and re-enabling through the applications menu. tried deleting container through the AIO settings webGUI. Haven’t tried deleting through terminal.
At first it gave me some WOPI error but not it just the endless loading when trying to open the excel document.
Are you still experiencing this?
If so, is that curl test from the Nextcloud container?
This really does just look like some sort of Docker networking matter or the like. At least on the surface.
It may be necessary to troubleshoot further on the community help forum since there are many others using AIO with Office/CO: https://help.nextcloud.com