I have the same problem of a lot of people: when I open a document I have the message “We are sorry, this is an unexpected connection error. Please try again.”.
Here is my docker logs when the document is opened:
kit-00085-00 00:00:51.892720 [ loolkit ] Process started.
kit-00085-00 00:00:51.892951 [ loolkit ] Jail path: /opt/lool/child-roots/85/
kit-00085-00 00:00:51.893684 [ loolkit ] symlink(“…/lo”,“/opt/lool/child-roots/85/opt/collaboraoffice5.1”)
kit-00085-00 00:00:52.052085 [ loolkit ] link(“/opt/collaboraoffice5.1/LICENSE”,“/opt/lool/child-roots/85/lo/LICENSE”) failed. Exiting. (errno: Operation not permitted)
frk-00031-00 00:00:52.893093 [ loolforkit ] Child 85 has exited, removing its jail ‘/opt/lool/child-roots/85’
wsd-00022-10 00:00:55.833810 [ loolwsd ] Total memory used: 200752
wsd-00022-03 00:00:56.537906 [ client_ws_0001 ] getNewChild: No live child, forking more.
wsd-00022-03 00:00:56.538015 [ client_ws_0001 ] getNewChild: Timed out while waiting for new child.
wsd-00022-03 00:00:56.538063 [ client_ws_0001 ] Failed to get new child. Service Unavailable.
wsd-00022-03 00:00:56.538407 [ client_ws_0001 ] ClientRequestHandler::handleRequest: WebSocketErrorMessageException: Service is unavailable. Please try again later and report to your administrator if the issue persists.
wsd-00022-03 00:00:56.538929 [ client_ws_0001 ] Thread finished.
wsd-00022-00 00:00:56.679420 [ loolwsd ] MasterToForKit: spawn 1
wsd-00022-00 00:00:56.679516 [ loolwsd ] Writing to pipe. Data: [spawn 1].
frk-00031-00 00:00:56.026374 [ loolforkit ] readFIFO for pipe: wsd_pipe_rd returned: 8
frk-00031-00 00:00:56.026484 [ loolforkit ] Read line from pipe: wsd_pipe_rd, line: [spawn 1], data: .
frk-00031-00 00:00:56.026553 [ loolforkit ] ForKit command: [spawn 1].
frk-00031-00 00:00:56.026633 [ loolforkit ] Spawning 1 child per request.
frk-00031-00 00:00:56.026721 [ loolforkit ] Creating 1 new child.
frk-00031-00 00:00:56.026784 [ loolforkit ] Forking a loolkit process.
frk-00031-00 00:00:56.032659 [ loolforkit ] Forked kit [90].
kit-00090-00 00:00:56.033241 [ loolforkit ] Initializing kit
kit-00090-00 00:00:56.033428 [ loolforkit ] Log level is [8].
kit-00090-00 00:00:56.033581 [ loolkit ] Process started.
kit-00090-00 00:00:56.033891 [ loolkit ] Jail path: /opt/lool/child-roots/90/
kit-00090-00 00:00:56.034586 [ loolkit ] symlink(“…/lo”,“/opt/lool/child-roots/90/opt/collaboraoffice5.1”)
kit-00090-00 00:00:56.195244 [ loolkit ] link(“/opt/collaboraoffice5.1/LICENSE”,“/opt/lool/child-roots/90/lo/LICENSE”) failed. Exiting. (errno: Operation not permitted)
frk-00031-00 00:00:57.033940 [ loolforkit ] Child 90 has exited, removing its jail ‘/opt/lool/child-roots/90’
In the javascript console, I have also the error:
leaflet-src.js (ligne 2839, col. 1)TypeError: doclayer is undefined
After upgrading to kernel 4.6 i also changed the docker storage driver (from aufs to overlay).
And remember that if you change it you will lose al the images you have built.
Turns out that the browser wants to connect to localhost.
In other words: This might work in the case browser and docker container run on the same box.
What I did: started the container with docker run -t -d -p 127.0.0.1:9980:9980 -e "domain=cloud\.example\.com" --restart always --cap-add MKNOD collabora/code
In the Collabora configuration in Nextcloud, URL to Collabora Online server is https://cloud.example.com/ (thanks, @jurgenhaas!
I think that’s all.
No need for additional certificates, the installation guide is wrong here.
Of course, you need to replace cloud.example.com with the name of your own nextcloud server.
OS: OpenSUSE 13.2
About the save/apply button not working: disable the normal Documents app. The buttons clash (have the same id) so this has to be fixed in the code to work. @LukasReschke FYI I’ll create an issue.
wsd-BLA Poco::Net::DNS::resolveOne("cloud.josandcamila.com") failed: Host not found: cloud.josandcamila.com
wsd-BLA Poco::Net::IPAddress("cloud.josandcamila.com") failed: Invalid address: cloud.josandcamila.com
wsd-BLA WOPI host is not on the same host as the WOPI client: "". Connection is not allowed.
wsd-BLA No acceptable WOPI hosts found matching the target host [cloud.josandcamila.com] in config.
wsd-BLA ~DocumentBroker [https://cloud.josandcamila.com/apps/richdocuments/wopi/files/3610765?access_token=W7hLlzliRy7FYYY9BIqE3WTiBUoqgcMh] destroyed with 0 sessions left.
wsd-BLA ~ChildProcess dtor [34].
kit-00034-00 00:04:12.971798 [ loolkit ] Connection closed.
Earlier, I had this one:
wsd-BLA WOPI host is not on the same host as the WOPI client: "192.168.1.107". Connection is not allowed.
Indeed, 192.168.1.107 is my server’s address on the local network but that shouldn’t matter I suppose…
@jospoortvliet Exactly what I had.
Resolution: make sure that your container has been started with -e "domain=cloud\.josandcamila\.com" - and the URL for the Collabora installation points to https://cloud.josandcamila.com/
I got it working with the tips aboce. What is strange though it takes a while to establish the connection. When I open a documents it takes up to 20 seconds.
Oh you’re so correct, I have it working now! So the domain to start the docker container with has to be the URL you run Nextcloud on, NOT the URL you run Collabora Online on… whoah.
Thanks a bunch! Yay for document editing in my own Nextcloud
Does anyone have any clues on how to get the Personal -> Collabora Online -> “Save new documents to” entry to save the input? I’ve tried “Documents” and “/Documents” and “Documents/” and “/Documents/” but it is always blank upon return. I’ve tried hitting enter after an entry. I’ve tried giving it lots of time before browsing away from the Personal settings page. Nothing seems to work.
My setup is where I have a dedicated Apache server in front of all my other VM’s. Is this a supported setup for Collabora? Since the guide state using 127.0.0.1 which means the apache doing the proxy is on the same machine. Which in my case isn’t valid since I have my Apache on a separate VM.
I have switched from devicemapper to overlay FS. But still get the error:
When I check the URL https://cloud.wijman.me.uk/apps/richdocuments/wopi/files/349?access_token=IBiTRbdcEIWXbGM4cQ7SIX8ZclyYASxt manually I get the response:
I made a nice tutorial video showing how to install Collabora Online in Nextcloud. A big THANK YOU to everyone here as I wouldn’t have been able to do this without all of you!