You are not logged in.
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
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
Thanks a lot @sdoubleyou! I downgraded to 1.10.0-2 and everything works again.
Offline
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
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
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
I confirm that I am also does not work after the downgrade to version dbus 1.10.0-2.
Offline
when add
dbus-update-activation-environment --systemd DISPLAY
to ~/.xninitrc work properly.
Offline
when add
dbus-update-activation-environment --systemd DISPLAY
to ~/.xninitrc work properly.
adding this to my .xinitrc works for me.
Closed thread.
Offline
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
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.
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