I use FireJail “FJ”] to sandbox many of my regular programs. It worked well for me in Mint KDE & Maui prior to changing to openSUSE Tumbleweed, & it also has been working well for me in oS TW., until a few weeks ago. Since then, all but one program continue to work correctly with FJ, in both my PCs. However suddenly, for no reason i’ve yet determined, a few weeks ago one specific pgm stopped working with FJ… but only in my Tower [it continues to be fine in my Lappy]. That pgm is KeePassXC “KP”].
KP continues to work fine in Tower if i run it naked, ie, not in FJ. For the past few weeks though, it no longer launches with my usual custom FJ launcher. Konsole reveals what happens:
gooeygirl@linux-Tower:~> **firejail --protocol=unix -- keepassxc**
Reading profile /etc/firejail/keepassxc.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Warning: a protocol list is present, the new list "unix" will not be installed
Parent pid 16689, child pid 16690
Child process initialized in 45.22 ms
process 6: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/etc/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
D-Bus not built with -rdynamic so unable to print a backtrace
Parent is shutting down, bye...
gooeygirl@linux-Tower:~>
In comparison, this is what correct operation looks like [this comes from one of my TW VMs, but is how my Tower itself also used to behave (btw, the green text is NOT a real error; it denotes no internet access, which is the whole point of using the “[i]protocol=unix” option)]:
gooeygirl@linux-bgps:~> **firejail --protocol=unix -- keepassxc**
Reading profile /etc/firejail/keepassxc.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Warning: a protocol list is present, the new list "unix" will not be installed
Parent pid 19039, child pid 19040
Child process initialized in 17.43 ms
Qt: Session management error: Could not open network socket
Parent is shutting down, bye...
gooeygirl@linux-bgps:~>
Omitting the unix option does not help. Removing & reinstalling FJ & KP does not help.
I tried to investigate the red = my colouring, above, for simple clarity in this post] error message’s information, but did not get anywhere:
- " “/etc/machine-id”: No such file or directory
" → is incorrect; this file does exist, & still has correct root ownership & permissions -rw-rw-rw-]. 1. I looked at "man dbus-uuidgen
". I took note of:
The primary usage of dbus-uuidgen is to run in the post-install script of a D-Bus package like this:
*** dbus-uuidgen --ensure***
This will ensure that ***/var/lib/dbus/machine-id*** exists and has the uuid in it. It won't overwrite an existing uuid, since this id should remain fixed for a single machine until the next reboot at least.
OPTIONS
**--ensure=FILENAME]**
If a filename is not given, defaults to localstatedir/lib/dbus/machine-id (localstatedir is usually /var). If this file exists then it will be
validated, and a failure code returned if it contains the wrong thing. If the file does not exist, it will be created with a new uuid in it. On
success, prints no output.
I visually confirmed that /var/lib/dbus/machine-id does also exist & with correct root ownership], indeed it is merely a symlink back to /etc/machine-id. Disbelieving it would help, i executed dbus-uuidgen --ensure … it returned nothing, which according to the man-page is supposedly good news.
I have nothing else to try, no idea why this fault arose, its root cause, nor how to fix it.
Does anyone have any suggestions please?