Coolwsd dont starting while socket error

Hello all
I dont find seems error in this topic & need advice

Brief description of the problem. coolwsd service won’t start because it can’t create listening on port 9980

short supplement:
IPv6 turned ON & OFF - problem is still here.
runned in LXD container on Ubuntu 24.04

ssl.enable false
ssl.termination true
net.proto IPv4
net.listen 127.0.0.1

Hii @Vlad welcome to collabora online forum

Can you please check if the port is already in use ?

 sudo lsof -i :9980 

If a process is listed, terminate it

No services running on port 9980.
As u can see on early attached screenshot, only apache on 80(http) and sysresolver on 53(DNS) still working.
зображення

@Vlad can yyou recheck your network configuration settings ?

On systems where localhost resolves to IPv6 [::1] address first, when net.proto is all and net.listen is loopback, coolwsd unexpectedly listens on [::1] only.
           You need to change net.proto to IPv4, if you want to use 127.0.0.1.

https://sdk.collaboraonline.com/docs/installation/Configuration.html?highlight=ipv4#network-settings

coolconfig set ssl.enable false
coolconfig set ssl.termination true
coolconfig set net.proto IPv4
coolconfig set net.listen 127.0.0.1

im turned UP IPv6 in sysctl & coolwsd.xml - problem is not resolved

Maybe LXD has some resource issue here. I see the file descriptor error in screenshot. Can you check if it’s a LXD container issue and not COOLWsd problem…

If coolwsd is running inside an LXD container:

  • File Descriptor Limit: Ensure the container has sufficient file descriptors:

ulimit -n 65535

AppArmor Profiles: Check if AppArmor is blocking the process:

sudo aa-status

  • If coolwsd appears under profiles in enforce mode, you may need to adjust or disable the profile.
1 Like


Solution is: disable coolwsd in apparmor

aa-disable coolwsd

My great respect for Help to Darshan!

1 Like

Your Welcome @Vlad

Thanks,
Darshan