ente
ente copied to clipboard
CLI: Error getting password from keyring
I'm running a headless Ubuntu 22.04.3 server and tried installing the deb package from the release tab. When I try to execute a ente command I get the error error getting password from keyring: failed to unlock correct collection '/org/freedesktop/secrets/collection/login'
.
I installed the gnome-keyring-daemon since that seems to be required but that didn't fix the problem.
I'm out of ideas since you don't find much information online regarding this error, does someone know what the issue could be?
Same issue here on an ubuntu server after install the .deb
package.
I installed gnome-keyring
and the error changed to error getting password from keyring: failed to unlock correct collection '/org/freedesktop/secrets/aliases/default'
@sarunaskas if you find a solution please post it here, I didn't find one yet ☹️
+1
I encountered the error from #1328, but at one point it evolves into the error above. The steps described here helped me fix the error. TL;DR on steps:
eval "$(dbus-launch --sh-syntax)"
mkdir -p ~/.cache
mkdir -p ~/.local/share/keyrings # where the automatic keyring is created
# 1. Create the keyring manually with a dummy password in stdin
eval "$(printf '\n' | gnome-keyring-daemon --unlock)"
# 2. Start the daemon, using the password to unlock the just-created keyring:
eval "$(printf '\n' | /usr/bin/gnome-keyring-daemon --start)"
I encountered the error from #1328, but at one point it evolves into the error above. The steps described here helped me fix the error. TL;DR on steps:
eval "$(dbus-launch --sh-syntax)" mkdir -p ~/.cache mkdir -p ~/.local/share/keyrings # where the automatic keyring is created # 1. Create the keyring manually with a dummy password in stdin eval "$(printf '\n' | gnome-keyring-daemon --unlock)" # 2. Start the daemon, using the password to unlock the just-created keyring: eval "$(printf '\n' | /usr/bin/gnome-keyring-daemon --start)"
doesn't work for me unfortunately
The workaround doesn't work for me either.
Same here, gnome-keyring is running but the ente CLI refuses to do anything:
❯ ./cli account list
2024/07/11 18:20:20 error getting password from keyring: failed to unlock correct collection '/org/freedesktop/secrets/collection/login'
❯ gnome-keyring version
gnome-keyring: 46.1
For anyone running into this and wanting to use the cli without gnome-keyring, see my PR #2426
Since the CLI is an HTTP client of the Ente server, running it in a desktop environment can likely avoid keyring issues.