nextcloud / richdocuments

📑 Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
350 stars 115 forks source link

Can't open documents after last update Nextcloud AIO #3839

Open KOCTET-SPB opened 1 month ago

KOCTET-SPB commented 1 month ago

Describe the bug Can't open documents after last update nextcloud: "Failed to establish socket connection or socket connection closed unexpectedly. The reverse proxy might be misconfigured, please contact the administrator. For more info on proxy configuration please checkout https://sdk.collaboraonline.com/docs/installation/Proxy_settings.html" To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Client details:

Server details

Operating system: Ubuntu 22.04 Web server: Apache/2.4.52 Database:

PHP version:

Nextcloud version: Nextcloud AIO Nextcloud Hub 8 (29.0.4) Version of the richdocuments app Nextcloud Office 8.4.3 Version of Collabora Online Collabora Online Development Edition 24.04.5.2 ca2ed20 Configuration of the richdocuments app

Insert the output of ./occ config:list richdocuments (or equivalent adapted for your runtime environment)

{   
    "apps": {        
        "richdocuments": {
            "types": "prevent_group_restriction",
            "public_wopi_url": "https:\/\/cloud.mydomen.com",
            "doc_format": "ooxml",
            "wopi_url": "https:\/\/cloud.mydomen.com\/",
            "wopi_callback_url": "",
            "enabled": "yes",
            "installed_version": "8.4.3",
            "disable_certificate_verification": "",
            "wopi_allowlist": "bbb.aaa.yyy.xxx,127.0.0.1\/8,192.168.0.0\/16,172.16.0.0\/12,10.0.0.0\/8,fd00::\/8,::1,cloud.mydomen.com,192.168.1.201,0.0.0.0\/0"
        }
    }
}
Logs #### Nextcloud log (data/nextcloud.log) ``` Ошибка | index | ExceptionCall to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56 ``` #### Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```
joshtrichards commented 1 month ago

Are you using the AIO CODE or Built-in CODE (aka: richdocumentscode)?

KOCTET-SPB commented 1 month ago

Are you using the AIO CODE or Built-in CODE (aka: richdocumentscode)? I use what comes with the AIO

joshtrichards commented 1 month ago

Additional context: https://github.com/nextcloud/all-in-one/discussions/5042

fcharlaix-opendsi commented 1 month ago

I have the issue on a non Docker/AIO installation with Nextcloud 29.0.4 and Nextcloud Office 8.4.3.

simplexml_load_string can return false, this was checked before the cleanup. This seems to return false because $discovery is null for some reason in my case. If I go into the settings and save the address (whiteout modifying anything) this solves the issue.

KOCTET-SPB commented 1 month ago

I have the issue on a non Docker/AIO installation with Nextcloud 29.0.4 and Nextcloud Office 8.4.3.

simplexml_load_string can return false, this was checked before the cleanup. This seems to return false because $discovery is null for some reason in my case. If I go into the settings and save the address (whiteout modifying anything) this solves the issue.

I saved different addresses several times. The error in the log has disappeared, but the documents do not open, the same error: "Failed to establish socket connection or socket connection closed unexpectedly. The reverse proxy might be misconfigured, please contact the administrator. For more info on proxy configuration please checkout"

KOCTET-SPB commented 1 month ago

Update to Nextcloud Office 8.4.4: I saved the addresses several times, after which the documents open. Works fine now. Thank you