Skip to main content
Topic: Dbus session socket disapear after some time (Read 616 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Dbus session socket disapear after some time

Hello everyone,

I am using artix linux with dinit and xcfe. Since an update, xfce4-settings-manager works just after boot but fail to start some time after having used the session with the following error:
Failed to connect to Xfconf daemon

Trying to restart xfsettingd I understand that the dbus session does not work anymore, which is the root cause. Anything relying on debus stop working, such as rebooting from the start menu.
 dbus-monitor gives this output: Failed to open connection to session bus: Failed to connect to socket /tmp/dbus-bPhHXmzyEa
I watched the /tmp directory and see that the dbus socket is created on session start, but disappear after some time.

I was able to reproduce my issue on a fresh install updated with pacman -Syu from the following iso: artix-xfce-dinit-20230501-x86_64.iso on qemu. I kept a snapshot of the vm.

For whatever reason, removing both pulseaudio and pipewire (both installed on a fresh install) with  pacman -Rcs pulseaudio pipewire seems to workaround the issue, but I am unable to understand why. An evident drawback is that there is no more audio.

Anyone is encountering the same issue ?

Edit: a fastest way to reproduce seems to open/close a lot of windows.

Re: Dbus session socket disapear after some time

Reply #1
I found this topic which describe a similar dbus issue on plasma with dinit and I started wondering if this could not be related to kde stuff.

I managed to remove all kde package with pacman -Rcs karchive5 ( this remove all packages which depend on karchive5, check the output before going ahead !), and I reinstalled my audio system (pipewire+wireplumber+pipewire-pulse actually). Since then I was not able to reproduce the issue on my host system.

I will try to reproduce the 'fix' on the fresh install VM and follow up.

Re: Dbus session socket disapear after some time

Reply #2
Apologies for the late reply as I was just back on the computer.

I can't reproduce this as of now, but it looks like it's something related to dinit with dbus, X (Wayland is unaffected), and pulseaudio (pipewire-pulse is unaffected)? I'll try to take a further look. I wonder if this is related to environment variables.
now only the dinit guy in artix

 

Re: Dbus session socket disapear after some time

Reply #3
No worries ! I did not get to much on my computer either since. 

First of all, thanks for your answer and the work on Artix Linux which have been my daily driver for years.

Unfortunately the Qt related package uninstall was not a fix, and I also feel that there is something with dinit/dbus/x/pulse or whatever.

For information, I am using pipewire (with pipewire-pulse for pulse compatibility), and I noticed that the problem occur faster after boot if I start pipewire at boot. But without pipewire started It still occur after a while. I have the same feeling with syslog-ng. Disabling it seems to reduce occurrences, but does not remove them.

I'll keep you updated if I find something interesting.