Carbonio Docs Serve...
 
Notifications
Clear all

[Solved] Carbonio Docs Server - Capabilities are not set for the coolforkit program

6 Posts
3 Users
4 Likes
688 Views
(@anahuac)
Joined: 11 months ago
Posts: 306
Topic starter  

I can't get Docs to work at all... then I decided to restart carbonio-docs-editor.service:

 

jun 23 00:42:38 master systemd[1]: Started Carbonio Docs Server.
jun 23 00:42:38 master coolwsd[561109]: Logging at information level to file: /opt/zextras/docs/log/docs-editor.log
jun 23 00:42:38 master coolwsd[561119]: /opt/zextras/docs/bin/coolmount: unmount failed to detach [/opt/zextras/docs/generated/child-roots/cool_test_mount]: Operation not permitted
.
jun 23 00:42:38 master coolwsd[561119]: /opt/zextras/docs/bin/coolmount: forced unmount of [/opt/zextras/docs/generated/child-roots/cool_test_mount] failed: Operation not permitted
.
jun 23 00:42:38 master coolwsd[561121]: /opt/zextras/docs/bin/coolmount: mount failed to bind [/opt/zextras/docs/generated/systemplate] to [/opt/zextras/docs/generated/child-roots/
cool_test_mount]: Operation not permitted.
jun 23 00:42:39 master coolwsd[561124]: /opt/zextras/docs/bin/coolforkit: Relink `/opt/zextras/common/lib/libPocoFoundation.so.94' with `/lib/x86_64-linux-gnu/libz.so.1' for IFUNC
symbol `crc32_z'
jun 23 00:42:39 master coolwsd[561124]: coolforkit version details: 22.05.12.4 - dist
jun 23 00:42:39 master coolwsd[561124]: Capabilities are not set for the coolforkit program.
jun 23 00:42:39 master coolwsd[561124]: Please make sure that the current partition was *not* mounted with the 'nosuid' option.
jun 23 00:42:39 master coolwsd[561124]: If you are on SLES11, please set 'file_caps=1' as kernel boot option.

 

Any ideas of what does that mean? 

 

Just to illustrate, I'll post here an output from a server where it loads as expected:

jun 23 00:43:56 carbteste1 systemd[1]: Started Carbonio Docs Server.
jun 23 00:43:56 carbteste1 coolwsd[292379]: Logging at information level to file: /opt/zextras/docs/log/docs-editor.log
jun 23 00:43:56 carbteste1 coolwsd[292384]: /opt/zextras/docs/bin/coolmount: forced unmount of [/opt/zextras/docs/generated/child-roots/cool_test_mount] failed: Permission denied.
jun 23 00:43:57 carbteste1 coolwsd[292386]: /opt/zextras/docs/bin/coolforkit: Relink `/opt/zextras/common/lib/libPocoFoundation.so.94' with `/lib/x86_64-linux-gnu/libz.so.1' for IF
UNC symbol `crc32_z'
jun 23 00:43:57 carbteste1 coolwsd[292386]: coolforkit version details: 22.05.12.4 - dist
jun 23 00:43:57 carbteste1 coolwsd[292386]: Init vcl
jun 23 00:43:59 carbteste1 coolwsd[292386]: preload: merged pdfimport log migrationoo2 deploymentgui mozbootstrap sdbt dbaxml writer ldapbe2 mysql_jdbc flat calc dbpool2 pcr dba bi
b ucpchelp1 vbaswobj scriptframe dlgprov vbaobj ucpdav1 emboleobj wpftwriter wpftimpress wpftdraw writerfilter xsec_xmlsec xmlsecurity solver migrationoo3 ucpcmis1 cached1 sw mswor
d textconversiondlgs sm slideshow PresentationMinimizer sdfilt sd scfilt scd sc wpftcalc oox LanguageTool hwp t602filter pdffilter msforms chartcore analysis chartcontroller protoc
olhandler bootstrap embobj smd pricing stocservices proxyfac animcore pythonloader reflection cairocanvas graphicfilter invocadapt sdd cui invocation svgfilter ucppkg1 storagefd sw
d scn namingservice dbase uuresolver binaryurp date expwrap introspection
jun 23 00:43:59 carbteste1 coolwsd[292386]: Disabled: cmdmail rptxml rptui rpt dbu mysqlc dbp odbc PresenterScreen ucpftp1 abp sdbc2
jun 23 00:44:02 carbteste1 coolwsd[292386]: Allowlisted languages: de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru
jun 23 00:44:04 carbteste1 coolwsd[292386]: Preloading dictionaries: de-DE en-US fr-FR it-IT nl-NL pt-BR ru-RU en-GB nl-BE pt-PT es-ES
jun 23 00:44:04 carbteste1 coolwsd[292386]: Preloading thesauri: de-DE en-US fr-FR it-IT nl-NL pt-BR ru-RU en-GB nl-BE pt-PT es-ES
jun 23 00:44:04 carbteste1 coolwsd[292386]: Preload icons
jun 23 00:44:04 carbteste1 coolwsd[292386]: Preload languages
jun 23 00:44:04 carbteste1 coolwsd[292386]: Preload fonts
jun 23 00:44:04 carbteste1 coolwsd[292386]: Preload config
jun 23 00:44:04 carbteste1 coolwsd[292658]: office version details: { "ProductName": "core", "ProductVersion": "22.05", "ProductExtension": ".12.3", "BuildId": "", "BuildConfig": "
'--libdir=/opt/zextras/docs' '--prefix=/opt/zextras/docs' '--enable-eot' '--enable-extension-integration' '--with-product-name=core' '--with-vendor=zextras' '--with-system-dicts'
'--with-myspell-dicts' '--with-system-zlib' '--without-helppack-integration' '--without-package-format' '--without-system-cairo' '--without-system-openssl' '--without-system-libpng
' '--without-system-libxml' '--without-system-jpeg' '--without-system-expat' '--without-system-boost' '--without-system-curl' '--without-system-icu' '--without-system-nss' '--witho
ut-system-jars' '--without-system-poppler' '--without-system-postgresql' '--without-java' '--without-junit' '--without-help' '--with-linker-hash-style=both' '--with-fonts' '--enabl
e-noto-font' '--with-galleries=no' '--with-theme=colibre_svg' '--disable-dbus' '--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-e
xt-nlpsolver' '--disable-sdremote' '--disable-sdremote-bluetooth' '--disable-postgresql-sdbc' '--disable-firebird-sdbc' '--disable-randr' '--enable-ext-numbertext' '--disable-ext-c
t2n' '--enable-epm' '--enable-python=system' '--disable-online-update' '--disable-dconf' '--enable-mergelibs' '--enable-release-build' '--with-lang=ALL' '--disable-lotuswordpro' '-
-disable-lpsolve' '--disable-symbols' '--disable-coinmp' '--disable-debug' '--disable-extension-update' '--srcdir=/tmp/docs-core/src/core-cp-22.05.12-3' '--enable-option-checking=f
atal'" }
jun 23 00:44:04 carbteste1 coolwsd[292379]: Ready to accept connections on port 10000.

 

 

 


   
Quote
(@anahuac)
Joined: 11 months ago
Posts: 306
Topic starter  

I also couldn't find carbonio-docs source code in Zextras github repository. I would like to take a look into it to see if I can figure it out.


   
ReplyQuote
(@anahuac)
Joined: 11 months ago
Posts: 306
Topic starter  

Ok... so I finally figured it out =)

Found what that "Capabilities are not set for the coolforkit program" means in CollaboraOnLIne source code

https://github.com/CollaboraOnline/online/blob/master/Makefile.am

Somehow coolforkit and coolmount didn't had it's capabilities... and this is how you fix it:

--------------------------------------------------------------------------------------------------

cd /opt/zextras/docs/bin

setcap cap_fowner,cap_chown,cap_mknod,cap_sys_chroot=ep coolforkit
setcap cap_sys_admin=ep coolmount

systemctl restart carbonio-docs-editor.service
--------------------------------------------------------------------------------------------------

Don't you worry, it sticks after reboot. I tested it.

After that keep an eye on /opt/zextras/docs/log/docs-editor.log to see if you need to fix any permissions.... in my case I didn't.

I finally got Docs working.

 

 


   
ReplyQuote
(@abkou)
Joined: 8 months ago
Posts: 5
 

it doesn't work for me. i already have the same errors so i need other to do this please


   
ReplyQuote
antonio
(@antonio)
Joined: 8 months ago
Posts: 43
 

@anahuac Hi,

Thanks for this. it "saved my service".

After the upgrade to 23.9 docs editor stopped work as stated here.

https://community.zextras.com/forum/carbonio-news/carbonio-community-edition-new-release/paged/9/#post-5921

 

At the end I found the "Capabilities are not set for the coolforkit program" message in my logs.

After using your solution, it's working now.

You said it sticks after reboot. As this worked before upgrade, I imagine it doesn't stick after upgrade. 🙁 Let's see.

 

Great job here. many thanks.

 


   
anahuac reacted
ReplyQuote
(@anahuac)
Joined: 11 months ago
Posts: 306
Topic starter  

I'm glad that fixed you issue with Docs... I'm still having problems after upgrade with documents and spreadsheets doesn't showing up.

I mean, Docs loads and I ca see all menus and option but no content, just this blank screen, like this:

Screenshot to blank Docs

And that's preventing me to upgrade from 23.7.0 to 23.9.0

I would love to have a quick fix for that issue =(


   
jfleite reacted
ReplyQuote