January 13, 20197 yr 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.
January 16, 20197 yr 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; } }
January 20, 20197 yr Author 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.
January 26, 20197 yr 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.
March 16, 20197 yr 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
April 7, 20197 yr 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?
April 13, 20197 yr 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?
May 13, 20197 yr 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, 20197 yr by Drazzilb
July 19, 20196 yr 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
August 24, 20196 yr 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, 20196 yr by jang430
November 12, 20196 yr 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?
December 17, 20196 yr After installation i have only a blank gray site if i open a document in nextcloud. What is the problem ?
January 15, 20206 yr 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
February 10, 20206 yr 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
June 27, 20206 yr 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, 20206 yr by Danuel
July 3, 20206 yr 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
July 3, 20206 yr 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?
July 25, 20205 yr 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
September 27, 20205 yr 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.
January 19, 20215 yr 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.
March 25, 20215 yr 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.
June 20, 20215 yr 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?
June 25, 20215 yr 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.
December 29, 20214 yr 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 !
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.