Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documents won't load on AIO #4434

Open
thegrasshopper104 opened this issue Jan 31, 2025 · 1 comment
Open

Documents won't load on AIO #4434

thegrasshopper104 opened this issue Jan 31, 2025 · 1 comment
Labels
info needed Further information is requested

Comments

@thegrasshopper104
Copy link

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

Report in the AIO repo

@elzody elzody added the info needed Further information is requested label Feb 3, 2025
@elzody
Copy link
Contributor

elzody commented Feb 3, 2025

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info needed Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants