10

I'm following the commands at, and created my own answer that only worked once: How do you enable the secret-tool command (backed by gnome-keyring, libsecret and dbus) in a headless CentOS Docker container?. It worked once (I verified output of the secret in my console scroll), but then receive the error "secret-tool: Cannot create an item in a locked collection" again. Any idea why?

Here are the commands:

apt install dbus-x11 gnome-keyring libsecret # ~79MB
export $(dbus-launch)
eval "$(echo '\n' | gnome-keyring-daemon --unlock)"
echo [email protected] | secret-tool store --label="main" email address
echo $(secret-tool lookup email address)

Even after using -r to restart the daemon, killing the processes and rebooting. I cant get any new secrets even with different names, nor retrieve the stored one.

1
  • In my case it was a simple case of gnome-keyring-daemon --replace not working for some reason. After terminating all instances of gnome-keyring-daemon from btop (there were a few) and then running gnome-keyring-daemon --daemonize --login, secret-tool is working again. Personal experience; your mileage may vary. Commented Sep 16 at 10:57

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.