Jump to content

systemd: systemctl show <service> prints "Failed to parse bus message: Invalid argument" before output (Debian Bug #964926) on Armbian Buster Current


Marecki

Recommended Posts

Hello,

 

In case you haven't heard about this yet, the fact that Armbian Buster Current comes with a 5.8 kernel means it suffers from this Debian bug:

 

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964926

 

which us caused by combining this kernel version (as well as future ones) with systemd built using older kernel headers. This bug is mostly harmless but it does at the very least prevent Ansible from managing services on affected systems due to 'systemctl show' exiting with a non-zero exit code.

 

Unfortunately with the official Debian Buster kernel version being 4.19 it is unlikely that this will be fixed on their end.

Link to comment
Share on other sites

Unfortunately upgrading systemd to the version from buster-backports doesn't help, that version has apparently still been built using older kernel headers:

 

# systemctl --version
systemd 245 (245.6-1~bpo10+1)
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid
# systemctl show armbian-hardware-monitor.service >/dev/null
Failed to parse bus message: Invalid argument
# echo $?
1

 

(this is from a system which has been restarted several times since the systemd upgrade)

 

Downgrading the kernel obviously does help but it's a bit of a blunt instrument, especially if one wants to run Ansible regularly rather than just for initial set-up.

Link to comment
Share on other sites

4 hours ago, Marecki said:

Unfortunately upgrading systemd to the version from buster-backports doesn't help, that version has apparently still been built using older kernel headers:

 

Oh oops works on bullseye :)

 

Option 2 I posted in that github issue is to mask the CAP_BPF capability, I just wasn't able to figure out how

Link to comment
Share on other sites

On 9/15/2020 at 12:24 PM, Igor said:


Another option is to help fix the problem?

 

The "proper" solution, i.e. one which requires neither downgrading the kernel nor masking new capabilities, is pretty straightforward - recompile Buster systemd packages against Linux-5.8+ kernel headers. I thought my original explanation ("systemd built against kernel headers older than 5.8 does not work") made this clear, in hindsight I should have been more explicit.

Edited by Marecki
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines