Still no working collabora

Hi all!
I’m still trying in vain to get Collabora Office to work on my Debian 8 server :-/
My setup:

  • Debian 8 with latest updates
  • NGinX 1.10.3-1~dotdeb+http2+8.1 from dotdeb.org
  • PHP 7.0.16-1~dotdeb+8.1
  • Docker 17.03.0~ce-0~debian-jessie, using devicemapper for storage (to rule out AUFS problems)
  • Collabora CODE from official repo, up-to-date as of 20170302
  • NGinx configured with copy-and-paste from https://icewind.nl/entry/collabora-online

When browsing to http://office.domain.tld/hosting/discovery/ I get a blank page, no XML.
nginx error log is empty, access log shows the following:
109.43.3.166 - - [02/Mar/2017:12:09:15 +0100] "GET /hosting/discovery/ HTTP/2.0" 400 43 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/55.0.2883.87 Chrome/55.0.2883.87 Safari/537.36"

docker log:
Generating RSA private key, 2048 bit long modulus
…+++
…+++
e is 65537 (0x10001)
Generating RSA private key, 2048 bit long modulus
…+++
…+++
e is 65537 (0x10001)
Signature ok
subject=/C=DE/ST=BW/L=Stuttgart/O=Dummy Authority/CN=localhost
Getting CA Private Key
loolforkit version details: 2.0.3 - 2.0.3
wsd-00025-0026 11:03:49.690106 [ client_ws_0001 ] ERR Unknown resource: /hosting/discovery/| wsd/LOOLWSD.cpp:1223
wsd-00025-0026 11:03:55.666330 [ client_ws_0002 ] ERR Unknown resource: /hosting/discovery/| wsd/LOOLWSD.cpp:1223
office version details: { “ProductName”: “Collabora Office”, “ProductVersion”: “5.1”, “ProductExtension”: “.10.18”, “BuildId”: “586626676b0aa697e153c6693a1e1407f7746989” }
wsd-00025-0026 11:09:05.106385 [ client_ws_0009 ] ERR Unknown resource: /hosting/discovery/| wsd/LOOLWSD.cpp:1223
wsd-00025-0027 11:09:15.436382 [ client_ws_000a ] ERR Unknown resource: /hosting/discovery/| wsd/LOOLWSD.cpp:1223

Any ideas?

Nextcloud will always need SSL connection to the CODE docker container.
Some requirement that i can recall right now are

  • A newer release of docker
  • Kernel with AUFS support
  • Valid SSL certs for both nextcloud and docker (see below)
  • 2 domains (1 for nextcloud and another for CODE)
  • Proxy well configured (i find Apache is the easiest)

That’s it.
Have you follow any guide?
Let me know, maybe i can help you troubleshooting it.
Cheers!

Everything is up to date, domains and ssl certs are working fine, collabora image is addressed with ssl, usage of devicemapper makes AUFS unnecessary (as far as I read), and I need to use nginx, because I have to use PHP 7.x and 5.6 simultaneously - but collabora host is configured exactly like in the howto that is linked from the official nextcloud/collabora homepage.

maybe there is something wrong with the reverse proxy?

i will try the posted howto by icewind as soon as i can on my own nginx-setup and come back here :slight_smile:
let us know if you got it working!

Here’s my nginx config for the Collabora host:

server {
listen 443 ssl http2;
server_name office.domain.tld;

access_log  /var/log/nginx/office.domain.tld-access.log;                                                                                          
error_log   /var/log/nginx/office.domain.tld-error.log;                                                                                           
                                                                                                                                                    
ssl_certificate /etc/letsencrypt/live/office.domain.tld/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/office.domain.tld/privkey.pem;
# include ssl settings from snippet
include /etc/nginx/snippets/ssl-settings.conf;
# static files
location ^~ /loleaflet {
    proxy_pass https://localhost:9980;
    proxy_set_header Host $http_host;
}
# WOPI discovery URL
location ^~ /hosting/discovery {
    proxy_pass https://localhost:9980;
    proxy_set_header Host $http_host;
}

# websockets, download, presentation and image upload

location ^~ /lool {

proxy_pass https://localhost:9980;

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection “upgrade”;

proxy_set_header Host $http_host;

}

Main websocket

location ~ /lool/(.*)/ws$ {
    proxy_pass https://localhost:9980;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $http_host;
    proxy_read_timeout 36000s;
}
# Admin Console websocket
location ^~ /lool/adminws {
    proxy_pass https://localhost:9980;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $http_host;
    proxy_read_timeout 36000s;
}
# download, presentation and image upload
location ^~ /lool {
    proxy_pass https://localhost:9980;
    proxy_set_header Host $http_host;
}

}

There’s a little added compared with the icewind-tutorial - but it didn’t change a thing :-/

And regarding the AUFS stuff - I used this howto to have docker use devicemapper as storage driver. Had to re-download collabora after that, but it didn’t make things better, too