Hello there,
Iâm running my NC11 under ubuntu server 16.10 and I wanted to set up collabora online into a docker by following the tutorial on NC website âNextcloud Office - Self-hosted online office suiteâ
Everything seems well configured but when I want to open or create a document I get to following error on the webpage âWell, this is embarrassing, we cannot connect to your document. Please try again.â and below what I can see in my apache logs :
[Thu Dec 15 10:11:10.536642 2016] [proxy:warn] [pid 28841] [client 192.168.1.103:40578] AH01144: No protocol handler was valid for the URL /lool/https%3A%2F%2Fnextcloud.xxxxxxx.com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F2338?access_token=AxK3t
AokfSab3L7Vzrp9IWgGGTXSDWsO&permission=edit/ws. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
The thing is I enabled all of the required modules :
a2enmod proxy
a2enmod proxy_wstunnel
a2enmod ssl
a2enmod proxy_http
The trouble seems to come from that line into my apache configuration :
Main websocket
ProxyPassMatch â/lool/(.*)/ws$â wss://127.0.0.1:9980/lool/$1/ws
Below the things which differ from the tutorial:
<VirtualHost *:443
ServerName www.xxxxxx.com
Header always add Strict-Transport-Security âmax-age=15768000â
ErrorLog /var/log/apache2/office-error.log
CustomLog /var/log/apache2/office-access.log combined
SSLCertificateFile /etc/letsencrypt/live/xxxxx/cert.pem
SSLCACertificateFile /etc/letsencrypt/live/xxxxx/chain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/xxxxx/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
Encoded slashes need to be allowed
AllowEncodedSlashes On
Container uses a unique non-signed certificate
SSLProxyEngine On
SSLProxyVerify None
SSLProxyCheckPeerCN Off
SSLProxyCheckPeerName Off
âŚ
And the docker command I launched :
docker run -t -d -p 127.0.0.1:9980:9980 -e âdomain=nextcloud\\.xxxxx\\.comâ --restart always --cap-add MKNOD collabora/code
the docker logs :
docker logs -f a94d774a03d8
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
loolwsd version details: 1.9.8 - 1.9.8
loolforkit version details: 1.9.8 - 1.9.8
office version details: { âProductNameâ: âCollabora Officeâ, âProductVersionâ: â5.1â, âProductExtensionâ: â.10.12â, âBuildIdâ: â653cc4c38dd2c05aecbee156aef460f5a361e579â }
And just to complete that issue, I updated NC from 10 to 11 and I also had the same issue with NC10.
So if anyone knows what could be wrong it would be great
Thanks