You are not logged in.

#1 2015-09-22 14:21:04

FillFeile
Member
Registered: 2013-08-07
Posts: 21

[Solved] Gnome Keyring - SystemPrompter doesn't show up

Hi Guys,

a few days ago a problem with my keyring showed up. I tried to access the gnome keyring via several applications (including: seahorse, ssh, owncloud-sync-client) and all of them produce the same error in the journal.

dbus-daemon[5070]: Activating service name='org.gnome.keyring.SystemPrompter'
org.gnome.keyring.SystemPrompter[5070]: Unable to init server: Verbindung ist gescheitert:Verbindungsaufbau abgelehnt
org.gnome.keyring.SystemPrompter[5070]: (gcr-prompter:7218): Gtk-WARNING **: cannot open display:
dbus-daemon[5070]: Activated service 'org.gnome.keyring.SystemPrompter' failed: Process org.gnome.keyring.SystemPrompter exited with status 1
gnome-keyring-daemon[5022]: couldn't create system prompt: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.keyring.SystemPrompter exited with status 1

Has anyone an idea? A few days back, all worked just fine.

Thanks in advance,

FillFeile

Last edited by FillFeile (2015-11-02 15:24:15)

Offline

#2 2015-09-22 20:05:30

sdoubleyou
Member
Registered: 2015-09-09
Posts: 5

Re: [Solved] Gnome Keyring - SystemPrompter doesn't show up

I think, it is DBUS.
After updating to dbus 1.10.0-3, I have the same problems.
A downgrade helped me


https://projects.archlinux.org/svntogit … d33294c337
See also: https://bugs.archlinux.org/task/46369
or
https://projects.archlinux.org/svntogit … a8e3711d5b

Offline

#3 2015-09-23 07:36:23

FillFeile
Member
Registered: 2013-08-07
Posts: 21

Re: [Solved] Gnome Keyring - SystemPrompter doesn't show up

Thanks a lot @sdoubleyou! I downgraded to 1.10.0-2 and everything works again.

Offline

#4 2015-10-13 19:27:21

lknix
Member
Registered: 2008-10-20
Posts: 19

Re: [Solved] Gnome Keyring - SystemPrompter doesn't show up

I'm experiencing the same problem, though dbus 1.10.0-3 doesn't contain unset DBUS_SESSION_BUS_ADDRESS anymore. Currently I run ssh-agent to mitigate this, but I'd like to get this solved. Any ideas how to approach this?
`

Last edited by lknix (2015-10-13 19:28:42)

Offline

#5 2015-10-28 13:26:05

lereldarion
Member
Registered: 2015-10-28
Posts: 2

Re: [Solved] Gnome Keyring - SystemPrompter doesn't show up

I recently experienced the same problem in my setup (no DE, running i3wm manually with lots of KDE apps, and gnome-keyring as kwallet is crap).

To my understanding, the problem is that the org.gnome.keyring.SystemPrompter service (used by seahorse, chromium, ...) will launch /usr/lib/gcr/gcr-prompter (which is the actual GUI prompt) through dbus. Before the dbus update, dbus was launched by my ~/.xinitrc and so it inherited the DISPLAY environment variable. Now it is started by pam, which is not related to X, so dbus doesn't have DISPLAY in its environment. Thus it can't provide it to the gcr-prompter program, which then fails to open a X server connection, and aborts.

I fixed the problem by adding

dbus-update-activation-environment --systemd DISPLAY

in my ~/.xinitrc . This program tells dbus to add DISPLAY to its own environment variables, thus solving the problem.

EDIT: In fact, dbus-update-activation-environment is called for DISPLAY and XAUTHORITY in /etc/X11/xinit/xinitrc.d/50-systemd-user.sh, which should be executed along with others scripts in /etc/X11/xinit/xinitrc.d/ by your xinitrc.

Last edited by lereldarion (2015-10-30 17:24:57)

Offline

#6 2015-10-31 09:11:56

FillFeile
Member
Registered: 2013-08-07
Posts: 21

Re: [Solved] Gnome Keyring - SystemPrompter doesn't show up

Due to the fact that a downgrade of dbus doesn't solve this issue for me, I decided to reopen. Any ideas how to fix this?

Offline

#7 2015-11-02 11:26:10

batot
Banned
From: Poland
Registered: 2012-08-15
Posts: 47

Re: [Solved] Gnome Keyring - SystemPrompter doesn't show up

I confirm that I am also does not work after the downgrade to version dbus 1.10.0-2.

Offline

#8 2015-11-02 11:30:02

batot
Banned
From: Poland
Registered: 2012-08-15
Posts: 47

Re: [Solved] Gnome Keyring - SystemPrompter doesn't show up

when add

dbus-update-activation-environment --systemd DISPLAY

to ~/.xninitrc work properly.

Offline

#9 2015-11-02 15:23:57

FillFeile
Member
Registered: 2013-08-07
Posts: 21

Re: [Solved] Gnome Keyring - SystemPrompter doesn't show up

batot wrote:

when add

dbus-update-activation-environment --systemd DISPLAY

to ~/.xninitrc work properly.

adding this to my .xinitrc works for me.

Closed thread.

Offline

#10 2015-11-05 01:40:27

lereldarion
Member
Registered: 2015-10-28
Posts: 2

Re: [Solved] Gnome Keyring - SystemPrompter doesn't show up

Note that if you follow the arch wiki advice to build your xinitrc, you should have the following in your xinitrc :

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

It executes the *.sh files in /etc/X11/xinit/xinitrc.d/, which currently contains a systemd owned file (50-systemd-user.sh) which will make the right call to dbus-update-activation-environment. This is better than calling dbus-.. manually, as it will be updated if other dbus stuff changes...

Offline

#11 2016-01-08 10:30:46

batot
Banned
From: Poland
Registered: 2012-08-15
Posts: 47

Re: [Solved] Gnome Keyring - SystemPrompter doesn't show up

FillFeile wrote:
batot wrote:

when add

dbus-update-activation-environment --systemd DISPLAY

to ~/.xninitrc work properly.

adding this to my .xinitrc works for me.

Closed thread.

Past last update of the system, the above trick does not work anymore. sad
Any idea else?

Ok, if modify .xinitrc as wrote lereldarion all work properly.
Thanks.

Last edited by batot (2016-01-08 10:37:44)

Offline

Board footer

Powered by FluxBB