SpaceInvaderOne Posted January 13, 2019 Share Posted January 13, 2019 Hey guys here is a tutorial on how to install and setup a Collabora Document Server and configure it to work with Nextcloud as a Docker container on Unraid. It shows how to set it up running through a reverse nginx proxy. Collabora is a LibreOffice Online document suite. this gives you control over your own documents and integrates with nextcloud. So no longer any need for google drive and google docs! This video guide makes use of @chvb great container. 1 Quote Link to comment
DZMM Posted January 16, 2019 Share Posted January 16, 2019 Thanks for this, but I couldn't get this to work by just changing the two lines you suggested. Shouldn't the other lines referencing 'Collabora' also be changed? This is what I currently have: resolver 127.0.0.11 valid=30s; upstream collabora { server 192.168.50.74:9980; } server { listen 443 ssl; server_name office.*; include /config/nginx/ssl.conf; # static files location ^~ /loleaflet { proxy_pass https://192.168.50.74:9980; proxy_set_header Host $host; } # WOPI discovery URL location ^~ /hosting/discovery { proxy_pass https://192.168.50.74:9980; proxy_set_header Host $host; } # Capabilities location ^~ /hosting/capabilities { proxy_pass https://192.168.50.74:9980; proxy_set_header Host $http_host; } # main websocket location ~ ^/lool/(.*)/ws$ { proxy_pass https://192.168.50.74: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_buffering off; proxy_pass https://192.168.50.74:9980; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $host; proxy_read_timeout 36000s; } # download, presentation and image upload location ~ ^/lool { proxy_pass https://192.168.50.74:9980; proxy_set_header Host $http_host; } } Quote Link to comment
SpaceInvaderOne Posted January 20, 2019 Author Share Posted January 20, 2019 It should work just changing the container name to the server ip resolver 127.0.0.11 valid=30s; upstream collabora { server 10.10.20.199:9980; } This part above sets the name collabora to 10.10.20.199:9980 so then nothing else needs changing after its defined. Then later when collabora is in the config as below, it relates to what was defined above. # static files location ^~ /loleaflet { proxy_pass https://collabora; proxy_set_header Host $host; } So then the https://collabora is the same as https://10.10.20.199:9980; But how your file is will work too specifying the IP and port each time instead. Quote Link to comment
karateo Posted January 26, 2019 Share Posted January 26, 2019 Is it correct what I get? I type https://karateocollabora.duckdns.org and the browser changes to https://192.168.1.2:9980/ with invalid ssl certificate. I have triple checked everything! Also, nextcloud can not connect to collabora. Quote Link to comment
bonk1990 Posted February 5, 2019 Share Posted February 5, 2019 @SpaceInvaderOne Can this be done with a subfolder instead of a subdomain? Quote Link to comment
jkarim Posted March 16, 2019 Share Posted March 16, 2019 Hi, I have followed the wonderful SpaceInvaderOne video on setting up Collabora, but when I click on a document, I get a blank screen with nextcloud headers, and then the message 'Failed to load Collabora Online - please try later'. When I check the nextcloud error.log i can see the following errors: [error] 312#312: *15849 upstream sent invalid status "0" while reading response header from upstream and [error] 312#312: *245 FastCGI sent in stderr: "PHP message: PHP Fatal error: Cannot declare class GuzzleHttp\Handler\CurlFactory, because the name is already in use I have googled for these error messages but cannot find anything that works. If I go to the https://office.mydomain.com/hosting/discovery I and shown an xml page and can also log into the Collabora admin console using the url https://office.mydomain.com/loleaflet/dist/admin/admin.html. Any help much appreciated. Thanks Quote Link to comment
Jessie Posted April 7, 2019 Share Posted April 7, 2019 Same problem. If I use a pfsense router with nat reflection on 443 all good. If I use another router with no nat reflection, no go Is there a work around for no nat reflection? Quote Link to comment
Idolwolf Posted April 13, 2019 Share Posted April 13, 2019 I'm also running into this issue, has anyone seen a workaround? The comments under the YouTube site for this video indicates there's an issue with an update to the collabora app in nextcloud. Can a previous version of the app be enabled? Quote Link to comment
Drazzilb Posted May 13, 2019 Share Posted May 13, 2019 (edited) On 4/13/2019 at 4:59 PM, Idolwolf said: I'm also running into this issue, has anyone seen a workaround? The comments under the YouTube site for this video indicates there's an issue with an update to the collabora app in nextcloud. Can a previous version of the app be enabled? I too am running into the same issue. with Failed to load. Any help would be greatly appreciated!! EDIT: not sure how i fixed it. but got it all up and running. Edited May 13, 2019 by Drazzilb Quote Link to comment
adoucette Posted July 19, 2019 Share Posted July 19, 2019 Hello, I have difficulty setting up the Collabora docker because it doesn't seem to get an IP? Container setup: Docker screen: So Collabora will not start. I see it gets a 0.0.0.0 IP. I tried putting "172.18.0.30" in the custom IP for the docker settings, but that resulted in a failed container install. What would be the correct settings here for the docker container? Thanks, Ari Quote Link to comment
jang430 Posted August 24, 2019 Share Posted August 24, 2019 (edited) Hi. Followed your instructions to a T. It still says failed to load Collabora Online. I am using proxynet as well. I changed the server name to somethingoffice.duckdns.org. Restarted letsencrypt, collabora and nextcloud. Can't open Doc files within Nextcloud. I am using Sophos Firewall. Is it still necessary to do some port forwarding? ***Update*** Reading above comments about PFSense NAT reflection, and doing some research, I changed my Sophos XG Firewall rule on the DNAT: Ticked- Rewrite source address (masquerading) Use outbout address MASQ Got everything working! Edited August 25, 2019 by jang430 Quote Link to comment
simono5 Posted November 12, 2019 Share Posted November 12, 2019 Getting the same results as mentioned above. Checked the config 1000's times, still can't get this working. "Failed to load Collabora Online - please try later" Anyone managed to get this working since the last update please? Quote Link to comment
Abigel Posted December 17, 2019 Share Posted December 17, 2019 After installation i have only a blank gray site if i open a document in nextcloud. What is the problem ? Quote Link to comment
ratz9999 Posted January 15, 2020 Share Posted January 15, 2020 the same here.I have only the toolbar (only File edit View Insert Tools) but it is unresponsive and I cannot view nor edit any document. it is just a grey screen Quote Link to comment
Acu Posted February 10, 2020 Share Posted February 10, 2020 I need help. I have a problem with collaboara I started to see this. (screen attached) I tried backup recovery and it didn't help I tried reinstallation and it didn't help either Quote Link to comment
Danuel Posted June 27, 2020 Share Posted June 27, 2020 (edited) after i add the collabora conf file i get this message in letsencrypt i get error nginx: [emerg] "resolver" directive is duplicate in /config/nginx/proxy-confs/collabora.subdomain.conf:6 and network is custom a fix that is working for me is to remove the line 6 (resolver 127.0.0.11 valid=30s;) in my case that was on line 6 Edited June 27, 2020 by Danuel Quote Link to comment
Foxhound Posted July 3, 2020 Share Posted July 3, 2020 Hi everyone, I have installed collabora based off this video and whenever i try to launch collabora, the docker stops automatically and the log error says: Signature ok subject=C = DE, ST = BW, L = Stuttgart, O = Dummy Authority, CN = localhost Getting CA Private Key /etc/loolwsd/proof_key exists already. Setting up watches. Watches established. SAXParseException: Tag mismatch in '/etc/loolwsd/loolwsd.xml', line 171 column 6 It seems i need to find this loolwsd.xml but i can't find the loolwsd folder in my /etc folder. Thanks for your help Quote Link to comment
trurl Posted July 3, 2020 Share Posted July 3, 2020 1 hour ago, Foxhound said: can't find the loolwsd folder in my /etc folder. Are you looking inside the container at etc or just in Unraid? Quote Link to comment
Foxhound Posted July 25, 2020 Share Posted July 25, 2020 On 7/3/2020 at 4:40 PM, trurl said: Are you looking inside the container at etc or just in Unraid? I think i was looking inside unraid. I ended up going with another option for now. Thanks Quote Link to comment
Wrex Server Posted September 27, 2020 Share Posted September 27, 2020 I Personally use NGINX Proxy Manager, If you look at Issue#70 on GithubFor NGINXReverseProxyManager , it has all the information you need to set up Collabora on a Reverse proxy with NginxProxyManager github.com/jc21/nginx-proxy-manager/issues/70 Fixed all of my issues. Quote Link to comment
pg0581 Posted January 19, 2021 Share Posted January 19, 2021 I recently followed this video and ran into some issues myself, so I'm going to add what got things working for me. I was getting the following error when trying to open a document: "Unauthorized WOPI host. Please try again later and report to your administrator if the issue persists." If found this fix on a reddit thread. Navigate to the Docker tab in Unraid > Collarbora (open the configuration for the container) > Domain: change the domain from "yoursubdomain\\.example\\.com" to "yoursubdomain.example.com" After I changed this I was able to open documents. Quote Link to comment
madejackson Posted March 25, 2021 Share Posted March 25, 2021 Unfortunately, this Guide does not work for me, either. I'm stuck at entering the Domain of Collabora in Nextcloud Settings, I always get a big red Cross, even if I am trying to use the built in collabora App. It seems like an issue with the nextcloud-Docker image, Probably in combination with SWAG. If I try to open a word via Dashboard I get either a Self-Signed-Certificate or a 404 error. Quote Link to comment
Knutowskie Posted June 20, 2021 Share Posted June 20, 2021 On 1/13/2019 at 10:08 PM, SpaceInvaderOne said: Hey guys here is a tutorial on how to install and setup a Collabora Document Server and configure it to work with Nextcloud as a Docker container on Unraid. It shows how to set it up running through a reverse nginx proxy. Collabora is a LibreOffice Online document suite. this gives you control over your own documents and integrates with nextcloud. So no longer any need for google drive and google docs! This video guide makes use of @chvb great container. Some time has passed. It would be great to see an updated video, that actually works. i followed all steps and it does not work. i ran into several problems and i fear i can not resolve them. your attached subdomain.conf seems faulty, nextcloud refuses to find the collabora container even if its in the proxynet... i don't know what to do anymore. Please, you are the god of unraid tutorials, could you update this tutorial? 1 Quote Link to comment
MadpookBro Posted June 25, 2021 Share Posted June 25, 2021 On 2/5/2019 at 1:21 PM, bonk1990 said: @SpaceInvaderOne Can this be done with a subfolder instead of a subdomain? Hello everybody, Bonk1990 never had an answer, and my nextcloud is also using a subfolder instead of a subdomain, could somebody explains how to setup collabora with subfolder configuration ? Thanks a lot. Quote Link to comment
[email protected] Posted December 29, 2021 Share Posted December 29, 2021 Yes i agree with previous writer ! Can you @SpaceInvaderOne please make a new working guide how to setup nextcloud and collabora with a working letencrypt conf file ? My setup worked fine before i updated the dockers, now i get "document loading failed " in browser and in app i get "404 notfound nginx/1.18.0" error. So please make a new one. Thanks for many great unraid tutorials ! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.