Collabora + nextcloud at one machine (and with problem)

Hello,

First of all, I hope this my question isn’t already answered somewhere.

configuration
-Debian 8.6 with kernel 4.6 machine, apache2 with modules: proxy, proxy_wstunnel, proxy_http, ssl
-NO nginx
-Nextcloud 10.0.1 installed and working
-Collabora connected (Docker installation), 1.1.15
-local network, machine IP 192.168.0.121
-hostname vib.tcs.cz
-nextcloud running on vib.tcs.cz as virtualhost default:443

Docker running with commandline:
docker run -t -d -p 127.0.0.1:9980:9980 -e ‘domain=vib\.tcs\.cz’ --restart always --cap-add MKNOD collabora/code

collabora apache conf file is exactly same as it on https://nextcloud.com/collaboraonline/ (just SSL lines are pointed to my SSL directory with CRT and KEY)

Nextcloud modul Collabora Online is enabled and configured with “https://localhost:9980

Unfortunately when I open Office, there is error on screen:

Collabora Online unknown error: cURL error 35: error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block type is not 01
Please contact the "https://localhost:9980" administrator.

I’m not so big linux guru and even docker is new for me.
Can someone confirm this configuration can work? I mean one machine and both installation (nextcloud+collabora).
And if yes, any idea where can be problem?
both certificates are created with openssl (nextcloud is certified for vib.tcs.cz, collabora for colla.tcs.cz)

btw: even if I change localhost (and 127.0.0.1) everywhere for colla.tcs.cz, error message is same.

Sorry for long post :slight_smile:
And thank you for any help.
Vlad

Did you add the certs to /var/www/nextcloud/resources/config/ca-bundle.crt?

Well I did.
Do I have CAT here both certificates/ I mean one for nextcloud and even one for collabora? What ID I have to enter for Collabora if run on localhost? 127.0.0.1 ?

What I have to install for working certificate handling? My HDD is full of direcories at many places with files *.crt *.key *.pem.

Certificates is nightmare :smiley:

You are right :wink:

I did you wrote - nothing changes.
Same error. :frowning:

Did you restart Apache after adding those certs?

Yes I did.

I have second machine with Deb 8.6 + kernel 4.6.
I will try clean installation step-by-step described at https://www.linuxbabe.com/cloud-storage/integrate-collabora-online-server-nextcloud-ubuntu-16-04

Maybe this solve my problem.

New instalation end with endless opening document in office.
When I click to ‘about odt’ nothing happen ever.
This is last 4 log entries in log file.

{"reqId":"owsa+x0sGzmXWVRx2Q5k","remoteAddr":"192.168.0.123","app":"no app in context","message":"Storing the discovery.xml under key discovery.xml to the cache.","level":0,"time":"2016-12-11T08:40:36+00:00","method":"GET","url":"\/nextcloud\/index.php\/apps\/richdocuments\/ajax\/documents\/list","user":"admin","version":"9.1.2.2"}
{"reqId":"u3cwxvnJFxFnTuxZAYsR","remoteAddr":"192.168.0.123","app":"richdocuments","message":"Generating WOPI Token for file 11, version 0.","level":0,"time":"2016-12-11T08:41:46+00:00","method":"GET","url":"\/nextcloud\/index.php\/apps\/richdocuments\/wopi\/token\/11","user":"admin","version":"9.1.2.2"}
{"reqId":"u3cwxvnJFxFnTuxZAYsR","remoteAddr":"192.168.0.123","app":"richdocuments","message":"File with 11 has updatable set to true","level":0,"time":"2016-12-11T08:41:46+00:00","method":"GET","url":"\/nextcloud\/index.php\/apps\/richdocuments\/wopi\/token\/11","user":"admin","version":"9.1.2.2"}
{"reqId":"u3cwxvnJFxFnTuxZAYsR","remoteAddr":"192.168.0.123","app":"no app in context","message":"Issuing token for admin file 11, version 0 owned by admin, path \/Documents\/About.odt: SPbvaiee2kSyW9duh3MWjTTSMhL4ipUe","level":0,"time":"2016-12-11T08:41:46+00:00","method":"GET","url":"\/nextcloud\/index.php\/apps\/richdocuments\/wopi\/token\/11","user":"admin","version":"9.1.2.2"}

I’m probably cursed :frowning:

Actually I have machine on public IP with domain cloud.abc.cz and with CNAME office.abc.cz

Unfortunately I still can’t open document with collabora.
Page froze when I try to open document.

web page contain code
<input type="hidden" id="wopi-url" name="wopi-url" value="wss://**localhost**:9980" />
Is this normal in case office.abc.cz is public address for Collabora?

Even under Nextcloud configuration I have
Collabora Online server: https://localhost:9980
Is this correct?

Do I have change 127.0.0.1 to public IP (office.abc.cz) or no?
docker run -t -d -p 127.0.0.1:9980:9980 -e 'domain=cloud\\.abc\\.cz' --restart always --cap-add MKNOD collabora/code

It’s little confusing for me.