Installation with packages fails with missing libs libsofficeapp.so & libmergedlo.so

Hi @darshan At last a fully operational Nextcloud+CollaboraOnline !
The problem that triggered this work was missing libraries after a debian package installation.

The successful process is described in some previous messages, to summarize :

  • create full capability cool user (with, when needed, sudo group membership)
  • download (git) and compile collabora-libreoffice as described in the build doc
  • create a folder and copy both include and instdir from _libreoffice compilation\ f`older
  • download (git) collaboraonline
  • configure with lo-path and lokit-path pointing to the created folder as example --with-lo-path=/home/cool/collabora/instdir --with-lokit-path=/home/cool/collabora/include (this enables to remove the huge libreoffice folder. I have also tried to find which libraries are necessary but there are so many dependencies that I gave up even if the instdir is big)
  • sudo make install
  • amend /lib/systemd/system/coolwsd.service with the correct values
[Unit]
Description=Collabora Online WebSocket Daemon
After=network.target
[Service]
#EnvironmentFile=-/etc/sysconfig/coolwsd
ExecStart=/usr/local/bin/coolwsd --version \
--o:sys_template_path=/home/cool/collabora/systemplate \
--o:child_root_path=/home/cool/collabora/child-roots \
--o:file_server_root_path=/usr/local/share/coolwsd \
--o:cache_files.path=/home/cool/collabora/cache
KillSignal=SIGINT
TimeoutStopSec=120
User=cool
KillMode=mixed
Restart=always
LimitNOFILE=infinity:infinity
ProtectSystem=strict
ReadWritePaths=/opt/cool /var/log /home/cool/collabora
#ProtectHome=yes
PrivateTmp=yes
ProtectControlGroups=yes
CapabilityBoundingSet=CAP_FOWNER CAP_CHOWN CAP_SYS_CHROOT CAP_SYS_ADMIN
[Install]
WantedBy=multi-user.target

Don’t forget to release protection on on home (maybe unsecure ?)

To the devs, my feeling is that debian packages do not carry anymore the two missing libraries which cause complex dependency problems because adding the libs in the path fails; I have not been able to list the dependencies and some of them overlap libreoffice ones.
For those who want to integrate coolwsd in Nextcloud in a VM , I would advice s to build with separate web servers with applications installed in the webroot. Using subpath might be possible for geeks but I did not succeed and I can tell that it is a big mess.
Thanks to all the COOL team for their work.

1 Like