SOLVED Nextcloud can't connect to Collabora
Shai last edited by girish
- I installed the Cloudron Collabora app.
- I set the Nextcloud domain at the Collabora domain
- In Nextcloud I installed the Collabora online connector app
- In Nextcloud I set the URL of the Collabora instance at:
- When clicking "Save" there I get "Could not establish connection to the Collabora Online server."
- I can successfully connect to a demo server.
robi last edited by
What did you enter as the collabora domain?
Was it FQDN?
Same question for NC setting.
Shai last edited by Shai
@robi Yes, using FQDN
The Collabora app, (which is in the same Cloudron as Nextcloud App) is installed at:
Nextcloud is installed at
At "Cloudron Collabora Settings
https://collabora.mydomain.techI have entered into the field there:
I also tried
And then at:
https://nextcloud.mydomain.tech/settings/admin/richdocumentsI have entered into the field "Use your own server => URL (and Port) of Collabora Online-server"
I have also tried:
Thanks for the help.
@girish Okay, took the "https://" off. I restarted Nextcloud as well as Collabora. Still same error, red X and "Could not establish connection to the Collabora Online server."
@shai what you describe should work unless you have some typo somewhere. In fact the default collabora settings would already allow nextcloud to connect. I think there is some other network related issue somewhere. Can you open a webterminal into nextcloud and see if curl'ing to your collabora app works from there:
curl -v https://collabora.mydomain.tech
Hmm, self-signed certificate in chain...
Thanks in advance for advising on my next step.
@shai that seems to be the root issue here. Can you check the certificate of that collabora instance and verify that you get a green lock in your browser? If so, are you using some special cert-chain setup on your PC, which the Cloudron may not know of to validate the whole chain? If you use the Cloudron default Let'sEncrypt, maybe try to renew all certs in the domains view.
@nebulon thanks for sticking with me on this one.
- green lock on all browsers on both
- I renewed all certs twice
- First time it essentially ran a check but didn't change anything because it saw the certs were fine.
- Second time I changed the cert type from LetsEncrypt wildcard to LetsEncrypt prod. This time it created new certs.
- I ran the curl to Collabora after each time that I renewed the certs. No change, exact same messages.
Some more data from my troubleshooting
I removed all the gazillion certs that were in
/etc/ssl/certsand also deleted all lines in
/etc/ssl/certs/ca-certificates.crtin advance of renewing my domain certs in the Cloudron domains admin page. Those actions had absolutely no effect on anything. Green lock still appeared on all my Cloudron sites and Nextcloud still couldn't contact Cloudron server.
find / -iname "*letsencrypt*"returned zero rows
Some wild ideas to just toss out there:
- Are there ever cert issues related to new TLDs like the
.techdomains that I am using?
- I've got two Nextcloud instances on the same Cloudron. (I've only been trying to connect 1 instance to Collabora.)
Again, I appreciate you sticking in there with me on this one. Any ideas on what I could try next?
- green lock on all browsers on both
@shai not sure what the issue could be but, you could send a mail to firstname.lastname@example.org with the exact domain names, if you don't want to disclose them, maybe we can get some clue from the certs then.
If you have other domains which are non
.techmaybe you could test installing collabora on those and check if this really is some tld issue, just to be able to rule out some concerns about that.
We got this sorted out on support@ . The issue was @Shai 's router does not actually support hairpinning. Because of this, he has added manual DNS server entries in the router to point to the internal Cloudron IP.
The fix is to to tell Cloudron also to remove to internal Cloudron IP for the apps. This was achieved by adding a local-zone as per https://docs.cloudron.io/networking/#internal-dns-server
@girish Thanks so much for the great service! I'm a happy customer.