Linux – How to fix “No such secret collection at path: /” for gnome-keyring and Arch Linux

arch linuxgnome-keyring

I'm running Arch Linux. When I try to save credentials using Vinagre (VNC client) it gives me an error:

Error saving credentials on a locked keyring

Cannot create item in a locked collection

I found this guide on the Arch wiki, and followed it. In the troubleshooting section it has:

Ensure that the seahorse package is installed, open it ("Passwords and Keys" in system settings) and select View > By Keyring If there is no keyring in the left column (it will be marked with a lock icon), go to File > New > Password Keyring and give it a name. You will be asked to enter a password. If you do not give the keyring a password it will be unlocked automatically, even when using autologin, but passwords will not be stored securely. Finally, right-click on the keyring you just created and select "Set as default".

When I start up Seahorse it does have a Passwords section with a Login folder with a lock icon to the right of that. Swell, right? Well, nothing really works with that as far as I can tell (no feedback, but apparently I was able to delete it)

When I try to create a new keyring it tells me:

Couldn't add keyring

No such secret collection at path: /

I found this problem with exactly the same message, but ~/.local/share/keyrings has drwxr-xr-x permissions (and has my name and group).

So how do I resolve this error so I can store keys in my keyring?

Edit:

Some further information – after deleting the useless keyring, Vinagre gives me this message instead:

No such interface 'org.freedesktop.Secret.Collection' on object at path /org/freedesktop/secrets/collection/login

Best Answer

I could fix it on my machine by sourcing /etc/X11/xinit/xinitrc.d/50-systemd-user.sh from ~/.xinitrc.
The solution was found on https://bugs.archlinux.org/task/46374 because journalctl --this-boot --no-pager | grep -i WARNING showed, that 'org.gnome.keyring.SystemPrompter' failed.

Reference

Related Question