Issue installing Collabora following official guide

@bomo I didnā€™t switch. I kept the OS to Debian 8.5. The thing I did was:

  1. Install docker (which went to default AUFS)
  2. Install Collabora

Outcome: failed stating permission errors

  1. Delete /var/lib/docker/* and created only /var/lib/docker/overlay
  2. Install Collabora

Outcome: failed stating permission errors

  1. Delete /var/lib/docker/* and created again /var/lib/docker/aufs
  2. Install Collabora

Outcome: Working Collabora

I am unclear why it worked when I switched back to AUFS, since all other directories were removed and a clean install of Collabora was done again.

Hello Remidebette,
thank you very much for your fast help with the copying of the certificate!
I had to spend quite some time to get my SSL certificates working correctly (it turns out the OpenSSL client used by the app is more picky about the intermediate certificates, than the normal web-browsers), but now it works.

Kind Regards,
Hans

1 Like

Did this change something to permissions of /var/lib/docker/aufs ? My permissions are root:root 700

It seems I am lying. It isnā€™t using AUFS but using devicemapper:

root@portal:/var/www/nextcloud# ls -l /var/lib/docker/
total 32
drwx------ 5 root root 4096 Aug 15 13:11 containers
drwx------ 5 root root 4096 Aug 12 20:22 devicemapper
drwx------ 3 root root 4096 Aug 12 20:19 image
drwxr-x--- 3 root root 4096 Aug 12 20:19 network
drwx------ 2 root root 4096 Aug 12 20:19 swarm
drwx------ 2 root root 4096 Aug 12 20:24 tmp
drwx------ 2 root root 4096 Aug 12 20:19 trust
drwx------ 2 root root 4096 Aug 12 20:19 volumes
1 Like

I finally managed to get NextCloud-Collabora/Code working on Jessie.
The official guide is absolutely fantastic, thanks guys, but need to add a note as (today) Docker aufs on Jessie has got issues so devicemapper should be used instead.

Once I switched to devicemapper got to the following issue described by @jospoortvliet :

wsd-BLA ~DocumentBroker [https://cloud.josandcamila.com/apps/richdocuments/wopi/files/3610765?access_token=W7hLlzliRy7FYYY9BIqE3WTiBUoqgcMh] destroyed with 0 sessions left.

After much pain and testing I rechecked also NextCloud configuration to find that ā€œoverwrite.cli.urlā€ was set to http instead of https, Added the ā€œsā€ and it loaded the documents flawlessly.

I also had the problem

[ loolkit ] link("/opt/collaboraoffice5.1/CREDITS.fodt","/opt/lool/child-roots/1032/lo/CREDITS.fodt") failed. Exiting. (errno: Operation not permitted)

I changed the permissions of the files to belong to lool:lool (uid 105 gid 108), but I did it for all the files below /opt/collaboraoffice5.1.
Now this error is gone and I run into another error.

mknod(/opt/lool/child-roots/1973//dev/random) failed. (errno: Operation not permitted)

I think this is because I changed permisisons too generously. I donā€™t have any more time today maybe someone wants to fiddle it out or I will try tomorrow :slight_smile:

I can answer the question about different portnumbers now. Putting the portnumber in several ways after the domainname didnā€™t work. So Iā€™ve added --expose <portnumber> to the line from the docs and it is running :slight_smile:

The solution with --devicemapper is not optimal I think as long as https://github.com/docker/docker/issues/15629#issuecomment-238178503
is still true. I donā€™t get the thin provisioning on a dedicated device working on debian 8.

Is there a way to specify more than one Nextcloud hosts/domains to be accepted when starting the docker container ?

Please have a look at Allow several domains for Collabora?

1 Like

Hey Pupaxxo, i have the same problem, could you please tell me on what file exactly you change this line ?
Thank you in advance.

EDIT : Here is the answer of @pupaxxo :
I edited this file apps/richdocuments/controller/documentcontroller.php
adding this line $token = str_replace("?encoding=text", ā€œā€, $token); after the token variable declaration

So i done that then i got an error in docker : wrong permission.

So i had to edit /etc/default/docker and to add this line :
DOCKER_OPTS="ā€“storage-driver=aufs"
(Be sure to have Linux Extra image installed apt-get install linux-image-extra-$(uname -r) )
Made a reboot, rebuild the docker image and itā€™s working now.

Hi,

I have succesfully installed collabora but for some reasin it is extremely slow. It takes about 20 seconds to open a document. In the docker log I can find anything that might be the problem. Maybe someone else can see it?

I have put the log here since it is to big to put in the code tags.

There is already a thread, yes 20 seconds (donā€™t be too excited about the ā€˜solvedā€™ tag)

Yes for the moment there is two solutions :

1- compile yourself loolwsd, loleaflet and libreoffice and some dependencies

2- use the docker image to take out necessary files to working inside your system and not into dockerā€™s one.

I have the same setup, guessing would need a self-signed certificate and maybe could edit the hosts file?

Are there sizing whitepapers or some hints for hardwarescaling?

not yet, weā€™re actually looking for customers to work with us getting this set up for 10K users or so and create a nice set of best practices for that. Collabora has experience with it so it shouldnā€™t be super painful but it has to be done on our side a few times first before Iā€™m happy to write a white paperā€¦

To everyone who faced the unexpected connection error:

Please check if you have restricted the collabora online app within nextcloud/ownCloud to a specific user-group.
This doesnā€™t work now - seems to be a bug.
Filed here: https://github.com/owncloud/richdocuments/issues/102

I wrote a little article about that behavior (german only by now - sorry)
https://www.2good4you.net/blog/19-web-stuff/6-collabora-online-unter-debian-8

1 Like

Summary for the Debian Jessie problem


  • Make the docker image run properly

Also known as Link problem:

[ loolkit ] link(ā€œ/opt/collaboraoffice5.1/CREDITS.fodtā€,ā€œ/opt/lool/child-roots/1032/lo/CREDITS.fodtā€)
failed. Exiting. (errno: Operation not permitted)

Donā€™t install a backport kernel, simply switch from aufs to devicemapper.
Easiest way:

apt-get remove --purge docker-engine
mv /var/lib/docker /var/lib/docker.old
apt-get install docker-engine


systemctrl stop docker
mv /var/lib/docker/aufs /var/lib/docker/devicemapper
systemctrl start docker

Changing /etc/default/docker and add DOCKER_OPTS=ā€œā€“storage-driver=aufsā€ does not work on systemd.
Installing docker from other sources (script based etc) is not necessary.

  • remove unexpected connection error

Dont restrict the nextCloud/ownCloud app to a specific user group



Are there still other problems out there?

4 Likes

Does anyone know how to install fonts (ttf) that can be displayed or used in a document by Collabora?
Installing the fonts in the hosting Linux environment does not seem to suffice.

1 Like

Hi, i tried to install collabora into my nextcloud installation.
I followed the guide and have come to the point where i met an error:

its on the second part from i understand. When i try to make a new doc the file itself is made, but Collabor does not open it.

in the docker.log from var/logs is no entry at all (last one is from 2 days ago).
the logging from nextcloud throws the folowing debugging infos: (newest to oldest)

Debug no app in context Issuing token for USER file 43, version 0 owned by USER, path/to/file/file
Debug richdocuments Generating WOPI Token for file 43, version 0.
Info admin_audit File accessed: "path/to/file/file "
Debug no app in context Storing the discovery.xml to the cache.
Debug no app in context getDiscovery(): Getting discovery.xml from the cache.
Debug no app in context Storing the discovery.xml to the cache.
Debug no app in context getDiscovery(): Getting discovery.xml from the cache.
Error files Could not find resource file ā€œ/apps/files/js/jquery.iframe-transport.jsā€

apache log:
No protocol handler was valid for the URL /lool/ws/https://spdatabase.v22016023347031802.supersrv.de/index.php/apps/richdocuments/wopi/files/43. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule

Could it be the missing proxy_wstunnel mod?
I hope someone can help. i couldnt manage to find anything on google that helped me.

Debian Wheezy
Apache 2.2.20
PHP 5.5.38
mysql 5.5.50
Kernel 3.16
Nextcloud 10 (latest 9 version same behaviour and Errors)

Thanks for your Time patient reader
Esh