Closed brknkfr closed 2 years ago
Noticed the same this week on an unprivileged LXC container running Debian 10.
After digging a little bit around this looks like some kind of missing file capabilities. The current ones for /usr/bin/coolmount looks like the following:
root@myhost:~# getcap /usr/bin/coolmount
/usr/bin/coolmount = cap_sys_admin+ep
After doing the following to set the same file capabilities like already set for /usr/bin/coolforkit:
root@myhost:~# setcap cap_chown,cap_fowner,cap_sys_chroot,cap_mknod+ep /usr/bin/coolmount
root@myhost:~# service coolmount restart
the issue disappears and the connection to the 9980 port of coolwsd isn't timing out anymore (getting a HTTP 200 now) for me.
DISCLAIMER: Not sure if only one of these new file capabilities are required so use at your own risk because i don't know the impact of setting too much capabilities.
Seems to work again after setting the capabilities. Hopefully there will be a reaction of the collabora people to this.
Same Problem - Same fix. Thank you! I've been looking for a solution for many hours.
This was posted by @timar in https://github.com/CollaboraOnline/online/issues/5155#issuecomment-1257175825:
/usr/bin/coolmount
needscap_sys_admin
privilege, because this privilege is required for the mount syscall. If you remove this privilege and addcap_chown,cap_fowner,cap_sys_chroot,cap_mknod
instead, then the check for mount will fail, and bind mounting will not be used. So, it fixes your problem, but not the way you expected. The real fix was pushed, and COOL/CODE 22.05.6.3 will contain it. In short: unexpectedly in some cases mount works but unmount doesn't, therefore the code has to check for success of both mount and unmount before enabling bind mounting.
Describe the bug I installed the most recent
coolwsd
(version 22.05.5.3-1) on an unprivileged lxc container (debian 11 bullseye on amd64). It seems that coolwsd isn't starting up properly. It is falling into a strangeprisoner_poll
loop and a connection to port 9980 is not possible (curl -k http://127.0.0.1:9980 times out). The bug is probably related to https://github.com/CollaboraOnline/online/issues/5155.To Reproduce
After that, it repeats following message:
Logs This is the full log until ctrl+c, when starting coolwsd manually as user
cool
with/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
Full Log