lemoony / snipkit

Snippet CLI manager for quickly accessing shell snippets without leaving the terminal.
Apache License 2.0
85 stars 5 forks source link

Getting Sync failed: failed to unlock correct collection '/org/freedesktop/secrets/aliases/default' error #268

Open ZhichaoDuan opened 2 weeks ago

ZhichaoDuan commented 2 weeks ago

I've installed snipkit with apt on my Ubuntu 20.04 server, then I got the following error..

Syncing all managers... ⣽ Syncing GitHub Gist... Checking gist.github.com/Jason202268 Sync failed: failed to unlock correct collection '/org/freedesktop/secrets/aliases/default' ✗ Sync did not finish.

Any insight?

lemoony commented 1 week ago

Hi @ZhichaoDuan ,

please run the command on trace level: snipkit manager sync -l trace, then provide the contents of the latest log file (<SNIPKIT_HOME>/.log/log).

The output from snipkit info may also be beneficial.

Thanks!

Jason202268 commented 1 week ago

Thanks for your reply. Here is the output of the log

12:20:12 DBG 1 config/service.go:77 > SnipKit Home: /home/duanzhichao/.config/snipkit
12:20:12 TRC 1 ui/themes.go:63 > Chosen theme: default.light
12:20:12 TRC 1 ui/themes.go:63 > Chosen theme: default.light
12:20:12 TRC 1 ui/tui.go:107 > Color profile: 1
12:20:12 INF 1 managers/provider.go:53 > Number of enabled managers: 1
12:20:12 TRC 191 githubgist/manager.go:89 > github gist sync started
12:20:12 ERR 191 githubgist/manager.go:94 > error="Sync failed: failed to unlock correct collection '/org/freedesktop/secrets/aliases/default'" Sync failed

Here is the info:

Config path: /home/duanzhichao/.config/snipkit/config.yaml
SNIPKIT_HOME: /home/duanzhichao/.config/snipkit
Theme: default
GitHub Gist enabled: true
GitHub Gist number of URLs: 1
GitHub Gist total number of snippets: 0

I love this tool and really look forward to solve this!