richdocuments icon indicating copy to clipboard operation
richdocuments copied to clipboard

Can't open documents after last update Nextcloud AIO

Open KOCTET-SPB opened this issue 1 year ago • 6 comments

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:

  • OS: Android 12, Windows 11
  • Browser Chrome
  • Version [e.g. 22]
  • Device: Xiaomi 9, desktop

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) ...

KOCTET-SPB avatar Jul 26 '24 17:07 KOCTET-SPB

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

joshtrichards avatar Jul 26 '24 21:07 joshtrichards

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

KOCTET-SPB avatar Jul 26 '24 21:07 KOCTET-SPB

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

joshtrichards avatar Jul 26 '24 21:07 joshtrichards

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.

fcharlaix-opendsi avatar Jul 30 '24 16:07 fcharlaix-opendsi

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 avatar Jul 30 '24 18:07 KOCTET-SPB

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

KOCTET-SPB avatar Aug 03 '24 16:08 KOCTET-SPB

Closing as resolved.

juliusknorr avatar Dec 03 '24 07:12 juliusknorr