Collabora server dont open documents(Solved)

Hi all, I have problems with collabora server. I recently started using nextcloud and built in collabora server dont open documents, then i decide to install and collabora server too. I am guiding from nextcloud official documentation and this video https://www.youtube.com/watch?v=48WrX_Lf1nA&t=2068s.
So now about the problem and i dont understand what root cause it.
Steps that I do is :

  1. Create new subdomain as A record that points my server ip adress

  2. In server install docker following https://docs.docker.com/engine/install/ubuntu/ this guide.

  3. Next pull docker image of collabora/code and run this sudo docker run -t -d -p 127.0.0.1:9980:9980 -e ‘domain=nextcloud\.mydomain\.com’ --restart always --cap-add MKNOD collabora/code

  4. Configured apache server and enabled proxy, also created Virtual Host file where for server indicated office\.mydomain\.com

  5. Get certificates by command certbot --certonly office.mydomain.com

  6. Indicated required certificates in config file and start it with a2enmode and reloaded apache2 server.

  7. In video when access office domain appear nextcloud untrusted domain page, i get default apache2 server page for ubuntu.

  8. In nextcloud settings when indicate user your own server get Collabora Online server is reachable.
    image

  9. When try to open document nextcloud try to open it some time and give this
    image

So i think the problem is that when i access office directly I receive this default apache page, may be redirecting is not setup properly. Please help.

image
This is output when access office ling directly

Is it working if you are using a collabora Demo Server?
I used this tutorial for installing collabora Nextcloud mit Collabora Office - Carsten Rieger IT-Services (in german)

Hi yes when I use demo server all works fine. I will take a look to this guide thanks.

I take a look to this guide, they use nginx server but I use apache server, its not problem?

Propably a bug?

Hi @CristianSW

Collabora recently changed their docker image. You have to replace “loleaflet” with “browser” and “lool” with “cool” in the reverse configuration, to make it work.

Previous configuration:
https://nextcloud.com/de/collaboraonline/

Current and working configuration:
https://sdk.collaboraonline.com/docs/installation/Proxy_settings.html#reverse-proxy-settings-in-apache2-config-ssl

<VirtualHost *:443>
ServerName office.nextcloud.com:443

# SSL configuration, you may want to take the easy route instead and use Lets Encrypt!
SSLEngine on
SSLCertificateFile /path/to/signed_certificate
SSLCertificateChainFile /path/to/intermediate_certificate
SSLCertificateKeyFile /path/to/private/key
SSLProtocol             all -SSLv2 -SSLv3
SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
SSLHonorCipherOrder     on

# Encoded slashes need to be allowed
AllowEncodedSlashes NoDecode

# Container uses a unique non-signed certificate
SSLProxyEngine On
SSLProxyVerify None
SSLProxyCheckPeerCN Off
SSLProxyCheckPeerName Off

# keep the host
ProxyPreserveHost On

# static html, js, images, etc. served from coolwsd
# browser is the client part of Collabora 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 https://127.0.0.1:9980/hosting/capabilities retry=0
ProxyPassReverse    /hosting/capabilities https://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
# Compatibility with integrations that use the /lool/convert-to endpoint
ProxyPass           /lool https://127.0.0.1:9980/cool
ProxyPassReverse    /lool https://127.0.0.1:9980/cool

</VirtualHost>
1 Like

So I can leave this install and wait for bugfixes, after that update docker image and believe that bugfix work. I leave this thread open to track issue, may be help someone.

Thanks, I make this changes and server start working. That’s solution.

2 Likes