Rtkit-daemon error

Running journalctl -p 3 -b i get infinite rtkit-daemon logs in which apparently some rtkit function cannot find an UID.
The messages are like this:

lug 24 21:07:45 alex-eos rtkit-daemon[860]: dbus_message_get_unix_user() failed: Could not get UID of name ':1.41': no such name

I understand that could be some audio issue.

inxi -Aa:

Audio:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio
    driver: snd_hda_intel v: kernel bus-ID: 00:03.0 chip-ID: 8086:0c0c
    class-ID: 0403
  Device-2: Intel 9 Series Family HD Audio vendor: Gigabyte 9
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8ca0
    class-ID: 0403
  Device-3: NVIDIA GM204 High Definition Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    link-max: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.1
    chip-ID: 10de:0fbb class-ID: 0403
  Device-4: Logitech G432 Gaming Headset
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 3-4:2 chip-ID: 046d:0a9c class-ID: 0300
    serial: 000000000000
  API: ALSA v: k6.4.5-zen1-1-zen status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 0.3.75 status: active with: 1: pipewire-pulse
    status: off 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl

yay -Qs pipe

[alex@alex-eos ~]$ yay -Qs pipe
local/gst-plugin-pipewire 1:0.3.75-2
    Multimedia graph framework - pipewire plugin
local/libpipeline 1.5.7-1
    a C library for manipulating pipelines of subprocesses in a flexible and convenient way
local/libpipewire 1:0.3.75-2
    Low-latency audio/video router and processor - client library
local/libwireplumber 0.4.14-1
    Session / policy manager implementation for PipeWire - client library
local/pipewire 1:0.3.75-2
    Low-latency audio/video router and processor
local/pipewire-alsa 1:0.3.75-2
    Low-latency audio/video router and processor - ALSA configuration
local/pipewire-audio 1:0.3.75-2
    Low-latency audio/video router and processor - Audio support
local/pipewire-jack 1:0.3.75-2
    Low-latency audio/video router and processor - JACK support
local/pipewire-pulse 1:0.3.75-2
    Low-latency audio/video router and processor - PulseAudio replacement
local/pv 1.7.0-1
    A terminal-based tool for monitoring the progress of data through a pipeline.
local/texlive-music 2023.66594-19 (texlive)
    TeX Live - Music packages
local/wireplumber 0.4.14-1
    Session / policy manager implementation for PipeWire

neofetch:

[alex@alex-eos ~]$ neofetch
                     ./o.                  alex@alex-eos 
                   ./sssso-                ------------- 
                 `:osssssss+-              OS: EndeavourOS Linux x86_64 
               `:+sssssssssso/.            Host: H97-HD3 
             `-/ossssssssssssso/.          Kernel: 6.4.5-zen1-1-zen 
           `-/+sssssssssssssssso+:`        Uptime: 14 mins 
         `-:/+sssssssssssssssssso+/.       Packages: 1144 (pacman) 
       `.://osssssssssssssssssssso++-      Shell: bash 5.1.16 
      .://+ssssssssssssssssssssssso++:     Resolution: 1280x1024, 1920x1080 
    .:///ossssssssssssssssssssssssso++:    WM: i3 
  `:////ssssssssssssssssssssssssssso+++.   Theme: Arc-Dark [GTK2/3] 
`-////+ssssssssssssssssssssssssssso++++-   Icons: Qogir-dark [GTK2/3] 
 `..-+oosssssssssssssssssssssssso+++++/`   Terminal: xfce4-terminal 
   ./++++++++++++++++++++++++++++++/:.     Terminal Font: Source Code Pro 11 
  `:::::::::::::::::::::::::------``       CPU: Intel i5-4460 (4) @ 3.400GHz 
                                           GPU: NVIDIA GeForce GTX 970 
                                           GPU: Intel HD Graphics 
                                           Memory: 1606MiB / 11669MiB 

                                                                   
                                                                  

There was just another pipewire update. Maybe it fixes your issue?

welcome @crotalo have fun on the purpleroads :enos:

looks mor elike an issue with dbus and username and group not evenly setup (what should be that automatiocally)

sudo pacman -Sy dbus reinstalling dbus… could solve it… it simply looks screwed Could not get UID of name ':1.41': no such name

Thank you @joekamprad !
I tried resinstalling dbus but the log is still there.
Using $find /etc/systemd -name *.service -type l -a -xtype f -printf %f\n;
i just saw that i am running wireplumber and pipewire-session-manager.
Is it okay to have them both up?

Here is the output

[alex@alex-eos ~]$ find /etc/systemd -name \*.service -type l -a -xtype f -printf %f\\n;
xdg-user-dirs-update.service
wireplumber.service
pipewire-session-manager.service
cups.service
bluetooth.service
systemd-timesyncd.service
display-manager.service
avahi-daemon.service
firewalld.service
NetworkManager.service
cups.service
dbus-org.freedesktop.timesync1.service
NetworkManager-wait-online.service
dbus-org.bluez.service
dbus-org.freedesktop.nm-dispatcher.service
dbus-org.freedesktop.Avahi.service
dbus-org.fedoraproject.FirewallD1.service
getty@tty1.service

Also adding output of systemctl status:

[alex@alex-eos ~]$ systemctl status
● alex-eos
    State: running
    Units: 404 loaded (incl. loaded aliases)
     Jobs: 0 queued
   Failed: 0 units
    Since: Tue 2023-07-25 02:56:59 CEST; 1h 39min left
  systemd: 253.7-1-arch
  Tainted: local-hwclock
   CGroup: /
           β”œβ”€init.scope
           β”‚ └─1 /usr/lib/systemd/systemd --switched-root --system --deserialize=31
           β”œβ”€system.slice
           β”‚ β”œβ”€NetworkManager.service
           β”‚ β”‚ └─516 /usr/bin/NetworkManager --no-daemon
           β”‚ β”œβ”€accounts-daemon.service
           β”‚ β”‚ └─542 /usr/lib/accounts-daemon
           β”‚ β”œβ”€avahi-daemon.service
           β”‚ β”‚ β”œβ”€477 "avahi-daemon: running [alex-eos.local]"
           β”‚ β”‚ └─484 "avahi-daemon: chroot helper"
           β”‚ β”œβ”€colord.service
           β”‚ β”‚ └─543 /usr/lib/colord
           β”‚ β”œβ”€cups.service
           β”‚ β”‚ └─530 /usr/bin/cupsd -l
           β”‚ β”œβ”€dbus.service
           β”‚ β”‚ └─478 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd->
           β”‚ β”œβ”€firewalld.service
           β”‚ β”‚ └─486 /usr/bin/python /usr/bin/firewalld --nofork --nopid
           β”‚ β”œβ”€lightdm.service
           β”‚ β”‚ β”œβ”€533 /usr/bin/lightdm
           β”‚ β”‚ └─541 /usr/lib/Xorg :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novts>
           β”‚ β”œβ”€mnt-storage.mount
           β”‚ β”‚ └─418 /usr/bin/mount.ntfs-3g /dev/sdb1 /mnt/storage -o rw
           β”‚ β”œβ”€polkit.service
           β”‚ β”‚ └─487 /usr/lib/polkit-1/polkitd --no-debug
           β”‚ β”œβ”€rtkit-daemon.service
           β”‚ β”‚ └─854 /usr/lib/rtkit-daemon
           β”‚ β”œβ”€systemd-journald.service
           β”‚ β”‚ └─293 /usr/lib/systemd/systemd-journald
           β”‚ β”œβ”€systemd-logind.service
           β”‚ β”‚ └─481 /usr/lib/systemd/systemd-logind
           β”‚ β”œβ”€systemd-timesyncd.service
           β”‚ β”‚ └─473 /usr/lib/systemd/systemd-timesyncd
           β”‚ β”œβ”€systemd-udevd.service
           β”‚ β”‚ └─udev
           β”‚ β”‚   └─309 /usr/lib/systemd/systemd-udevd
           β”‚ β”œβ”€upower.service
           β”‚ β”‚ └─862 /usr/lib/upowerd
           β”‚ └─wpa_supplicant.service
           β”‚   └─598 /usr/bin/wpa_supplicant -u -s -O /run/wpa_supplicant
           └─user.slice
             └─user-1000.slice
               β”œβ”€session-2.scope
               β”‚ β”œβ”€  677 lightdm --session-child 13 20
               β”‚ β”œβ”€  709 i3
               β”‚ β”œβ”€  726 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
               β”‚ β”œβ”€  734 /usr/bin/dunst
               β”‚ β”œβ”€  746 i3bar --bar_id=bar-0 --socket=/run/user/1000/i3/ipc-socket.709
               β”‚ β”œβ”€  753 nm-applet
               β”‚ β”œβ”€  754 picom
               β”‚ β”œβ”€  755 /usr/bin/python3 /usr/share/system-config-printer/applet.py
               β”‚ β”œβ”€  796 i3blocks -c /home/alex/.config/i3/i3blocks.conf
               β”‚ β”œβ”€ 5682 /usr/lib/firefox/firefox
               β”‚ β”œβ”€ 5759 /usr/lib/firefox/firefox -contentproc -parentBuildID 20230711154437 -prefsLe>
               β”‚ β”œβ”€ 5819 /usr/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 320>
               β”‚ β”œβ”€ 5882 /usr/lib/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 377>
               β”‚ β”œβ”€ 6154 /usr/lib/firefox/firefox -contentproc -childID 7 -isForBrowser -prefsLen 321>
               β”‚ β”œβ”€ 7517 xfce4-terminal
               β”‚ β”œβ”€ 7531 bash
               β”‚ β”œβ”€ 8374 /usr/lib/firefox/firefox -contentproc -childID 9 -isForBrowser -prefsLen 321>
               β”‚ β”œβ”€13782 /usr/lib/firefox/firefox -contentproc -parentBuildID 20230711154437 -prefsLe>
               β”‚ β”œβ”€13785 /usr/lib/firefox/firefox -contentproc -parentBuildID 20230711154437 -sandbox>
               β”‚ β”œβ”€18225 /usr/lib/firefox/firefox -contentproc -childID 23 -isForBrowser -prefsLen 32>
               β”‚ β”œβ”€21121 /usr/lib/firefox/firefox -contentproc -childID 30 -isForBrowser -prefsLen 32>
               β”‚ β”œβ”€22310 /usr/lib/firefox/firefox -contentproc -childID 33 -isForBrowser -prefsLen 32>
               β”‚ β”œβ”€25223 /usr/lib/firefox/firefox -contentproc -childID 37 -isForBrowser -prefsLen 32>
               β”‚ β”œβ”€26216 lvim -u /home/alex/.local/share/lunarvim/lvim/init.lua /var/log/pacman.log
               β”‚ β”œβ”€26217 /usr/bin/nvim --embed -u /home/alex/.local/share/lunarvim/lvim/init.lua /var>
               β”‚ β”œβ”€27518 bash
               β”‚ β”œβ”€28802 /usr/lib/firefox/firefox -contentproc -childID 38 -isForBrowser -prefsLen 32>
               β”‚ β”œβ”€28883 /usr/lib/firefox/firefox -contentproc -childID 39 -isForBrowser -prefsLen 32>
               β”‚ β”œβ”€29013 /usr/lib/firefox/firefox -contentproc -childID 40 -isForBrowser -prefsLen 32>
               β”‚ β”œβ”€30059 /usr/bin/perl /home/alex/.config/i3/scripts/cpu_usage
               β”‚ β”œβ”€30076 mpstat 1 1
               β”‚ β”œβ”€30082 systemctl status
               β”‚ └─30083 less
               └─user@1000.service
                 β”œβ”€init.scope
                 β”‚ β”œβ”€699 /usr/lib/systemd/systemd --user
                 β”‚ └─700 "(sd-pam)"
                 └─session.slice
                   β”œβ”€at-spi-dbus-bus.service
                   β”‚ β”œβ”€859 /usr/lib/at-spi-bus-launcher
                   β”‚ β”œβ”€879 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibili>
                   β”‚ └─903 /usr/lib/at-spi2-registryd --use-gnome-session
                   β”œβ”€dbus.service
                   β”‚ └─719 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --s>
                   β”œβ”€gvfs-daemon.service
                   β”‚ β”œβ”€797 /usr/lib/gvfsd
                   β”‚ └─819 /usr/lib/gvfsd-fuse /run/user/1000/gvfs -f
                   β”œβ”€pipewire-pulse.service
                   β”‚ └─13981 /usr/bin/pipewire-pulse
                   β”œβ”€pipewire.service
                   β”‚ └─877 /usr/bin/pipewire
                   └─wireplumber.service
                     └─878 /usr/bin/wireplumber

Running dbus-monitor also i get a lot of messages:

signal time=1690278164.296737 sender=:1.5 -> destination=(null destination) serial=1478 path=/com/github/chjj/compton; interface=com.github.chjj.compton; member=win_unmapped
   uint32 14680647
signal time=1690278164.296754 sender=:1.5 -> destination=(null destination) serial=1479 path=/com/github/chjj/compton; interface=picom.Compositor; member=WinUnmapped
   uint32 14680647
signal time=1690278164.296776 sender=:1.5 -> destination=(null destination) serial=1480 path=/com/github/chjj/compton; interface=com.github.chjj.compton; member=win_destroyed
   uint32 14680647
signal time=1690278164.296790 sender=:1.5 -> destination=(null destination) serial=1481 path=/com/github/chjj/compton; interface=picom.Compositor; member=WinDestroyed
   uint32 14680647
method call time=1690278164.598009 sender=:1.4006 -> destination=org.freedesktop.DBus serial=1 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello
method return time=1690278164.598074 sender=org.freedesktop.DBus -> destination=:1.4006 serial=1 reply_serial=1
   string ":1.4006"
signal time=1690278164.598084 sender=org.freedesktop.DBus -> destination=(null destination) serial=7705 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.4006"
   string ""
   string ":1.4006"
signal time=1690278164.598115 sender=org.freedesktop.DBus -> destination=:1.4006 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.4006"
method call time=1690278164.598141 sender=:1.4006 -> destination=org.freedesktop.DBus serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameHasOwner
   string "org.freedesktop.portal.Desktop"
method return time=1690278164.598152 sender=org.freedesktop.DBus -> destination=:1.4006 serial=3 reply_serial=2
   boolean false
signal time=1690278164.598815 sender=org.freedesktop.DBus -> destination=:1.4006 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
   string ":1.4006"
signal time=1690278164.598828 sender=org.freedesktop.DBus -> destination=(null destination) serial=7706 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.4006"
   string ":1.4006"
   string ""
method call time=1690278164.606076 sender=:1.4007 -> destination=org.freedesktop.DBus serial=1 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello
method return time=1690278164.606153 sender=org.freedesktop.DBus -> destination=:1.4007 serial=1 reply_serial=1
   string ":1.4007"
signal time=1690278164.606349 sender=org.freedesktop.DBus -> destination=(null destination) serial=7707 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.4007"
   string ""
   string ":1.4007"
signal time=1690278164.606363 sender=org.freedesktop.DBus -> destination=:1.4007 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.4007"
method call time=1690278164.606393 sender=:1.4007 -> destination=org.freedesktop.DBus serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameHasOwner
   string "org.freedesktop.portal.Desktop"
method return time=1690278164.606398 sender=org.freedesktop.DBus -> destination=:1.4007 serial=3 reply_serial=2
   boolean false
signal time=1690278164.606403 sender=org.freedesktop.DBus -> destination=:1.4007 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
   string ":1.4007"
signal time=1690278164.606407 sender=org.freedesktop.DBus -> destination=(null destination) serial=7708 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.4007"
   string ":1.4007"
   string ""

This is only a part of the output since i get a new entry every second or so.

I am thinking on reinstalling from scratch, i have no idea on what’s happening :open_mouth:

wireplumber.service
pipewire-session-manager.service

these are different things … you may thinking of pipewire-media-session
… what would replacing wireplumber …

still thinking something with dbus is gone mad on you…
D-Bus is completely under control from systemd now on arch so this is nothing you would setup on your own or edit any configs for…
rtkit ? could be the culprit too :wink:
systemctl status rtkit-daemon.service
you can try restarting it to see if it stops the spamming:
sudo systemctl restart rtkit-daemon.service

I just logged in today, and the spam issue seems to have disappeared. It’s a bit puzzling because I’m not entirely sure what caused it to go away. However, I can share some recent changes I made, which might be related (I am currently Dualbooting Linux and Windows on two separate SSD):

  1. I switched linux time to RTC, before was localtime to avoid sync problem with windows.
  2. Removed an i3block script i had wrote to check controller battery status, which inside was calling upower (some guy on the internet had the same issue and he also had a script calling upower, and he fixed it by deactivating it).
  3. I installed realtime-privileges and added my user to the realtime group.
  4. I reinstalled brutally rtkit with β€œ$ sudo pacman -S rtkit”

The issue seemed to persist even after implementing these changes and with consequent reboots.
Today i just logged in on windows until now.
I’m still not sure which specific change resolved the problem or if the Windows login had any influence, but i am definitely happy it went away.
Thank you for the help!

This is rtkit status at the moment.

[alex@alex-eos ~]$ systemctl status rtkit-daemon.service
● rtkit-daemon.service - RealtimeKit Scheduling Policy Service
     Loaded: loaded (/usr/lib/systemd/system/rtkit-daemon.service; disabled; preset: disabled)
     Active: active (running) since Tue 2023-07-25 23:30:53 CEST; 1h 35min left
   Main PID: 1267 (rtkit-daemon)
      Tasks: 3 (limit: 13865)
     Memory: 624.0K
        CPU: 14ms
     CGroup: /system.slice/rtkit-daemon.service
             └─1267 /usr/lib/rtkit-daemon

lug 25 23:30:54 alex-eos rtkit-daemon[1267]: Supervising 1 threads of 1 processes of 1 users.
lug 25 23:30:54 alex-eos rtkit-daemon[1267]: Supervising 1 threads of 1 processes of 1 users.
lug 25 23:30:57 alex-eos rtkit-daemon[1267]: Supervising 1 threads of 1 processes of 1 users.
lug 25 23:30:57 alex-eos rtkit-daemon[1267]: Supervising 1 threads of 1 processes of 1 users.
lug 25 23:30:57 alex-eos rtkit-daemon[1267]: Supervising 1 threads of 1 processes of 1 users.
lug 25 23:30:57 alex-eos rtkit-daemon[1267]: Supervising 1 threads of 1 processes of 1 users.
lug 25 21:37:33 alex-eos rtkit-daemon[1267]: Supervising 1 threads of 1 processes of 1 users.
lug 25 21:37:33 alex-eos rtkit-daemon[1267]: Supervising 1 threads of 1 processes of 1 users.
lug 25 21:37:36 alex-eos rtkit-daemon[1267]: Supervising 1 threads of 1 processes of 1 users.
lug 25 21:37:36 alex-eos rtkit-daemon[1267]: Supervising 1 threads of 1 processes of 1 users.

This shouldn’t have anything to do with it.

1 Like