ente icon indicating copy to clipboard operation
ente copied to clipboard

CLI: Error getting password from keyring

Open 31ank opened this issue 1 year ago • 9 comments

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?

31ank avatar Jan 26 '24 21:01 31ank

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 avatar Feb 20 '24 08:02 sarunaskas

@sarunaskas if you find a solution please post it here, I didn't find one yet ☹️

31ank avatar Feb 20 '24 19:02 31ank

+1

RappyTV avatar Mar 13 '24 21:03 RappyTV

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)"

AlexandarY avatar Apr 09 '24 10:04 AlexandarY

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

RappyTV avatar Apr 09 '24 15:04 RappyTV

The workaround doesn't work for me either.

RxnNode avatar Jul 04 '24 08:07 RxnNode

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

pinpox avatar Jul 11 '24 16:07 pinpox

For anyone running into this and wanting to use the cli without gnome-keyring, see my PR #2426

pinpox avatar Jul 11 '24 16:07 pinpox

Since the CLI is an HTTP client of the Ente server, running it in a desktop environment can likely avoid keyring issues.

reorx avatar Aug 06 '24 14:08 reorx