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
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 this guide.

  3. Next pull docker image of collabora/code and run this sudo docker run -t -d -p -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

  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.

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

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.

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:

Current and working configuration:

<VirtualHost *: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
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 retry=0
ProxyPassReverse    /browser

# WOPI discovery URL
ProxyPass           /hosting/discovery retry=0
ProxyPassReverse    /hosting/discovery

# Capabilities
ProxyPass           /hosting/capabilities retry=0
ProxyPassReverse    /hosting/capabilities

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

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

# Download as, Fullscreen presentation and Image upload operations
ProxyPass           /cool
ProxyPassReverse    /cool
# Compatibility with integrations that use the /lool/convert-to endpoint
ProxyPass           /lool
ProxyPassReverse    /lool

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.