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

**URL:** <https://forum.collaboraonline.com/t/installation-with-packages-fails-with-missing-libs-libsofficeapp-so-libmergedlo-so/3548>\
**Category:** Installation & Configuration\
**Created:** [March 25, 2025, 8:44am UTC](https://forum.collaboraonline.com/t/installation-with-packages-fails-with-missing-libs-libsofficeapp-so-libmergedlo-so/3548 "2025-03-25T08:44:55Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![g-vidal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/g-vidal/32/1606_2.png) [@g-vidal](https://forum.collaboraonline.com/u/g-vidal)\
**Post date:** [March 25, 2025, 8:44am UTC](https://forum.collaboraonline.com/t/installation-with-packages-fails-with-missing-libs-libsofficeapp-so-libmergedlo-so/3548/1 "2025-03-25T08:44:55Z")

</div>

I am failing to install collabora online from packages. My server is hosted on OVH, I am installing on a KVM-qemu virtual machine that hosts a functionnal nextcloud.  
To save money as my providers charges me for extra IP and extra subdomain my nextcloud appears on a subpath and I try to install collabora on another subpath. My config :  
**uname -a**

```shell
Linux ************** 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64 GNU/Linux

```

**dpkg -l coolwsd code-brand**

```shell
.../...
ii code-brand 24.04-34 all Collabora Online Development Edition (CODE) branding
ii coolwsd 24.04.13.2-1 amd64 Collabora Online WebSocket Daemon

```

**dpkg -l nginx** \*

```shell
.../...
ii nginx 1.22.1-9+deb12u1 amd64 small, powerful, scalable web/proxy server
un nginx-abi-1.22.1-7 <aucune> <aucune> (aucune description n'est disponible)
ii nginx-common 1.22.1-9+deb12u1 all small, powerful, scalable web/proxy server - common files
un nginx-core <aucune> <aucune> (aucune description n'est disponible)
un nginx-doc <aucune> <aucune> (aucune description n'est disponible)
ii nginx-extras 1.22.1-9+deb12u1 amd64 nginx web/proxy server (extended version)
ii nginx-full 1.22.1-9+deb12u1 all nginx web/proxy server (standard version with 3rd parties)
un nginx-light <aucune> <aucune> (aucune description n'est disponible)

```

my steps are:  
1- Import of the signing key  
2- install the coolwsd and code-brand  
3- change values of /etc/coolwsd/coolwsd.xml with the following commands

- sudo coolconfig set ssl.enable false
- sudo coolconfig set ssl.termination true
- sudo coolconfig set storage.wopi.host \*\*\*\*\*\*\*\*\*\*\*\*.fr/collabora
- sudo coolconfig set-admin-password
- sudo coolconfig set net.service\_root collabora
- sudo coolconfig set net.proto IPv4
- sudo coolconfig set memproportion 30.0
- sudo coolconfig set level debug
- sudo coolconfig set net.listen loopback
- sudo coolconfig set admin\_console.enable true
- sudo systemctl restart coolwsd

the service fails :  
sudo systemctl status coolwsd  
× coolwsd.service - Collabora Online WebSocket Daemon  
Loaded: loaded (/lib/systemd/system/coolwsd.service; disabled; preset: enabled)  
Active: failed (Result: exit-code) since Tue 2025-03-25 01:33:38 CET; 7h ago  
Duration: 8min 21.229s  
Main PID: 19570 (code=exited, status=70)  
CPU: 1.889s

```shell
mars 25 01:33:38 ************ coolwsd[19570]: wsd-19570-19589 2025-03-25 01:33:38.080113 +0100 [prisoner_poll] TRC ppoll start, timeoutMicroS: 64000000 size 1| net/Socket.cpp:503
mars 25 01:33:38 r ************ coolwsd[19570]: wsd-19570-19570 2025-03-25 01:33:38.738148 +0100 [coolwsd] TRC Have 0 new children.| wsd/COOLWSD.cpp:3682
mars 25 01:33:38 ************ coolwsd[19570]: Shutdown requested while starting up. Exiting.
mars 25 01:33:38 ************ coolwsd[19570]: wsd-19570-19570 2025-03-25 01:33:38.738311 +0100 [coolwsd] FTL Shutdown requested while starting up. Exiting.| wsd/COOLWSD.cpp:3686
mars 25 01:33:38 ************ coolwsd[19570]: Forced Exit with code: 70
mars 25 01:33:38 ************ coolwsd[19570]: wsd-19570-19570 2025-03-25 01:33:38.738357 +0100 [coolwsd] FTL Forced Exit with code: 70| common/Util.cpp:721
mars 25 01:33:38 ************ systemd[1]: coolwsd.service: Main process exited, code=exited, status=70/SOFTWARE
mars 25 01:33:38 ************ systemd[1]: coolwsd.service: Failed with result 'exit-code'.
mars 25 01:33:38 ************ systemd[1]: Stopped coolwsd.service - Collabora Online WebSocket Daemon.
mars 25 01:33:38 ************ systemd[1]: coolwsd.service: Consumed 1.889s CPU time.

```

Journalctl is more verbose and displays the following errors

```shell
mars 20 11:22:20 ************ coolwsd[15832]: coolforkit version details: 24.04.13.2 - ded56d8ff7
mars 20 11:22:20 ************ coolwsd[15832]: frk-15832-15832 2025-03-20 11:22:20.162268 +0100 [coolforkit-ns] INF RLIMIT_STACK is 8192000 bytes after setting it to 8192000 bytes.| common/Seccomp.cpp:295
mars 20 11:22:20 ************ coolwsd[15832]: frk-15832-15832 2025-03-20 11:22:20.162282 +0100 [coolforkit-ns] INF Ignored setting RLIMIT_FSIZE to unlimited.| common/Seccomp.cpp:301
mars 20 11:22:20 ************ coolwsd[15832]: frk-15832-15832 2025-03-20 11:22:20.162295 +0100 [coolforkit-ns] INF Ignored setting RLIMIT_NOFILE to unlimited.| common/Seccomp.cpp:301
mars 20 11:22:20 ************ coolwsd[15832]: frk-15832-15832 2025-03-20 11:22:20.162338 +0100 [coolforkit-ns] DBG About to init Kit UnitBase with test []| kit/ForKit.cpp:981
mars 20 11:22:20 ************ coolwsd[15832]: Neither /opt/collaboraoffice/program/libsofficeapp.so or /opt/collaboraoffice/program/libmergedlo.so exist.
mars 20 11:22:20 rafiki-nextcloud coolwsd[15832]: frk-15832-15832 2025-03-20 11:22:20.162448 +0100 [coolforkit-ns] FTL Neither /opt/collaboraoffice/program/libsofficeapp.so or /opt/collaboraoffice/program/libmergedlo.so exist.| kit/Kit.cpp:4059
mars 20 11:22:20 ************ coolwsd[15832]: Failed to preinit lokit.
mars 20 11:22:20 ************ coolwsd[15832]: frk-15832-15832 2025-03-20 11:22:20.162478 +0100 [coolforkit-ns] FTL Failed to preinit lokit.| kit/ForKit.cpp:1004
mars 20 11:22:20 ************ coolwsd[15832]: Forced Exit with code: 70
mars 20 11:22:20 ************ coolwsd[15832]: frk-15832-15832 2025-03-20 11:22:20.162512 +0100 [coolforkit-ns] FTL Forced Exit with code: 70| common/Util.cpp:721

```

It seems that 2 libraries are missing and I have not been able to find them anywhere. AmI doing something wrong ? How to fix this

Many thanks.  
PS : I have also tried to use buil-in CODE but I have not been able to solve redirection problems `/nextcloud/apps/richdocumentscode/hosting/capabilities` is visible from the internet but nextcloud cannot internally connect to it, it’s another story but if anybody has a trick out of the box (for nftables and nginx config files correct config.) I would be very grateful.

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [March 25, 2025, 12:00pm UTC](https://forum.collaboraonline.com/t/installation-with-packages-fails-with-missing-libs-libsofficeapp-so-libmergedlo-so/3548/2 "2025-03-25T12:00:14Z")

</div>

hii @g-vidal Welcome to collabora online forums 🙂

This issue typically arises when the Collabora Office core package is not installed.

**Verify if Collabora Office is Installed**

Collabora Online (coolwsd) depends on the Collabora Office core package to provide document editing capabilities. Check if it’s installed:

```auto
dpkg -l | grep collabora

```

If you do not see `collaboraoffice*` packages listed, that means the core office suite is missing.

#### **2. Manually Install Collabora Office**

Install the necessary packages manually:

> **[Installation from packages — SDK https://sdk.collaboraonline.com/ documentation](https://sdk.collaboraonline.com/docs/installation/Installation_from_packages.html)**

[https://www.collaboraonline.com/code/](https://www.collaboraonline.com/code/)

This should install Collabora Office core in `/opt/collaboraoffice/`.

Try and let me know

Thanks  
Darshan

---

<div class="post-metadata">

**Author:** ![g-vidal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/g-vidal/32/1606_2.png) [@g-vidal](https://forum.collaboraonline.com/u/g-vidal)\
**Post date:** [March 25, 2025, 2:42pm UTC](https://forum.collaboraonline.com/t/installation-with-packages-fails-with-missing-libs-libsofficeapp-so-libmergedlo-so/3548/3 "2025-03-25T14:42:57Z")

</div>

[quote=“darshan, post:2, topic:3548”]  
`dpkg -l | grep collabora`  
[/quote]`

Collabora seems properly installed (see my dpkg output further on) except if some package is missing (I am not able to check). It is installed in `/opt/collaboraoffice/` as requested.  
I investigate a bit further : there is no package `collabora-online-brand` in the archive as quoted in the tutorial but a `code-brand`. With apt search the situation is weird, `collaboraoffice` pretends not to be installed even if dpkg says that it is and files are really present !!  
I’ll try to install `collaboraoffice` and report.

```shell
code-brand/inconnu,now 24.04-34 all [installé]
  Collabora Online Development Edition (CODE) branding

collaboraoffice/inconnu 24.04.13-2 arm64
  Brand module for Collabora Office 24.04

collaboraoffice-debuginfo/inconnu 24.04.13-2 amd64
  Brand module for Collabora Office 24.04 (debug info)

```

dpkg -l | grep collabora

```shell
ii collaboraoffice 24.04.13-2 amd64 Brand module for Collabora Office 24.04
ii collaboraoffice-ure 24.04.13-2 amd64 UNO Runtime Environment
ii collaboraofficebasis-calc 24.04.13-2 amd64 Calc module for Collabora Office 24.04
ii collaboraofficebasis-core 24.04.13-2 amd64 Core module for Collabora Office 24.04
ii collaboraofficebasis-draw 24.04.13-2 amd64 Draw module for Collabora Office 24.04
ii collaboraofficebasis-en-us 24.04.13-2 amd64 Language module for Collabora Office 24.04, language en_US
ii collaboraofficebasis-extension-pdf-import 24.04.13-2 amd64 PDF import extension for Collabora Office 24.04
ii collaboraofficebasis-graphicfilter 24.04.13-2 amd64 Graphic filter module for Collabora Office 24.04
ii collaboraofficebasis-images 24.04.13-2 amd64 Images module for Collabora Office 24.04
ii collaboraofficebasis-impress 24.04.13-2 amd64 Impress module for Collabora Office 24.04
ii collaboraofficebasis-math 24.04.13-2 amd64 Math module for Collabora Office 24.04
ii collaboraofficebasis-ooofonts 24.04.13-2 amd64 3rd party free fonts for Collabora Office 24.04
ii collaboraofficebasis-ooolinguistic 24.04.13-2 amd64 Linguistic module for Collabora Office 24.04
ii collaboraofficebasis-writer 24.04.13-2 amd64 Writer module for Collabora Office 24.04

```

---

<div class="post-metadata">

**Author:** ![g-vidal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/g-vidal/32/1606_2.png) [@g-vidal](https://forum.collaboraonline.com/u/g-vidal)\
**Post date:** [March 25, 2025, 3:13pm UTC](https://forum.collaboraonline.com/t/installation-with-packages-fails-with-missing-libs-libsofficeapp-so-libmergedlo-so/3548/4 "2025-03-25T15:13:30Z")

</div>

We are on the good track but not yet arrived !  
I reinstalled with `sudo apt install --reinstall collaboraoffice collaboraoffice-dict-fr collaboraofficebasis-calc collaboraofficebasis-core collaboraofficebasis-extension-pdf-import collaboraofficebasis-fr collaboraofficebasis-graphicfilter collaboraofficebasis-images collaboraofficebasis-impress collaboraofficebasis-libreofficekit-data collaboraofficebasis-math collaboraofficebasis-ooofonts collaboraofficebasis-ooolinguistic collaboraofficebasis-python-script-provider collaboraofficebasis-writer collaboraofficebasis-xsltfilter `  
(the --reinstall option is just to overwrite the doubtfull installs) then ` sudo apt install --reinstall coolwsd` and finally all the ` sudo coolconfig ...`

collabora is now found but not `/libmergedlo.so` another package should miss, but which one ?  
Thanks for your help @darshan !

```shell
TRC dlopen(/opt/collaboraoffice/program/libmergedlo.so, RTLD_GLOBAL|RTLD_NOW)| kit/Kit.cpp:4035
FTL Failed to load /opt/collaboraoffice/program/libmergedlo.so:
Failed to preinit lokit.
FTL Failed to preinit lokit.| kit/ForKit.cpp:1004
Forced Exit with code: 70
FTL Forced Exit with code: 70| common/Util.cpp:721

```

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [March 26, 2025, 11:17am UTC](https://forum.collaboraonline.com/t/installation-with-packages-fails-with-missing-libs-libsofficeapp-so-libmergedlo-so/3548/5 "2025-03-26T11:17:14Z")

</div>

Hi @g-vidal! Glad to see the error has changed 🙂

I’ll dig into the logs further and see if I can find anything helpful. Also let me know if you find the solution will be good for other user if they encounter similar issue

Cheers  
Darshan

---

<div class="post-metadata">

**Author:** ![g-vidal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/g-vidal/32/1606_2.png) [@g-vidal](https://forum.collaboraonline.com/u/g-vidal)\
**Post date:** [March 26, 2025, 9:17pm UTC](https://forum.collaboraonline.com/t/installation-with-packages-fails-with-missing-libs-libsofficeapp-so-libmergedlo-so/3548/6 "2025-03-26T21:17:12Z")

</div>

Sorry, I have been a bit lazy waiting another miracle from you 😇 😉…  
Looking for it in python world I found

```shell
merge3 bad luck :
A Python implementation of 3-way merge of texts.

Given BASE, OTHER, THIS, tries to produce a combined text incorporating the changes from both BASE->OTHER and BASE->THIS. All three will typically be sequences of lines.

```

But looking for it in java world worked !

```shell
Fichier Paquets
/usr/lib/libreoffice/program/libmergedlo.so libreoffice-core, libreoffice-core-nogui [non mips64el] 

```

then

```shell
sudo apt install libreoffice-core-nogui
sudo cp /usr/lib/libreoffice/program/libmergedlo.so /opt/collaboraoffice/program

```

And ooooopps we are facing a major dependency mess. At every start it requests àa new \*lo.so lib ! All those are finally provided by creating an `LD_LIBRARY_PATH= /usr/lib/libreoffice/program` to add the necessary path.

The new problem is :

```shell
libicuuc.so.73: cannot open shared object file

```

Unfortunately the `bookworm` version for `libicuuc.so` is 72 and not 73 ! (trixie is 76 !) I have use the shameful trick `sudo ln -s libicuio.so.72.1 ./libicuio.so.73`

But all drives always to :  
`FTL Failed to load /opt/collaboraoffice/program/libmergedlo.so` even if it is there

```shell
ls /opt/collaboraoffice/program/libmergedlo.so
/opt/collaboraoffice/program/libmergedlo.so*

```

My feeling is that the upgrades to buster and bookworm have changed deep things in the system and we need to recompile on a fresh debian or ubuntu that will not inherit dust of previous installs. (I am not dev and did not study computer science,please forgive this remark if dummy).

Finally I jumped over this trp by editing `/etc/ld.so.conf.d/x86_64-linux-gnu.conf` and adding `/opt/collaboraoffice/program` and `/usr/lib/libreoffice/program` then linked `sudo ln -s /usr/lib/libreoffice/program/unorc /usr/lib/x86_64-linux-gnu` `sudo ln -s /usr/lib/libreoffice/program/services.rdb /usr/lib/x86_64-linux-gnu` `sudo ln -s /usr/lib/libreoffice/program/types.rdb /usr/lib/x86_64-linux-gnu` to fall into the final hole :  
`SIG Fatal signal received: SIGSEGV code: 1 for address: 0x8` which is definately too deep for me !

Next step seems to me to try to recompile, I tried before this discussion but it was real a pain beyond my competencies and I gave up. It seems that dependencies are note properly handled for bookworm in the scripts or source code.

I have succeeded the compilation Two packages are missing in dpendencies `libzstd-dev` and `xvfb` (for make check). check failed on `cypress\_test\_ but the rest was OK.  
I cannot find inthe doc howto make a debian package even if There are som useful files in debian folder. Can you help please?

I stay tuned for any suggestion.

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [March 27, 2025, 11:06am UTC](https://forum.collaboraonline.com/t/installation-with-packages-fails-with-missing-libs-libsofficeapp-so-libmergedlo-so/3548/7 "2025-03-27T11:06:22Z")

</div>

> [@g-vidal](#):
>
> I have succeeded the compilation Two packages are missing in dpendencies `libzstd-dev` and `xvfb` (for make check). check failed on `cypress\_test\_ but the rest was OK.

oh okay i see the missing dependency can you please try to install this ?

```auto
sudo apt update
sudo apt install libzstd-dev xvfb

```

Maybe it will hopefully fix the issue

---

<div class="post-metadata">

**Author:** ![g-vidal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/g-vidal/32/1606_2.png) [@g-vidal](https://forum.collaboraonline.com/u/g-vidal)\
**Post date:** [March 27, 2025, 11:25am UTC](https://forum.collaboraonline.com/t/installation-with-packages-fails-with-missing-libs-libsofficeapp-so-libmergedlo-so/3548/8 "2025-03-27T11:25:19Z")

</div>

I did and the compil finished properly. I am now trying to use the local install ater uninstalling the deb package. I may have to recompile to install in the `usr/bin` and not in the `usr/local/bin` or change the `/lib/systemd/system/coolwsd.service`.

I’ll keep on investigating

---

<div class="post-metadata">

**Author:** ![g-vidal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/g-vidal/32/1606_2.png) [@g-vidal](https://forum.collaboraonline.com/u/g-vidal)\
**Post date:** [March 28, 2025, 9:48am UTC](https://forum.collaboraonline.com/t/installation-with-packages-fails-with-missing-libs-libsofficeapp-so-libmergedlo-so/3548/9 "2025-03-28T09:48:15Z")

</div>

I succeeded to compile online install it but I fall back into the same problem plus another one `systemctl start coolwsd.service` fails… (we’ll see that later).

this time it is looking for `libsofficeapp.so` and `libmergedlo.so` in the path where I dowloaded them and not in the place where _online_ is installed. My feeling is that the management of dependencies fails because the workaround to work without installing a full collabora office does not manage properly the location of the libreoffice libs.

I wil try the clean procedure.

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [March 28, 2025, 10:29am UTC](https://forum.collaboraonline.com/t/installation-with-packages-fails-with-missing-libs-libsofficeapp-so-libmergedlo-so/3548/10 "2025-03-28T10:29:11Z")

</div>

Awesome 🎉 @g-vidal . I am really happy to see the progress.

I am also trying to find the last bit but if you finish it first please ping me it will be really helpful 🙂

Thanks  
Darshan

---

<div class="post-metadata">

**Author:** ![g-vidal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/g-vidal/32/1606_2.png) [@g-vidal](https://forum.collaboraonline.com/u/g-vidal)\
**Post date:** [March 28, 2025, 11:36am UTC](https://forum.collaboraonline.com/t/installation-with-packages-fails-with-missing-libs-libsofficeapp-so-libmergedlo-so/3548/11 "2025-03-28T11:36:23Z")

</div>

Thanks for your time and patience @darshan.  
`libreoffice` compilation is progressing smoothly at full load…

Let me clarify two points from [This doc](https://collaboraonline.github.io/post/build-code/#build-code-n-lo), in the case of recommended procedure.

1. Do we have to install `libreoffice`
2. Do we declare `export LOCOREPATH=$(pwd)` in the same way as in the ugly procedure ?
  - If yes it should be the first element of chapter _Building CODE_ instead of being the last of chapter _Option B - Download a Daily-Built Archive of LibreOffice (Quick & Dirty)_
  - if not how do we handle the `--with-lokit-path` and `--with-lo-path` options to compile **CODE**

**EDIT**  
I guess i have found the solution, declare `LOCOREPATH` from inside `libreoffice` folder.  
Finished libreoffice compilation and coolwsd compilation and install.

---

<div class="post-metadata">

**Author:** ![g-vidal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/g-vidal/32/1606_2.png) [@g-vidal](https://forum.collaboraonline.com/u/g-vidal)\
**Post date:** [March 28, 2025, 6:07pm UTC](https://forum.collaboraonline.com/t/installation-with-packages-fails-with-missing-libs-libsofficeapp-so-libmergedlo-so/3548/12 "2025-03-28T18:07:10Z")

</div>

Getting closer to the solution but…

It seems that the full compilation of `libreoffice` yields successful compilation of `coolwsd` that starts and runs further than before (?) but it fails with the following messages (when started with command `sudo -u cool /usr/bin/coolwsd --version --o:sys_template_path=/opt/cool/systemplate --o:child_root_path=/opt/cool/child-roots --o:file_server_root_path=/usr/share/coolwsd --o:cache_files.path=/opt/cool/cache` ) :

```shell
frk-783477-783477 2025-03-28 18:54:13.989655 +0100 [coolforkit-caps] ERR Capability cap_sys_chroot is not set for the coolforkit program.| kit/ForKit.cpp:247                                                                       
frk-783477-783477 2025-03-28 18:54:13.989764 +0100 [coolforkit-caps] ERR Capability cap_fowner is not set for the coolforkit program.| kit/ForKit.cpp:247                                                                           
frk-783477-783477 2025-03-28 18:54:13.989801 +0100 [coolforkit-caps] ERR Capability cap_chown is not set for the coolforkit program.| kit/ForKit.cpp:247                                                                            
Capabilities are not set for the coolforkit program.
frk-783477-783477 2025-03-28 18:54:13.989857 +0100 [coolforkit-caps] FTL Capabilities are not set for the coolforkit program.| kit/ForKit.cpp:995      
Please make sure that the current partition was *not* mounted with the 'nosuid' option.
frk-783477-783477 2025-03-28 18:54:13.989896 +0100 [coolforkit-caps] FTL Please make sure that the current partition was *not* mounted with the 'nosuid' option.| kit/ForKit.cpp:996                                                
If you are on SLES11, please set 'file_caps=1' as kernel boot option.
frk-783477-783477 2025-03-28 18:54:13.989946 +0100 [coolforkit-caps] FTL If you are on SLES11, please set 'file_caps=1' as kernel boot option.| kit/ForKit.cpp:997        

```

still investigating…  
**EDIT**  
Thanks to [this post](https://community.zextras.com/forum/carbonio-general-thread/carbonio-docs-server-capabilities-are-not-set-for-the-coolforkit-program/) from _anahuac_ I solved the capabilities

```shell
sudo setcap cap_fowner,cap_chown,cap_mknod,cap_sys_chroot=ep coolforkit-caps
sudo setcap cap_sys_admin=ep coolmount

```

AND … we fall again in the same problem 😭 😭 :

```shell
frk-783573-783573 2025-03-28 19:16:18.145853 +0100 [coolforkit-caps] FTL Neither /home/ *****/Logiciels/Collabora/libreoffice/instdir/program/libsofficeapp.so or /home/***** /Logiciels/Collabora/libreoffice/instdir/program/libmergedlo.so exist.| kit/Kit.cpp:4074                                                     
Failed to preinit lokit.
frk-783573-783573 2025-03-28 19:16:18.146113 +0100 [coolforkit-caps] FTL Failed to preinit lokit.| kit/ForKit.cpp:1004                                     
Forced Exit with code: 70
frk-783573-783573 2025-03-28 19:16:18.146218 +0100 [coolforkit-caps] FTL Forced Exit with code: 70| common/Util.cpp:721                                    

```

It can’t read because user `cool` does not have acces to my home. A workaround is maybe to compile from `cool` home, the libraries being then readable. I’ll check.

---

<div class="post-metadata">

**Author:** ![g-vidal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/g-vidal/32/1606_2.png) [@g-vidal](https://forum.collaboraonline.com/u/g-vidal)\
**Post date:** [March 29, 2025, 9:16am UTC](https://forum.collaboraonline.com/t/installation-with-packages-fails-with-missing-libs-libsofficeapp-so-libmergedlo-so/3548/13 "2025-03-29T09:16:27Z")

</div>

At last some good news !

```shell
office version details: { "ProductName": "Collabora Office", "ProductVersion": "24.04", "ProductExtension": ".14.0", "BuildId": "9751c938364a0961142e507e74eb27ab6902f7c3", "BuildConfig": "'--enable-hardening-flags' '--enable-mpl-subset' '--with-vendor=Collabora' '--disable-community-flavor' '--with-branding=icon-themes/galaxy/brand_cp' '--with-system-dicts' '--with-myspell-dicts' '--with-system-zlib' '--disable-poppler' '--enable-cairo-rgba' '--without-system-cairo' '--without-system-fontconfig' '--without-system-freetype' '--without-system-graphite' '--without-system-harfbuzz' '--without-system-openssl' '--without-system-libpng' '--without-system-libxml' '--without-system-jpeg' '--without-system-expat' '--without-system-curl' '--without-system-icu' '--without-system-nss' '--without-system-jars' '--without-system-postgresql' '--without-java' '--without-junit' '--without-help' '--with-linker-hash-style=both' '--with-fonts' '--with-docrepair-fonts' '--enable-noto-font' '--with-galleries=no' '--with-theme=colibre colibre_svg' '--with-external-thes-dir=/usr/share/mythes' '--with-external-hyph-dir=/usr/share/hyphen' '--with-external-dict-dir=/usr/share/hunspell' '--disable-dbus' '--enable-extension-integration' '--disable-odk' '--disable-kf5' '--disable-gtk3' '--disable-qt5' '--disable-gstreamer-1-0' '--disable-evolution2' '--disable-gio' '--disable-gui' '--disable-scripting-beanshell' '--disable-scripting-javascript' '--disable-ext-wiki-publisher' '--disable-report-builder' '--disable-ext-nlpsolver' '--disable-sdremote' '--disable-sdremote-bluetooth' '--disable-postgresql-sdbc' '--disable-firebird-sdbc' '--disable-randr' '--disable-ext-numbertext' '--enable-epm' '--enable-python=internal' '--disable-online-update' '--disable-dconf' '--enable-mergelibs' '--with-package-format=deb rpm' '--enable-release-build' '--with-lang=ar bg ca cs da de el en-US en-GB eo es eu fi fr gl he hr hu id is it ja ko lo nb nl oc pl pt pt-BR sq ru sk sl sv tr uk vi zh-CN zh-TW' '--disable-lotuswordpro' '--disable-lpsolve' '--enable-symbols' '--enable-sal-log' '--without-templates' '--with-buildconfig-recorded' '--without-package-format' '--prefix=/usr' '--srcdir=/home/cool/Logiciels/Collabora/libreoffice' '--enable-option-checking=fatal'" }
Ready to accept connections on port 9980.

```

It seems to work like a charm with the command :

```shell
sudo -u cool /usr/bin/coolwsd --version --o:sys_template_path=/home/cool/Logiciels/Collabora/online/systemplate --o:child_root_path=/home/cool/Logiciels/Collabora/online/child-roots --o:file_server_root_path=/usr/share/coolwsd --o:cache_files.path=/home/cool/Logiciels/Collabora/online/cache

```

What I did is :

- transform cool user as a normal user with home and bash shell
- compile with cool user `libreoffice /collabora fork` following collabora doc
- compile with cool user online with `LOCOREPATH` being the libreoffice path and option `--prefix=/usr`
- install online

Remaining problem systemd service fails with :  
`coolwsd.service: Failed at step NAMESPACE spawning /usr/bin/coolwsd: No such file or directory`

---

<div class="post-metadata">

**Author:** ![g-vidal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/g-vidal/32/1606_2.png) [@g-vidal](https://forum.collaboraonline.com/u/g-vidal)\
**Post date:** [March 30, 2025, 12:39pm UTC](https://forum.collaboraonline.com/t/installation-with-packages-fails-with-missing-libs-libsofficeapp-so-libmergedlo-so/3548/14 "2025-03-30T12:39:48Z")

</div>

Some more good neews :

```shell
sudo systemctl status coolwsd
● coolwsd.service - Collabora Online WebSocket Daemon
     Loaded: loaded (/lib/systemd/system/coolwsd.service; disabled; preset: enabled)
     Active: active (running) since Sun 2025-03-30 14:11:18 CEST; 11min ago
   Main PID: 1973681 (coolwsd)
      Tasks: 12 (limit: 19134)
     Memory: 447.5M
        CPU: 9.014s
     CGroup: /system.slice/coolwsd.service
             ├─1973681 /usr/bin/coolwsd --version --o:sys_template_path=/home/cool/Logiciels/Collabora/online/systemplate --o:child_root_path=/home/cool/Logiciels/Collabora/online/child-roots --o:file_server_>
             ├─1973685 /usr/bin/coolforkit-ns --systemplate=/home/cool/Logiciels/Collabora/online/systemplate --lotemplate=/home/cool/Logiciels/Collabora/libreoffice/instdir --childroot=/home/cool/Logiciels/C>
             ├─1973691 /usr/bin/coolforkit-ns --systemplate=/home/cool/Logiciels/Collabora/online/systemplate --lotemplate=/home/cool/Logiciels/Collabora/libreoffice/instdir --childroot=/home/cool/Logiciels/C>
             ├─1973703 /usr/bin/coolforkit-ns --systemplate=/home/cool/Logiciels/Collabora/online/systemplate --lotemplate=/home/cool/Logiciels/Collabora/libreoffice/instdir --childroot=/home/cool/Logiciels/C>
             ├─1973704 /usr/bin/coolforkit-ns --systemplate=/home/cool/Logiciels/Collabora/online/systemplate --lotemplate=/home/cool/Logiciels/Collabora/libreoffice/instdir --childroot=/home/cool/Logiciels/C>
             └─1973705 /usr/bin/coolforkit-ns --systemplate=/home/cool/Logiciels/Collabora/online/systemplate --lotemplate=/home/cool/Logiciels/Collabora/libreoffice/instdir --childroot=/home/cool/Logiciels/C>

```

To reach this workaround I used the following `/lib/systemd/system/coolwsd.service` with the following modifications :

- comment EnvironmentFile `#EnvironmentFile=-/etc/sysconfig/coolwsd`
- comment ProtectHome `#ProtectHome=yes`
- replace :

```shell
    #ExecStart=/usr/bin/coolwsd --version \
    #--o:sys_template_path=/opt/cool/systemplate \
    #--o:child_root_path=/opt/cool/child-roots \
    #--o:file_server_root_path=/usr/share/coolwsd \
    #--o:cache_files.path=/opt/cool/cache

```

with :

```shell
    ExecStart=/usr/bin/coolwsd --version \
    --o:sys_template_path=/home/cool/Logiciels/Collabora/online/systemplate \
    --o:child_root_path=/home/cool/Logiciels/Collabora/online/child-roots \
    --o:file_server_root_path=/usr/share/coolwsd \
    --o:cache_files.path=/home/cool/Logiciels/Collabora/online/cache

```

I hope this workaround may enable to find a proper procedure. Thanks for the help, ready to test a new procedure.

using compilation in `/home/cool`

---

<div class="post-metadata">

**Author:** ![g-vidal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/g-vidal/32/1606_2.png) [@g-vidal](https://forum.collaboraonline.com/u/g-vidal)\
**Post date:** [March 31, 2025, 4:51pm UTC](https://forum.collaboraonline.com/t/installation-with-packages-fails-with-missing-libs-libsofficeapp-so-libmergedlo-so/3548/15 "2025-03-31T16:51:12Z")

</div>

Hi @darshan, to finish up with my analysis I tried to reinstall from debian packages and it failed ! I t seems that :

- even if the search package says so the lib `libsofficeapp.so` is not present in any package meanwhile it is present in the compiled by hand `libreoffice` with path `.inststdir/program/`
- using the `instdir` from libreoffice the compilation finishes properly but I am wondering if the build package process copies all the vecessaries libs in `/opt/collaboraoffice/program`

I have tried to copy the lib files from `libreoffice/instdir/program` into the package installed coolwsd but I get _SIGSEV_ errors.  
Could you please tell me howto build the debian package from my compilation and I’ll try to install it and report.

---

<div class="post-metadata">

**Author:** ![g-vidal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/g-vidal/32/1606_2.png) [@g-vidal](https://forum.collaboraonline.com/u/g-vidal)\
**Post date:** [April 4, 2025, 5:48pm UTC](https://forum.collaboraonline.com/t/installation-with-packages-fails-with-missing-libs-libsofficeapp-so-libmergedlo-so/3548/16 "2025-04-04T17:48:34Z")

</div>

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](https://collaboraonline.github.io/post/build-code/)
- 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

```shell
[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.
