[GH-ISSUE #3360] Cannot start Libreoffice with the latest Firejail #2111

Closed
opened 2026-05-05 08:47:21 -06:00 by gitea-mirror · 24 comments
Owner

Originally created by @youknow16 on GitHub (Apr 15, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3360

Originally created by @youknow16 on GitHub (Apr 15, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3360
Author
Owner

@matu3ba commented on GitHub (Apr 17, 2020):

Please dont link to images, if possible, because they may be removed.
The error is

[context="user"] caught unexpected com.sun.start.deployment.DeloymentException: 
Extension Manager: failed to read data entry in configuration backend db: 
file:////home/user/.config/libreoffice/XXX/backenddb.xml

Looks like this may be unrelated.
Libreoffice profiles may just break.

Please try resetting your profile and report.
Meta: Are you running libreoffice as superuser?

If the problem persists:
It is weird that the program fails to read from that path, because the libreoffice profile contains noblacklist ${HOME}/.config/libreoffice.
What is your output of firejail --debug libreoffice ?

<!-- gh-comment-id:615408728 --> @matu3ba commented on GitHub (Apr 17, 2020): Please dont link to images, if possible, because they may be removed. The error is ``` [context="user"] caught unexpected com.sun.start.deployment.DeloymentException: Extension Manager: failed to read data entry in configuration backend db: file:////home/user/.config/libreoffice/XXX/backenddb.xml ``` Looks like this may be [unrelated](https://ask.libreoffice.org/en/question/136435/lo-wont-start/). Libreoffice profiles may just [break](https://bugs.documentfoundation.org/show_bug.cgi?id=98027). Please try resetting your profile and report. Meta: Are you running libreoffice as superuser? If the problem persists: It is weird that the program fails to read from that path, because the libreoffice profile contains `noblacklist ${HOME}/.config/libreoffice`. What is your output of `firejail --debug libreoffice` ?
Author
Owner

@rusty-snake commented on GitHub (Apr 17, 2020):

Meta: Are you running libreoffice as superuser?

https://github.com/netblue30/firejail/wiki/Frequently-Asked-Questions#ive-noticed-the-title-bar-in-firefox-shows-as-superuser-is-this-normal

It is weird that the program fails to read from that path, because the libreoffice profile contains noblacklist ${HOME}/.config/libreoffice.

Describe clear and concise what changed calling firejail --noprofile PROGRAM in a shell.
The exact same thing happens with firejail --noprofile libreoffice.
The only way to run libreoffice is by directly running /usr/bin/libreoffice

<!-- gh-comment-id:615416913 --> @rusty-snake commented on GitHub (Apr 17, 2020): > Meta: Are you running libreoffice as superuser? https://github.com/netblue30/firejail/wiki/Frequently-Asked-Questions#ive-noticed-the-title-bar-in-firefox-shows-as-superuser-is-this-normal > It is weird that the program fails to read from that path, because the libreoffice profile contains noblacklist ${HOME}/.config/libreoffice. > Describe clear and concise what changed calling firejail --noprofile PROGRAM in a shell. The exact same thing happens with firejail --noprofile libreoffice. The only way to run libreoffice is by directly running /usr/bin/libreoffice
Author
Owner

@matu3ba commented on GitHub (Apr 19, 2020):

Searching $PATH for libreoffice
trying #/home/ThisUser/anaconda3/bin/libreoffice#
trying #/home/ThisUser/anaconda3/condabin/libreoffice#
trying #/usr/local/sbin/libreoffice#
trying #/usr/local/bin/libreoffice#
trying #/usr/sbin/libreoffice#
trying #/usr/bin/libreoffice#
Installing /run/firejail/mnt/seccomp/seccomp seccomp filter
Installing /run/firejail/mnt/seccomp/seccomp.32 seccomp filter
Installing /run/firejail/mnt/seccomp/seccomp.protocol seccomp filter
monitoring pid 10

I/O warning : failed to load external entity "/home/ThisUser/.config/libreoffice/4/user/config/javasettings_Linux_X86_64.xml"
javaldx failed!
Warning: failed to read path from javaldx

(soffice:27): dbind-WARNING **: 13:33:30.077: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Gtk-Message: 13:33:31.444: GtkDialog mapped without a transient parent. This is discouraged.
Sandbox monitor: waitpid 10 retval 10 status 19712

Parent is shutting down, bye...

I will check later, when I have time.

<!-- gh-comment-id:616245375 --> @matu3ba commented on GitHub (Apr 19, 2020): ``` Searching $PATH for libreoffice trying #/home/ThisUser/anaconda3/bin/libreoffice# trying #/home/ThisUser/anaconda3/condabin/libreoffice# trying #/usr/local/sbin/libreoffice# trying #/usr/local/bin/libreoffice# trying #/usr/sbin/libreoffice# trying #/usr/bin/libreoffice# Installing /run/firejail/mnt/seccomp/seccomp seccomp filter Installing /run/firejail/mnt/seccomp/seccomp.32 seccomp filter Installing /run/firejail/mnt/seccomp/seccomp.protocol seccomp filter monitoring pid 10 I/O warning : failed to load external entity "/home/ThisUser/.config/libreoffice/4/user/config/javasettings_Linux_X86_64.xml" javaldx failed! Warning: failed to read path from javaldx (soffice:27): dbind-WARNING **: 13:33:30.077: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. Gtk-Message: 13:33:31.444: GtkDialog mapped without a transient parent. This is discouraged. Sandbox monitor: waitpid 10 retval 10 status 19712 Parent is shutting down, bye... ``` I will check later, when I have time.
Author
Owner

@matu3ba commented on GitHub (Apr 20, 2020):

@youknow10 Oh boy, these error messages are most unhelpful.
Could be access related (owner of subfolders .config/libreoffice is not user), could be a bug/race condition in dbus. Could be related to setup.

Do you have JAVA_HOME=/opt/jdk or where is java installed?

<!-- gh-comment-id:616437259 --> @matu3ba commented on GitHub (Apr 20, 2020): @youknow10 Oh boy, these error messages are most unhelpful. Could be access related (owner of subfolders `.config/libreoffice` is not user), could be a bug/race condition in `dbus`. Could be related to [setup](https://github.com/woahbase/alpine-libreoffice/issues/1). Do you have `JAVA_HOME=/opt/jdk` or where is java installed?
Author
Owner

@matu3ba commented on GitHub (Apr 21, 2020):

@youknow10 what is the output of which java ?

<!-- gh-comment-id:617173677 --> @matu3ba commented on GitHub (Apr 21, 2020): @youknow10 what is the output of `which java` ?
Author
Owner

@rusty-snake commented on GitHub (Apr 21, 2020):

@youknow10 what happens with firejail --private --noprofile /usr/bin/libreoffice.

<!-- gh-comment-id:617251422 --> @rusty-snake commented on GitHub (Apr 21, 2020): @youknow10 what happens with `firejail --private --noprofile /usr/bin/libreoffice`.
Author
Owner

@matu3ba commented on GitHub (Apr 21, 2020):

@rusty-snake What does noblacklist ${PATH}/java evaluate?

@youknow10 Can you try to adjust the paths in etc/allow-java.inc ?
noblacklist /etc/java is the path in profile instead of /etc/alternatives/java
noblacklist /usr/lib/java instead of /usr/lib/jvm/java-11-openjdk-amd64/bin/java.
Change it to your setup and report.

<!-- gh-comment-id:617254007 --> @matu3ba commented on GitHub (Apr 21, 2020): @rusty-snake What does `noblacklist ${PATH}/java` evaluate? @youknow10 Can you try to adjust the paths in `etc/allow-java.inc` ? `noblacklist /etc/java` is the path in profile instead of `/etc/alternatives/java` `noblacklist /usr/lib/java` instead of `/usr/lib/jvm/java-11-openjdk-amd64/bin/java`. Change it to your setup and report.
Author
Owner

@matu3ba commented on GitHub (Apr 21, 2020):

@youknow10 What is the output of echo $PATH ?

<!-- gh-comment-id:617254817 --> @matu3ba commented on GitHub (Apr 21, 2020): @youknow10 What is the output of `echo $PATH` ?
Author
Owner

@matu3ba commented on GitHub (Apr 21, 2020):

@youknow10 What is your echo $PATH ?

<!-- gh-comment-id:617255790 --> @matu3ba commented on GitHub (Apr 21, 2020): @youknow10 What is your `echo $PATH` ?
Author
Owner

@rusty-snake commented on GitHub (Apr 21, 2020):

@youknow10 then it is caused by your LO config.

@matu3ba changing paths in allow-java.inc makes no sense, because noblacklist hasn't any effect if there is no blacklist.

<!-- gh-comment-id:617277909 --> @rusty-snake commented on GitHub (Apr 21, 2020): @youknow10 then it is caused by your LO config. @matu3ba changing paths in `allow-java.inc` makes no sense, because `noblacklist` hasn't any effect if there is no `blacklist`.
Author
Owner

@rusty-snake commented on GitHub (Apr 21, 2020):

Or some java files in your home or something else in your home.

<!-- gh-comment-id:617297894 --> @rusty-snake commented on GitHub (Apr 21, 2020): Or some java files in your home or something else in your home.
Author
Owner

@captaidman commented on GitHub (Apr 23, 2020):

I've never been able to run Libreoffice in firejail on Linux Mint 19.x. I can only run it outside of firejail. I'm starting to think I should switch to Ubuntu. Linux Mint + firejail is only giving me problems with the apps I use.

<!-- gh-comment-id:618285110 --> @captaidman commented on GitHub (Apr 23, 2020): I've never been able to run Libreoffice in firejail on Linux Mint 19.x. I can only run it outside of firejail. I'm starting to think I should switch to Ubuntu. Linux Mint + firejail is only giving me problems with the apps I use.
Author
Owner

@rusty-snake commented on GitHub (Apr 23, 2020):

works it with whitelisting?

libreoffice.local:

whitelist ${HOME}/.config/libreoffice
include whitelist-common.inc

If you run firejail --build /usr/bin/libreoffice, what additional (dot) files are whitelisted in your home.

Or some java files in your home or something else in your home.

Since --private works something in your home must be the cause.

<!-- gh-comment-id:618288914 --> @rusty-snake commented on GitHub (Apr 23, 2020): works it with whitelisting? libreoffice.local: ``` whitelist ${HOME}/.config/libreoffice include whitelist-common.inc ``` If you run `firejail --build /usr/bin/libreoffice`, what additional (dot) files are whitelisted in your home. > Or some java files in your home or something else in your home. Since `--private` works something in your home must be the cause.
Author
Owner

@rusty-snake commented on GitHub (Apr 23, 2020):

How can I add that --private to the profile?

Just add it, but then you can save your work.

If you just whitelist .config/libreoffice?
firejail '--whitelist=${HOME}/.config/libreoffice' /usr/bin/libreoffice

<!-- gh-comment-id:618417820 --> @rusty-snake commented on GitHub (Apr 23, 2020): > How can I add that --private to the profile? Just add it, but then you can save your work. If you just whitelist .config/libreoffice? `firejail '--whitelist=${HOME}/.config/libreoffice' /usr/bin/libreoffice`
Author
Owner

@rusty-snake commented on GitHub (Apr 23, 2020):

With just whitelist, I mean just. Remove include whitelist-common.inc form libreoffice.local.

<!-- gh-comment-id:618429934 --> @rusty-snake commented on GitHub (Apr 23, 2020): With just whitelist, I mean just. Remove `include whitelist-common.inc` form libreoffice.local.
Author
Owner

@matu3ba commented on GitHub (May 3, 2020):

@rusty-snake Would it make sense to label this firecfg, because it is a bug of the load-path (of the OS) ? I mean this looks like a mess on Linux Mint.

<!-- gh-comment-id:623085073 --> @matu3ba commented on GitHub (May 3, 2020): @rusty-snake Would it make sense to label this `firecfg`, because it is a bug of the load-path (of the OS) ? I mean this looks like a mess on Linux Mint.
Author
Owner

@matu3ba commented on GitHub (May 3, 2020):

Candidate for wiki FAQ #2792
"Linux Mint + firejail is only giving me problems with the apps I use."

<!-- gh-comment-id:623085358 --> @matu3ba commented on GitHub (May 3, 2020): [Candidate for wiki FAQ](https://github.com/netblue30/firejail/issues/3360#issuecomment-618285110) #2792 "Linux Mint + firejail is only giving me problems with the apps I use."
Author
Owner

@rusty-snake commented on GitHub (May 3, 2020):

Would it make sense to label this firecfg

No, because the firecfg label is for bugs/enhancements in/for firecfg.

<!-- gh-comment-id:623085873 --> @rusty-snake commented on GitHub (May 3, 2020): > Would it make sense to label this firecfg No, because the firecfg label is for bugs/enhancements in/for firecfg.
Author
Owner

@bbhtt commented on GitHub (Jul 9, 2020):

I've never been able to run Libreoffice in firejail on Linux Mint 19.x. I can only run it outside of firejail. I'm starting to think I should switch to Ubuntu. Linux Mint + firejail is only giving me problems with the apps I use.

I booted up a Mint 20 VM today to reproduce all Mint specific firejail issues and Libreoffice works perfectly fine under default firejail profiles.

Kernel: 5.4.0-40-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Cinnamon 4.6.6 Distro: Linux Mint 20 Ulyana 
  base: Ubuntu 20.04 focal 
$ firejail --version
firejail version 0.9.62
Compile time support:
	- AppArmor support is enabled
	- AppImage support is enabled
	- chroot support is enabled
	- file and directory whitelisting support is enabled
	- file transfer support is enabled
	- firetunnel support is enabled
	- networking support is enabled
	- overlayfs support is enabled
	- private-home support is enabled
	- seccomp-bpf support is enabled
	- user namespace support is enabled
	- X11 sandboxing support is enabled
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
which java
/usr/bin/java

profile.txt

Is this something specific to 19.3 or firejail 0.9.63?

<!-- gh-comment-id:655922530 --> @bbhtt commented on GitHub (Jul 9, 2020): > I've never been able to run Libreoffice in firejail on Linux Mint 19.x. I can only run it outside of firejail. I'm starting to think I should switch to Ubuntu. Linux Mint + firejail is only giving me problems with the apps I use. I booted up a Mint 20 VM today to reproduce all Mint specific firejail issues and Libreoffice works perfectly fine under default firejail profiles. ``` Kernel: 5.4.0-40-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 4.6.6 Distro: Linux Mint 20 Ulyana base: Ubuntu 20.04 focal $ firejail --version firejail version 0.9.62 Compile time support: - AppArmor support is enabled - AppImage support is enabled - chroot support is enabled - file and directory whitelisting support is enabled - file transfer support is enabled - firetunnel support is enabled - networking support is enabled - overlayfs support is enabled - private-home support is enabled - seccomp-bpf support is enabled - user namespace support is enabled - X11 sandboxing support is enabled echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games which java /usr/bin/java ``` [profile.txt](https://github.com/netblue30/firejail/files/4894847/profile.txt) Is this something specific to 19.3 or firejail 0.9.63?
Author
Owner

@rusty-snake commented on GitHub (Nov 9, 2020):

still an issue?

<!-- gh-comment-id:724217039 --> @rusty-snake commented on GitHub (Nov 9, 2020): still an issue?
Author
Owner

@ffff135 commented on GitHub (Dec 8, 2020):

Deleting ~/.config/libreoffice/ works, but I have to do it again every time after running LibreOffice, even when using firejail. I'm using the official LibreOffice AppImage on Debian GNU/Linux 10 (buster).

Command used to start LibreOffice:

$ firejail --appimage /usr/local/bin/LibreOffice-7.1.0.0.beta1-x86_64.AppImage
Mounting appimage type 2
Reading profile /etc/firejail/default.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Warning: networking feature is disabled in Firejail configuration file

** Note: you can use --noprofile to disable default.profile **

Parent pid 15609, child pid 15612

**     Warning: dropping all Linux capabilities     **
Child process initialized in 121.48 ms
javaldx failed!
Warning: failed to read path from javaldx

Parent is shutting down, bye...
AppImage unmounted

Firejail version info:

$ firejail --version
firejail version 0.9.58.2

Compile time support:
        - AppArmor support is enabled
        - AppImage support is enabled
        - chroot support is enabled
        - file and directory whitelisting support is enabled
        - file transfer support is enabled
        - networking support is enabled
        - overlayfs support is enabled
        - private-home support is enabled
        - seccomp-bpf support is enabled
        - user namespace support is enabled
        - X11 sandboxing support is enabled
<!-- gh-comment-id:741101667 --> @ffff135 commented on GitHub (Dec 8, 2020): Deleting ~/.config/libreoffice/ works, but I have to do it again every time after running LibreOffice, even when using firejail. I'm using the official LibreOffice AppImage on Debian GNU/Linux 10 (buster). Command used to start LibreOffice: ``` $ firejail --appimage /usr/local/bin/LibreOffice-7.1.0.0.beta1-x86_64.AppImage Mounting appimage type 2 Reading profile /etc/firejail/default.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-programs.inc Warning: networking feature is disabled in Firejail configuration file ** Note: you can use --noprofile to disable default.profile ** Parent pid 15609, child pid 15612 ** Warning: dropping all Linux capabilities ** Child process initialized in 121.48 ms javaldx failed! Warning: failed to read path from javaldx Parent is shutting down, bye... AppImage unmounted ``` Firejail version info: ``` $ firejail --version firejail version 0.9.58.2 Compile time support: - AppArmor support is enabled - AppImage support is enabled - chroot support is enabled - file and directory whitelisting support is enabled - file transfer support is enabled - networking support is enabled - overlayfs support is enabled - private-home support is enabled - seccomp-bpf support is enabled - user namespace support is enabled - X11 sandboxing support is enabled ```
Author
Owner

@ghost commented on GitHub (Dec 8, 2020):

$ firejail --appimage /usr/local/bin/LibreOffice-7.1.0.0.beta1-x86_64.AppImage

@ffff135 As you can see from your output posted above you're instructing firejail to use the default.profile, which isn't designed for LO. FYI, when using AppImages, explicitly append the --profile=foo option:

$ firejail --profile=/etc/firefox/libreoffice.profile --appimage  /usr/local/bin/LibreOffice-7.1.0.0.beta1-x86_64.AppImage
<!-- gh-comment-id:741210787 --> @ghost commented on GitHub (Dec 8, 2020): > $ firejail --appimage /usr/local/bin/LibreOffice-7.1.0.0.beta1-x86_64.AppImage @ffff135 As you can see from your output posted above you're instructing firejail to use the default.profile, which isn't designed for LO. FYI, when using AppImages, explicitly append the --profile=foo option: ``` $ firejail --profile=/etc/firefox/libreoffice.profile --appimage /usr/local/bin/LibreOffice-7.1.0.0.beta1-x86_64.AppImage ```
Author
Owner

@ffff135 commented on GitHub (Dec 8, 2020):

Oops, sorry about that. Running with firejail --profile=/etc/firejail/libreoffice.profile --appimage works correctly on my version of firejail. Thank you.

<!-- gh-comment-id:741230395 --> @ffff135 commented on GitHub (Dec 8, 2020): Oops, sorry about that. Running with `firejail --profile=/etc/firejail/libreoffice.profile --appimage` works correctly on my version of firejail. Thank you.
Author
Owner

@rusty-snake commented on GitHub (Jan 4, 2021):

I'm closing here due to inactivity, please fell free to request to reopen if you still have this issue.

<!-- gh-comment-id:753933001 --> @rusty-snake commented on GitHub (Jan 4, 2021): I'm closing here due to inactivity, please fell free to request to reopen if you still have this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2111
No description provided.