Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: DBUS Issues (Read 2199 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

DBUS Issues

Hey,
I have issues with one of my Artix systems (oddly enough, I don't experience the issues on one of the other systems).
Unfortunately, it's one where I also lack the knowledge on how to debug that, so I'm looking forward to learning from you!
Anyways, the gist of the issue is that Apps that somehow rely on dbus start extremely slowly.
Thunar, the dialog to unlock the pass passwords database, pavucontrol, blueman, etc.etc. all start very slowly, they take ~30 secs until they first open.
I'm using lightdm + awesomewm and I start my session from
Code: [Select]
.xinitrc
using
Code: [Select]
exec dbus-launch --sh-syntax awesome
.
Thanks in advance for your help, I'm more than willing to share relevant logs (as soon as I know which ones are relevant...)
Best,
dasnacl


Re: DBUS Issues

Reply #2
If you use lightdm, how do you start your session from .xinitrc?
It is possible through xinit-xsession, but that is hardly a supported package. It's in AUR.

@OP: If you are using that package, you should try upstream.

Re: DBUS Issues

Reply #3
Hey,
I have issues with one of my Artix systems (oddly enough, I don't experience the issues on one of the other systems).
Unfortunately, it's one where I also lack the knowledge on how to debug that, so I'm looking forward to learning from you!
Anyways, the gist of the issue is that Apps that somehow rely on dbus start extremely slowly.
Thunar, the dialog to unlock the pass passwords database, pavucontrol, blueman, etc.etc. all start very slowly, they take ~30 secs until they first open.
I'm using lightdm + awesomewm and I start my session from
Code: [Select]
.xinitrc
using
Code: [Select]
exec dbus-launch --sh-syntax awesome
.
Thanks in advance for your help, I'm more than willing to share relevant logs (as soon as I know which ones are relevant...)
Best,
dasnacl

Try,

Code: [Select]
exec dbus-launch  --exit-with-session awesome


 

Re: DBUS Issues

Reply #5
Ok, so how do I setup DBUS correctly assuming I don't rely on .xinitrc?
But why are you so sure that this is dbus which causes aforementioned issue? This might be everything from misconfigured X-server up to degrading HDD, DDoSed network interfaces included.

Re: DBUS Issues

Reply #6
But why are you so sure that this is dbus which causes aforementioned issue? This might be everything from misconfigured X-server up to degrading HDD, DDoSed network interfaces included.
I can't be 100% sure, yes. However, an online search has revealed that this is a common issue and it really seems to only appear for apps that rely on dbus.
To verify this, I've ran thunar with dbus-run-session and noticed the issue immediately:

Code: [Select]
λ ~/ dbus-run-session thunar
dbus-daemon[4432]: [session uid=1000 pid=4432] Activating service name='org.xfce.Xfconf' requested by ':1.0' (uid=1000 pid=4433 comm="thunar ")
dbus-daemon[4432]: [session uid=1000 pid=4432] Successfully activated service 'org.xfce.Xfconf'
dbus-daemon[4432]: [session uid=1000 pid=4432] Activating service name='org.gtk.vfs.Daemon' requested by ':1.0' (uid=1000 pid=4433 comm="thunar ")
dbus-daemon[4432]: [session uid=1000 pid=4432] Successfully activated service 'org.gtk.vfs.Daemon'
fusermount3: failed to access mountpoint /run/user/1000/gvfs: Permission denied
dbus-daemon[4432]: [session uid=1000 pid=4432] Activating service name='org.freedesktop.portal.Desktop' requested by ':1.0' (uid=1000 pid=4433 comm="thunar ")
dbus-daemon[4432]: [session uid=1000 pid=4432] Activating service name='org.freedesktop.portal.Documents' requested by ':1.3' (uid=1000 pid=4453 comm="/usr/lib/xdg-desktop-portal ")
dbus-daemon[4432]: [session uid=1000 pid=4432] Activating service name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.4' (uid=1000 pid=4458 comm="/usr/lib/xdg-document-portal ")
dbus-daemon[4432]: [session uid=1000 pid=4432] Successfully activated service 'org.freedesktop.impl.portal.PermissionStore'
dbus-daemon[4432]: [session uid=1000 pid=4432] Successfully activated service 'org.freedesktop.portal.Documents'
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
error: fuse init failed: Can't mount fuse fs on /run/user/1000/doc: File exists
dbus-daemon[4432]: [session uid=1000 pid=4432] Activating service name='org.freedesktop.impl.portal.desktop.gnome' requested by ':1.3' (uid=1000 pid=4453 comm="/usr/lib/xdg-desktop-portal ")
dbus-daemon[4432]: [session uid=1000 pid=4432] Activating service name='ca.desrt.dconf' requested by ':1.6' (uid=1000 pid=4468 comm="/usr/lib/xdg-desktop-portal-gnome ")
dbus-daemon[4432]: [session uid=1000 pid=4432] Successfully activated service 'ca.desrt.dconf'
dbus-daemon[4432]: [session uid=1000 pid=4432] Successfully activated service 'org.freedesktop.impl.portal.desktop.gnome'
dbus-daemon[4432]: [session uid=1000 pid=4432] Activating service name='org.freedesktop.impl.portal.desktop.gtk' requested by ':1.3' (uid=1000 pid=4453 comm="/usr/lib/xdg-desktop-portal ")
dbus-daemon[4432]: [session uid=1000 pid=4432] Successfully activated service 'org.freedesktop.impl.portal.desktop.gtk'
dbus-daemon[4432]: [session uid=1000 pid=4432] Activating service name='org.freedesktop.secrets' requested by ':1.3' (uid=1000 pid=4453 comm="/usr/lib/xdg-desktop-portal ")
dbus-daemon[4432]: [session uid=1000 pid=4432] Activating service name='org.gtk.vfs.UDisks2VolumeMonitor' requested by ':1.0' (uid=1000 pid=4433 comm="thunar ")

** (/usr/lib/xdg-desktop-portal:4453): WARNING **: 11:38:39.911: Failed to create secret proxy: Error calling StartServiceByName for org.freedesktop.secrets: Timeout was reached

** (/usr/lib/xdg-desktop-portal:4453): WARNING **: 11:38:39.911: No skeleton to export
dbus-daemon[4432]: [session uid=1000 pid=4432] Successfully activated service 'org.freedesktop.portal.Desktop'
dbus-daemon[4432]: [session uid=1000 pid=4432] Successfully activated service 'org.gtk.vfs.UDisks2VolumeMonitor'
dbus-daemon[4432]: [session uid=1000 pid=4432] Activating service name='org.gtk.vfs.Metadata' requested by ':1.0' (uid=1000 pid=4433 comm="thunar ")
dbus-daemon[4432]: [session uid=1000 pid=4432] Successfully activated service 'org.gtk.vfs.Metadata'
dbus-daemon[4432]: [session uid=1000 pid=4432] Activating service name='org.freedesktop.thumbnails.Thumbnailer1' requested by ':1.0' (uid=1000 pid=4433 comm="thunar ")

(tumblerd:5075): tumbler-WARNING **: 11:38:40.457: Failed to load plugin "tumbler-ffmpeg-thumbnailer.so": libffmpegthumbnailer.so.4: cannot open shared object file: No such file or directory

(tumblerd:5075): tumbler-WARNING **: 11:38:40.469: Failed to load plugin "tumbler-gepub-thumbnailer.so": libgepub-0.6.so.0: cannot open shared object file: No such file or directory
Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
Registered thumbnailer gsf-office-thumbnailer -i %i -o %o -s %s
Registered thumbnailer heif-thumbnailer -s %s %i %o
Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
Registered thumbnailer evince-thumbnailer -s %s %u %o
dbus-daemon[4432]: [session uid=1000 pid=4432] Successfully activated service 'org.freedesktop.thumbnails.Thumbnailer1'

** (/usr/lib/xdg-desktop-portal:4453): WARNING **: 11:38:44.891: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list
A connection to the bus can't be made

(tumblerd:5075): GVFS-RemoteVolumeMonitor-WARNING **: 11:38:47.481: Owner of volume monitor org.gtk.vfs.UDisks2VolumeMonitor disconnected from the bus; removing drives/volumes/mounts
A connection to the bus can't be made

(tumblerd:5075): tumblerd-CRITICAL **: 11:38:47.481: Name org.freedesktop.thumbnails.Cache1 lost on the message dbus, exiting.

(tumblerd:5075): tumblerd-CRITICAL **: 11:38:47.481: Name org.freedesktop.thumbnails.Manager1 lost on the message dbus, exiting.

(tumblerd:5075): tumblerd-CRITICAL **: 11:38:47.481: Name org.freedesktop.thumbnails.Thumbnailer1 lost on the message dbus, exiting.

(xfconfd:4437): xfconfd-CRITICAL **: 11:38:47.481: Name org.xfce.Xfconf lost on the message dbus, exiting.

So, the issue seems to have something to do with org.freedesktop.secrets, it blockingly waits to establish that service and I'd like to either remove the timeout duration or fix the warning.
Not sure how to do that, though. The threads over on archlinux's forum have solutions that don't seem to apply on my system, e.g. one user reported uninstalling gcolor3 helps, but I don't have that package installed to begin with.

Best,
salt

Re: DBUS Issues

Reply #7
Code: [Select]
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
error: fuse init failed: Can't mount fuse fs on /run/user/1000/doc: File exists
The problem is here, it lies not in dbus itself, but in programs communicating via dbus. Something wrong with fuse (Filesystem in USErspace), it fails to mount a filesystem.

Do you have the xdg-desktop-portal package installed? Do you use any flatpak applications?

Re: DBUS Issues

Reply #8
The problem is here, it lies not in dbus itself, but in programs communicating via dbus. Something wrong with fuse (Filesystem in USErspace), it fails to mount a filesystem.

Do you have the xdg-desktop-portal package installed? Do you use any flatpak applications?
Yes, I do have xdg-desktop-portal installed, a dependency of obs-studio for capturing audio via pipwire.
But, I don't have any flatpak installations.

Best,
salt

Re: DBUS Issues

Reply #9
Sorry for double-posting.
I've removed the package and everything works now, looks like I don't need it for obs anyways.
Thanks again, my system is way more usable and not annoying anymore!

Best,
salt