nextcloud / richdocuments

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

Nextcloud app callis wrong collabora URL after updating to NC 24.02 #2307

Closed ChinaskiJr closed 1 year ago

ChinaskiJr commented 2 years ago

Hi and thank you for your work !

I updated Nextcloud to NC 24.02 and updated my collabora docker container in the same time. Now, everytime I try to open a document, it doesn't work, instead I get : image

When I tried to debug this, I saw a http POST that sent back a 404 : image

As far as I know, collabora recently drop the /loleaflet endpoint and replace it with /browser, so my currently Apache configuration was updated few months ago according to that :

# keep the host
    ProxyPreserveHost On

    # static html, js, images, etc. served from coolwsd
    # browser is the client part of LibreOffice Online
    ProxyPass           /browser https://127.0.0.1:9980/browser retry=0
    ProxyPassReverse    /browser https://127.0.0.1:9980/browser

    # WOPI discovery URL
    ProxyPass           /hosting/discovery https://127.0.0.1:9980/hosting/discovery retry=0
    ProxyPassReverse    /hosting/discovery https://127.0.0.1:9980/hosting/discovery

    # Capabilities
    ProxyPass           /hosting/capabilities http://127.0.0.1:9980/hosting/capabilities retry=0
    ProxyPassReverse    /hosting/capabilities http://127.0.0.1:9980/hosting/capabilities

    # Main websocket
    ProxyPassMatch "/cool/(.*)/ws$" wss://127.0.0.1:9980/cool/$1/ws nocanon

    # Admin Console websocket
    ProxyPass   /cool/adminws wss://127.0.0.1:9980/cool/adminws

    # Download as, Fullscreen presentation and Image upload operations
    ProxyPass           /cool https://127.0.0.1:9980/cool
    ProxyPassReverse    /cool https://127.0.0.1:9980/cool

I tried to set

    ProxyPass           /loleaflet https://127.0.0.1:9980/browser retry=0
    ProxyPassReverse    /loleaflet https://127.0.0.1:9980/browser

back, just to try, but it didn't.

To Reproduce Use Nextcloud 24.04 with latest collabora docker image (22.05.4.1.1) Try to open any document

Server details

Operating system: Debian 11

Web server: Apache

Database: PostgresQL

PHP version: 7.4

Nextcloud version: 24.02

Version of the richdocuments app 6.1.1

Version of Collabora Online 22.05.4.1.1

teach404W commented 2 years ago

+1

pedrolucasbp commented 1 year ago

+1

Raudius commented 1 year ago

Hi

thanks for the report. Github is not the ideal place to track configuration issues. I am in the process of cleaning up the repository to keep only the relevant issues.

Here you can find some resources which might help you fix the config: