You are not logged in.
Hi all!
I have an issue regarding the user dbus-broker service. It doesn't start no matter what I do.
After searching for more than a week now I give in and reach out to you for a little help.
The system level dbus seemingly has no problem and runs ok.
My system is running flawlessly except for the sound system. No sound and no microphone.
I list the service and socket errors below.
The dbus socket:
journalctl --user -u dbus.socket
jan 25 22:09:09 strider-laptop systemd[968]: Starting D-Bus User Message Bus Socket...
jan 25 22:09:09 strider-laptop systemctl[976]: Failed to connect to user scope bus via local transport: No such file or directory
jan 25 22:09:09 strider-laptop systemd[968]: Listening on D-Bus User Message Bus Socket.
jan 25 22:10:04 strider-laptop systemd[968]: dbus.socket: Failed with result 'service-start-limit-hit'.
The dbus-broker service
journalctl --user -u dbus-broker.service
jan 25 22:10:04 strider-laptop systemd[968]: Starting D-Bus User Message Bus...
jan 25 22:10:04 strider-laptop dbus-broker-launch[2835]: Policy to allow eavesdropping in /usr/share/dbus-1/session.conf +31: Eavesdropping is deprecated and ignored
jan 25 22:10:04 strider-laptop dbus-broker-launch[2835]: Policy to allow eavesdropping in /usr/share/dbus-1/session.conf +33: Eavesdropping is deprecated and ignored
jan 25 22:10:04 strider-laptop systemd[968]: Started D-Bus User Message Bus.
jan 25 22:10:04 strider-laptop dbus-broker-launch[2835]: ERROR launcher_connect @ ../dbus-broker-36/src/launch/launcher.c +1253: No such file or directory
jan 25 22:10:04 strider-laptop dbus-broker-launch[2835]: launcher_run @ ../dbus-broker-36/src/launch/launcher.c +1424
jan 25 22:10:04 strider-laptop dbus-broker-launch[2835]: run @ ../dbus-broker-36/src/launch/main.c +152
jan 25 22:10:04 strider-laptop dbus-broker-launch[2835]: main @ ../dbus-broker-36/src/launch/main.c +178
jan 25 22:10:04 strider-laptop dbus-broker-launch[2835]: Exiting due to fatal error: -2
jan 25 22:10:04 strider-laptop dbus-broker[2877]: Dispatched 12 messages @ 8(±5)μs / message.
jan 25 22:10:04 strider-laptop systemd[968]: dbus-broker.service: Main process exited, code=exited, status=1/FAILURE
jan 25 22:10:04 strider-laptop systemd[968]: dbus-broker.service: Failed with result 'exit-code'.
jan 25 22:10:04 strider-laptop systemd[968]: dbus-broker.service: Start request repeated too quickly.
jan 25 22:10:04 strider-laptop systemd[968]: dbus-broker.service: Failed with result 'exit-code'.
jan 25 22:10:04 strider-laptop systemd[968]: Failed to start D-Bus User Message Bus.
The dbus environment variable:
echo $DBUS_SESSION_BUS_ADDRESS
unix:path=/run/user/1000/bus
I may have missed something so please let me know what else should I provide to get a proper feedback.
Also please sorry if I miss formatted. Let me know what I should look out for. This is my first ever post on a forum.
Thank you.
Last edited by LaptopKing (2025-01-28 21:05:32)
Offline
https://bbs.archlinux.org/viewtopic.php?id=295384 (unresolved)
Do you also (still) use PA intead of PW?
Offline
I use PW. I read that thread, but it didn't bring me forward. I tried reinstalling dbus. I only got a notification displayed once, when I followed these steps.
These are the steps I took.
Step 1: Reinstall and reenable dbus-daemon (old dbus)
Step 2: Reassign and relink old dbus service to dbus.service (both system and user)
Step 3: Reinstall systemd
Step 4: Reboot
Step 5: Reinstall dbus-broker (investigate this part (notification finally showed))
Step 6: Check dbus.service
It didn't fix my issue, and when the notification finally showed in my happines I just rebooted in hopes of everything is going to be fixed, but it didn't. I couldn't recreate this ever since then.
Offline
Please post your complete system journal for the boot:
sudo journalctl -b | curl -F 'file=@-' 0x0.st
Also how do you login/start your session? startx/xinit? Some DM called "ly"?
Offline
This is my system journal for the boot: https://0x0.st/8XwK.txt
I use xinit and lightdm for DM.
This is my .xinitrc:
#!/bin/sh
/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh
export SSH_AUTH_SOCK
[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
exec bspwm
Offline
lightdm doesn't use xinit unless you're using https://wiki.archlinux.org/title/Displa … _a_session
jan 26 10:59:15 strider-laptop dbus-broker-launch[820]: Access denied to service directory '/home/strider/.local/share/dbus-1/services'
jan 26 10:59:15 strider-laptop dbus-broker-launch[820]: Access denied to service directory '/home/strider/.local/share/flatpak/exports/share/dbus-1/services'
stat ~/.local/share/{flatpak/exports/share/,}dbus-1/services
Offline
I ran
stat ~/.local/share/{flatpak/exports/share/,}dbus-1/services
and these are my results:
File: /home/strider/.local/share/flatpak/exports/share/dbus-1/services
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 259,2 Inode: 6727551 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 1000/ strider) Gid: ( 1000/ strider)
Access: 2025-01-20 22:39:45.572553069 +0100
Modify: 2025-01-20 22:39:45.572553069 +0100
Change: 2025-01-20 23:30:37.390015250 +0100
Birth: 2025-01-20 22:39:45.572553069 +0100
File: /home/strider/.local/share/dbus-1/services
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 259,2 Inode: 8158818 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 1000/ strider) Gid: ( 1000/ strider)
Access: 2024-05-18 11:04:25.886513920 +0200
Modify: 2025-01-25 01:18:39.873529892 +0100
Change: 2025-01-25 01:18:39.873529892 +0100
Birth: 2024-05-18 11:04:25.886513920 +0200
I do not have xinit-xsession installed but I am pretty sure .xinitrc runs, because that is what starts bspwm for me.
Lightdm runs these two commands:
/usr/bin/lightdm
/usr/lib/Xorg :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
I may have been wrong about xinit. I do not know much about the DM world, I just set it up after installation somehow and it usually works.
I never really went into depth with DMs and how the x server works and how to set it up correctly.
Offline
stat ~/.local/share/dbus-1 ~/.local/share ~/.local ~
ps aux | grep dbus
You're running https://aur.archlinux.org/cgit/aur.git/ … ktop?h=dwm
Offline
I do not have dwm.git installed and I do not have a dwm.desktop file so I'm not sure if that is what really is running.
Should I install it and use it?
Here are my command results:
stat ~/.local/share/dbus-1 ~/.local/share ~/.local ~
File: /home/strider/.local/share/dbus-1
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 259,2 Inode: 8158781 Links: 3
Access: (0700/drwx------) Uid: ( 1000/ strider) Gid: ( 1000/ strider)
Access: 2024-05-18 11:04:25.886513920 +0200
Modify: 2025-01-25 01:18:39.873529892 +0100
Change: 2025-01-25 01:18:39.873529892 +0100
Birth: 2024-05-18 11:04:25.886513920 +0200
File: /home/strider/.local/share
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 259,2 Inode: 1966162 Links: 41
Access: (0700/drwx------) Uid: ( 1000/ strider) Gid: ( 1000/ strider)
Access: 2024-02-03 00:25:16.866667298 +0100
Modify: 2025-01-24 16:57:15.714500008 +0100
Change: 2025-01-24 16:57:15.714500008 +0100
Birth: 2024-02-03 00:25:16.866667298 +0100
File: /home/strider/.local
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 259,2 Inode: 1966084 Links: 7
Access: (0700/drwx------) Uid: ( 1000/ strider) Gid: ( 1000/ strider)
Access: 2024-02-03 00:25:12.870000494 +0100
Modify: 2024-06-08 21:01:19.824371730 +0200
Change: 2024-06-08 21:01:19.824371730 +0200
Birth: 2024-02-03 00:25:12.870000494 +0100
File: /home/strider
Size: 12288 Blocks: 24 IO Block: 4096 directory
Device: 259,2 Inode: 1966082 Links: 78
Access: (0755/drwxr-xr-x) Uid: ( 1000/ strider) Gid: ( 1000/ strider)
Access: 2024-02-03 00:20:53.065807877 +0100
Modify: 2025-01-26 10:59:22.233333908 +0100
Change: 2025-01-26 10:59:22.233333908 +0100
Birth: 2024-02-03 00:20:53.065807877 +0100
And here is the other one:
ps aux | grep dbus
dbus 592 0.0 0.0 8532 4396 ? Ss 10:59 0:00 /usr/bin/dbus-broker-launch --scope system --audit
dbus 593 0.0 0.0 5556 3572 ? S 10:59 0:16 dbus-broker --log 4 --controller 9 --machine-id b24e7f3716354020841d45d303120386 --max-bytes 536870912 --max-fds 4096 --max-matches 131072 --audit
cups 788 0.0 0.0 13168 5624 ? S 10:59 0:00 /usr/lib/cups/notifier/dbus dbus://
strider 110175 0.0 0.0 9420 6176 pts/0 S+ 21:08 0:00 grep dbus
Last edited by LaptopKing (2025-01-26 20:13:06)
Offline
So the path is fully accessible to your user, nothing obviously weird and I doubt that /home/strider bint 755 instead of 700 bothers dbus-broker.
The session bus isn't running, presuming because it commits suicie over the lacking access.
What's the situation w/ dbus-daemon instead of dbus-broker and what if you move away those service directories?
Offline
I installed dbus-daemon and tried to use it but it was extremely slow and the user dbus didn't run with daemon either.
Because of how slow it was I didn't even spend time to check for everything, instead reinstalled dbus-broker.
Should I attempt to reinstall my whole system instead?
Or maybe try something with a live boot and arch-chroot to remove every user config related to dbus and reinstall dbus-broker completely?
Or is it completely stupid and there is a way?
Also could it be something in my .config files that caused this?
As far as I remembered before this happened I played around with fontconfig and made a whole system update after a long time. Could that cause such problems?
Offline
I don't think that using dbus-daemon made anythink slower.
It's also very unlikely that this was caused by an update - the problem is with user services and pacman doesn't touch your $HOME
What I'd test is the behavior w/ a fresh user account, and then at least check the logs of the previous dbus-daemon run (maybe it has clearer error messages)
Offline
I don't think that using dbus-daemon made anythink slower.
I tried dbus-daemon again but I found that it is indeed a lot slower at least for me.
For it takes around 30 seconds to start anything except for the terminal which usually loaded pretty fast.
To be fair though with dbus-daemon at least I could make the user dbus service run and not throw an error.
My other errors, notification and sound didn't come back though and made the system unusable because of how slow it was for me.
What I'd test is the behavior w/ a fresh user account, and then at least check the logs of the previous dbus-daemon run (maybe it has clearer error messages)
I didn't have the time to try this properly so I'll check it, but as far as I remember the same thing happened to me with a new user as well.
I'll check back again with the new user tried.
Also should I consider reinstalling my system completely at this point?
Offline
25s and that's the dbus timeout because the daemon doesn't respond.
=> Post the journal.
Also should I consider reinstalling my system completely at this point?
No, in doubt you'll either inherit the problem with your $HOME or repeat the mistakes that got you here - it's better to understand what went wrong so you can avoid that in the future.
Offline
Ok, I understand it now. I didn't know about the timeout.
I'm ready to learn what went wrong and how to fix it and thank you for helping me.
Here is my journal after the boot:
https://0x0.st/888h.txt
Offline
jan 28 17:59:38 strider-laptop dbus-daemon[830]: dbus[830]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/$(id -u)" not available: No such file or directory
Where are you manually trying to set XDG_RUNTIME_DIR to the default and doing so incorrectly?
grep -R XDG_RUNTIME /etc/profile* /etc/environment* ~/.config/environment* ~/.*profile*
Last edited by V1del (2025-01-28 17:42:31)
Offline
I have tried to set it many times incorrectly, here are the results:
/etc/profile:# XDG_RUNTIME_DIR=/run/user/$UID
/etc/environment:# XDG_RUNTIME_DIR=/run/user/$(id -u)
/home/strider/.config/environment.d/xdg-base-dirs.conf:XDG_RUNTIME_DIR=/run/user/$(id -u)
/home/strider/.profile:# [ -z "${XDG_RUNTIME_DIR}" ] && export XDG_RUNTIME_DIR=/run/user/$(id -ru)
I have commented out each of them now but the issues are still remaining.
Here is the boot journal after commenting out all of the XDG_RUNTIME_DIR manual settings:
http://0x0.st/88ZP.txt
Pipewire is failing pretty badly and the dbus timeout is still waited for the full length because of no response.
jan 28 20:30:14 strider-laptop pipewire[962]: pw.context: vm.overrides in context.properties are deprecated, use context.properties.rules instead
jan 28 20:30:14 strider-laptop pipewire[962]: mod.rt: Failed to connect to session bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
jan 28 20:30:14 strider-laptop pipewire-pulse[964]: mod.rt: Failed to connect to session bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
jan 28 20:30:14 strider-laptop dbus-daemon[598]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.42' (uid=1000 pid=962 comm="/usr/bin/pipewire")
jan 28 20:30:14 strider-laptop pipewire[962]: mod.protocol-native: server 0x5f546458d900: unable to open lockfile '/run/user/$(id -u)/pipewire-0.lock': No such file or directory
jan 28 20:30:14 strider-laptop pipewire[962]: pw.conf: 0x5f5464570150: could not load mandatory module "libpipewire-module-protocol-native": No such file or directory
jan 28 20:30:14 strider-laptop wireplumber[963]: mod.rt: Failed to connect to session bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
jan 28 20:30:14 strider-laptop wireplumber[963]: Failed to connect to PipeWire
Do you guys see anything that I might have been setup wrong from the journal?
Offline
get rid of literally all of those and especially the one in environment.d (probably the entire file xdg-base-dirs.conf if there are any more) which is the cause and reason for your issue. What prompted you to try and think this is a good idea? Also for the general future, environment.d files are not shells and are not parsed by a shell so shell constructs like $(id -u) will get parsed literally and not executed. There's also no reason for you to set that yourself, your systemd login environment will set that correctly on it's own.
If you have software that told you to configure that, tell that software to learn how to honor the spec and use the proper defaults. If ChatGPT told you that, now you know why you shouldn't listen to ChatGPT. That journal shows that you're still setting that and if that grep is any indication it's still present in .config/environment.d
Also after commenting all of them out you need to logout and login again for it to be honored, or better yet reboot.
Last edited by V1del (2025-01-28 20:18:44)
Offline
Alright, I learnt that for a life not to touch xdg base dir things until I know what I am doing. Also thank you, it did really solved much of the problem for me.
Only thing that is missing is pipewire working so I'll try to make that work and get back to you.
Offline
What's an updated journal now? Does pipewire still have troubles with the lock file?
Offline
Here is the updated journal: https://0x0.st/88ZF.txt
I don't see troubles with the lock file. It shows couple of no such file or directory errors.
Mainly these that stand out to me:
jan 28 21:28:20 strider-laptop pipewire[1080]: default: failed to load plugin '/usr/lib/ladspa/librnnoise_ladspa.so': No such file or directory
jan 28 21:28:20 strider-laptop pipewire[1080]: mod.filter-chain: can't load graph: No such file or directory
jan 28 21:28:20 strider-laptop pipewire[1080]: pw.conf: 0x641b1fd8a160: could not load mandatory module "libpipewire-module-filter-chain": No such file or directory
jan 28 21:28:20 strider-laptop pipewire[1080]: default: failed to create context: No such file or directory
I tried to reinstall pipewire, pipewire-pulse and wireplumber but it didn't help.
I'll look through the wiki page to understand better what might be missing and how to use it as intended.
Do you see anything I can do? I probably missed something
Offline
jan 28 21:28:20 strider-laptop pipewire[1003]: default: failed to load plugin '/usr/lib/ladspa/librnnoise_ladspa.so': No such file or directory
jan 28 21:28:20 strider-laptop pipewire[1003]: mod.filter-chain: can't load graph: No such file or directory
jan 28 21:28:20 strider-laptop pipewire[1003]: pw.conf: 0x619942bb6160: could not load mandatory module "libpipewire-module-filter-chain": No such file or directory
jan 28 21:28:20 strider-laptop pipewire[1003]: default: failed to create context: No such file or directory
You configured a custom ladspa noise filter without installing the necessary https://archlinux.org/packages/extra/x8 … -for-voice package.
Offline
Ahh man, I should really get to know my system a whole lot better. I don't remember I configured such thing, but installing the noise filter fixed it.
You guys have fixed everything for me in a couple of days that I had been trying to do for a whole week.
I really appreciate your help. I have sound and notifications, my system is working smoothly and all thanks to you.
I aspire to have your linux knowledge that's for sure. Thank you again.
Offline
You mostly need to stop following "everything" you see on blogs/the internet (seriously, one thing I find quite bothersome how many outdated "tutorials" one can still find in the top results of somewhat common google searches for issues, where it's either clear the author doesn't really understand what they are doing themselves, or the solution presented is plain outdated) or at least think a bit more about what the impact is, or if you actually used someones dotfiles that also points that you should not use those unless you understand them yourself.
In any case, if there's nothing left for now, please mark as [SOLVED] by editing the title in your first post.
Offline
I did fall into this so thank you for the good advice. I'll take it and try to be more mindful about my system even with dotfiles and user level configuration.
I marked the title as [SOLVED]
Last edited by LaptopKing (2025-01-28 21:05:48)
Offline