You are not logged in.

#1 2023-01-22 11:10:07

Garage1832
Member
Registered: 2022-06-23
Posts: 8

[Solved]Gnome keyring or dbus error? org.freedesktop.secrets timed out

I'm trying to troubleshoot what I think is either a gnome-keyring or dbus problem but I don't know enough about either to make much progress.

I'm running Arch 6.1.7-arch-1-1, XFCE 4.18, GTK 3.24.36, and want to use ProtonVPN (official app or cli).

The ProtonVPN app times out with this error:
[org.freedesktop.DBus.Error.Timeout] ("Failed to activate service 'org.freedesktop.secrets.: timed out (service_start_timeout=120000ms)",)

Gnome-keyring is a dependency for ProtonVPN and is installed (v. 1.42.1-2).

Reading other forum posts with similar service timeout errors, leads me to believe that the problem might be related to dbus rather than gnome-keyring itself.

Can anyone suggest some steps I can try to get to the bottom of this problem? I hope I have provided sufficient information.

Thanks.

Last edited by Garage1832 (2023-01-23 10:28:33)

Offline

#2 2023-01-22 13:50:01

seth
Member
Registered: 2012-09-03
Posts: 51,977

Re: [Solved]Gnome keyring or dbus error? org.freedesktop.secrets timed out

Post the outputs of

hostnamectl
loginctl session-status
echo $DBUS_SESSION_BUS_ADDRESS

(in code tags, https://bbs.archlinux.org/help.php#bbcode )

Offline

#3 2023-01-22 16:30:08

Garage1832
Member
Registered: 2022-06-23
Posts: 8

Re: [Solved]Gnome keyring or dbus error? org.freedesktop.secrets timed out

hostnamectl

 Static hostname: X270
       Icon name: computer-laptop
         Chassis: laptop ?
      Machine ID: 45eabfd0cfc315998465d58763370fd2
         Boot ID: 2bf83c196c1341cfb1bd1dc7482d75e5
Operating System: Arch Linux                      
          Kernel: Linux 6.1.7-arch1-1
    Architecture: x86-64
 Hardware Vendor: Lenovo
  Hardware Model: ThinkPad X270
Firmware Version: R0IET62W (1.40 )

loginctl session-status

2 - Garage1832 (1000)
	   Since: Sun 2023-01-22 16:20:12 GMT; 3min 0s ago
	  Leader: 704 (lightdm)
	    Seat: seat0; vc7
	 Display: :0
	 Service: lightdm; type x11; class user
	 Desktop: xfce
	   State: active
	    Unit: session-2.scope
		  ├─ 704 lightdm --session-child 13 20
		  ├─ 727 xfce4-session
		  ├─ 732 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --session
		  ├─ 743 nm-applet
		  ├─ 749 /bin/sh /etc/lightdm/Xsession startxfce4
		  ├─ 759 pipewire
		  ├─ 770 /usr/lib/at-spi-bus-launcher
		  ├─ 777 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 11 --address=unix:path=/run/user/1000/at-spi/bus_0
		  ├─ 779 /usr/bin/pipewire -c pipewire-pulse.conf
		  ├─ 819 /usr/lib/at-spi2-registryd --use-gnome-session
		  ├─ 825 /usr/lib/xfce4/xfconf/xfconfd
		  ├─ 831 /usr/bin/xfce4-screensaver
		  ├─ 838 xfwm4
		  ├─ 851 xfsettingsd
		  ├─ 860 xfce4-panel
		  ├─ 869 Thunar --daemon
		  ├─ 874 xfdesktop
		  ├─ 875 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libwhiskermenu.so 7 20971527 whiskermenu "Whisker Menu" "Show a menu to easily access installed applications"
		  ├─ 886 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libsystray.so 6 20971529 systray "Status Tray Plugin" "Provides status notifier items (application indicators) and legacy systray items"
		  ├─ 889 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libpulseaudio-plugin.so 8 20971530 pulseaudio "PulseAudio Plugin" "Adjust the audio volume of the PulseAudio sound system"
		  ├─ 893 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libxfce4powermanager.so 9 20971531 power-manager-plugin "Power Manager Plugin" "Display the battery levels of your devices and control the brightness of your display"
		  ├─ 897 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libnotification-plugin.so 10 20971532 notification-plugin "Notification Plugin" "Notification plugin for the Xfce panel"
		  ├─ 900 pamac-tray
		  ├─ 904 /usr/bin/python3 /usr/share/system-config-printer/applet.py
		  ├─ 908 xfce4-power-manager
		  ├─ 909 /usr/lib/xfce4/notifyd/xfce4-notifyd
		  ├─ 910 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
		  ├─ 913 /usr/bin/python /usr/bin/blueman-applet
		  ├─ 918 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libactions.so 14 20971533 actions "Action Buttons" "Log out, lock or other system actions"
		  ├─1026 /usr/bin/python /usr/bin/blueman-tray
		  ├─1059 /usr/lib/librewolf/librewolf
		  ├─1127 /usr/lib/librewolf/librewolf -contentproc -parentBuildID 20230117183000 -prefsLen 22648 -prefMapSize 229406 -appDir /usr/lib/librewolf/browser {c8ec70ef-7dee-4e37-bac2-1d258b37e6a3} 1059 socket
		  ├─1151 /usr/lib/librewolf/librewolf -contentproc -childID 1 -isForBrowser -prefsLen 23569 -prefMapSize 229406 -jsInitLen 246772 -parentBuildID 20230117183000 -appDir /usr/lib/librewolf/browser {521976f6-64eb-4015-8ddd-0317bd9c2005} 1059 tab
		  ├─1200 /usr/lib/librewolf/librewolf -contentproc -childID 2 -isForBrowser -prefsLen 27306 -prefMapSize 229406 -jsInitLen 246772 -parentBuildID 20230117183000 -appDir /usr/lib/librewolf/browser {88da3a35-2585-4b84-bf1d-559d949956da} 1059 tab
		  ├─1272 /usr/lib/librewolf/librewolf -contentproc -childID 4 -isForBrowser -prefsLen 27306 -prefMapSize 229406 -jsInitLen 246772 -parentBuildID 20230117183000 -appDir /usr/lib/librewolf/browser {79919d69-e414-4f9f-97da-bc03d75ded61} 1059 tab
		  ├─1387 /usr/lib/librewolf/librewolf -contentproc -childID 7 -isForBrowser -prefsLen 27358 -prefMapSize 229406 -jsInitLen 246772 -parentBuildID 20230117183000 -appDir /usr/lib/librewolf/browser {85a76f16-8aad-42d1-9b54-d47369db5528} 1059 tab
		  ├─1419 /usr/lib/librewolf/librewolf -contentproc -childID 8 -isForBrowser -prefsLen 27358 -prefMapSize 229406 -jsInitLen 246772 -parentBuildID 20230117183000 -appDir /usr/lib/librewolf/browser {f797bf07-4659-4d85-bc08-2d7475122d72} 1059 tab
		  ├─1443 /usr/lib/librewolf/librewolf -contentproc -childID 9 -isForBrowser -prefsLen 27358 -prefMapSize 229406 -jsInitLen 246772 -parentBuildID 20230117183000 -appDir /usr/lib/librewolf/browser {4f429155-c3de-4f9b-af1a-f1bdf715af28} 1059 tab
		  ├─1469 /usr/bin/xfce4-terminal
		  ├─1482 bash
		  └─1506 loginctl session-status

Jan 22 16:20:13 X270 dbus-daemon[732]: [session uid=1000 pid=730] Successfully activated service 'org.xfce.Xfconf'
Jan 22 16:20:13 X270 dbus-daemon[732]: [session uid=1000 pid=730] Activating service name='org.xfce.ScreenSaver' requested by ':1.9' (uid=1000 pid=727 comm="xfce4-session")
Jan 22 16:20:13 X270 dbus-daemon[732]: [session uid=1000 pid=730] Successfully activated service 'org.xfce.ScreenSaver'
Jan 22 16:20:13 X270 gnome-keyring-daemon[837]: discover_other_daemon: 1
Jan 22 16:20:15 X270 pkexec[986]: pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Jan 22 16:20:15 X270 pkexec[986]: Garage1832: Executing command [USER=root] [TTY=unknown] [CWD=/home/Garage1832] [COMMAND=/usr/bin/xfpm-power-backlight-helper --set-brightness-switch 0]
Jan 22 16:20:15 X270 pkexec[1006]: pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Jan 22 16:20:15 X270 pkexec[1006]: Garage1832: Executing command [USER=root] [TTY=unknown] [CWD=/home/Garage1832] [COMMAND=/usr/bin/xfpm-power-backlight-helper --set-brightness-switch 0]
Jan 22 16:20:16 X270 dbus-daemon[732]: [session uid=1000 pid=730] Activating service name='org.bluez.obex' requested by ':1.33' (uid=1000 pid=913 comm="/usr/bin/python /usr/bin/blueman-applet")
Jan 22 16:20:16 X270 dbus-daemon[732]: [session uid=1000 pid=730] Activated service 'org.bluez.obex' failed: Process org.bluez.obex exited with status 1

echo $DBUS_SESSION_BUS_ADDRESS

unix:path=/tmp/dbus-H07qaFxdC2,guid=093c23e4761462f939d2317e63cd623c

Offline

#4 2023-01-22 16:34:04

seth
Member
Registered: 2012-09-03
Posts: 51,977

Re: [Solved]Gnome keyring or dbus error? org.freedesktop.secrets timed out

$DBUS_SESSION_BUS_ADDRESS looks off, like as if dbus-launch was used somewhere
ly (some login manager) causes this as well, but you're using lightdm

What's the output of

echo $DBUS_SESSION_BUS_ADDRESS

if you log into some console session (ctrl+alt+F2)?
(You can paste it using the tip in the 1st link below, but the relevant part is whether it looks "similar" in /tmp or like "unix:path=/run/user/1000/bus"

Offline

#5 2023-01-22 16:52:13

Garage1832
Member
Registered: 2022-06-23
Posts: 8

Re: [Solved]Gnome keyring or dbus error? org.freedesktop.secrets timed out

Output of echo $DBUS_SESSION_BUS_ADDRESS from console:

unix:path=/tmp/dbus-Uzf9LI15G5,guid=ec1bc3efb3c36c872f377a5163cd67aa

Offline

#6 2023-01-22 19:36:00

seth
Member
Registered: 2012-09-03
Posts: 51,977

Re: [Solved]Gnome keyring or dbus error? org.freedesktop.secrets timed out

echo $SHELL
grep -id skip dbus ~/.*
grep -ri dbus /etc/profile*

Offline

#7 2023-01-23 08:24:33

Garage1832
Member
Registered: 2022-06-23
Posts: 8

Re: [Solved]Gnome keyring or dbus error? org.freedesktop.secrets timed out

echo $SHELL

/bin/bash

grep -id skip dbus ~/.*

/home/Garage1832/.bash_history:echo $DBUS_SESSION_BUS_ADDRESS 
/home/Garage1832/.xsession-errors:discover_other_daemon: 1dbus-update-activation-environment: warning: error sending to systemd: org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1 exited with status 1
/home/Garage1832/.xsession-errors.old:discover_other_daemon: 1dbus-update-activation-environment: warning: error sending to systemd: org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1 exited with status 1
/home/Garage1832/.xsession-errors.old:  File "/usr/lib/python3.10/site-packages/blueman/main/DBusProxies.py", line 52, in call_finish
/home/Garage1832/.xsession-errors.old:gi.repository.GLib.GError: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Unknown action ‘Activate’ (16)
/home/Garage1832/.xsession-errors.old:(wrapper-2.0:874): LIBDBUSMENU-GLIB-WARNING **: 18:43:59.591: Unable to replace properties on 0: Error getting properties for ID
/home/Garage1832/.xsession-errors.old:(wrapper-2.0:874): LIBDBUSMENU-GLIB-WARNING **: 18:44:02.202: Unable to replace properties on 0: Error getting properties for ID

grep -ri dbus /etc/profile*

/etc/profile.d/dbus.sh:export $(dbus-launch)

Offline

#8 2023-01-23 08:29:25

seth
Member
Registered: 2012-09-03
Posts: 51,977

Re: [Solved]Gnome keyring or dbus error? org.freedesktop.secrets timed out

/etc/profile.d/dbus.sh:export $(dbus-launch)

Why is that there?

Offline

#9 2023-01-23 08:39:24

Garage1832
Member
Registered: 2022-06-23
Posts: 8

Re: [Solved]Gnome keyring or dbus error? org.freedesktop.secrets timed out

No idea. I did not put it there myself.

Offline

#10 2023-01-23 08:40:29

seth
Member
Registered: 2012-09-03
Posts: 51,977

Re: [Solved]Gnome keyring or dbus error? org.freedesktop.secrets timed out

pacmna -Qo /etc/profile.d/dbus.sh

Offline

#11 2023-01-23 09:09:47

Garage1832
Member
Registered: 2022-06-23
Posts: 8

Re: [Solved]Gnome keyring or dbus error? org.freedesktop.secrets timed out

pacman -Qo /etc/profile.d/dbus.sh

error: No package owns /etc/profile.d/dbus.sh

Offline

#12 2023-01-23 09:13:47

seth
Member
Registered: 2012-09-03
Posts: 51,977

Re: [Solved]Gnome keyring or dbus error? org.freedesktop.secrets timed out

I did not put it there myself.

Neither did pacman. Maybe some Poltergeist.

cat /etc/profile.d/dbus.sh

and then remove it.

Offline

#13 2023-01-23 09:19:20

Garage1832
Member
Registered: 2022-06-23
Posts: 8

Re: [Solved]Gnome keyring or dbus error? org.freedesktop.secrets timed out

cat /etc/profile.d/dbus.sh

export $(dbus-launch)

/etc/profile.d/dbus.sh is now removed.

Offline

#14 2023-01-23 09:34:29

seth
Member
Registered: 2012-09-03
Posts: 51,977

Re: [Solved]Gnome keyring or dbus error? org.freedesktop.secrets timed out

Good. Reboot to completely get rid of the impact and see what happens.

Offline

#15 2023-01-23 09:50:34

Garage1832
Member
Registered: 2022-06-23
Posts: 8

Re: [Solved]Gnome keyring or dbus error? org.freedesktop.secrets timed out

Rebooted. ProtonVPN app starts as expected. It's working!

Just to clarify my understanding of what was happening: I was starting a second dbus session because of the dbus.sh script in /etc/profile.d.  This caused the VPN app to time out because it could not get a response from dbus, or some other kind of incorrect interaction.

It's safe to say that I would never have worked this out on my own. Thank you so much for your patient help, and your clear and methodical instructions.

Offline

#16 2023-01-23 13:05:36

seth
Member
Registered: 2012-09-03
Posts: 51,977

Re: [Solved]Gnome keyring or dbus error? org.freedesktop.secrets timed out

You're esp. creating multiple session busses and the different clients now exist in separate contexts and can't talk to each other.
Running dbus-launch in a systemd environment isn't necessary and usually "wrong".
Running it unconditionally from /etc/profile is just begging for trouble - it should at least have tested whether $DBUS_SESSION_BUS_ADDRESS is alreaddy set.

Offline

Board footer

Powered by FluxBB