As explain in the title, I deleted the folder .password-store and I can't re-init gopass.
$ gopass
It seems you are new to gopass. Do you want to run the onboarding wizard? [Y/n/q]: Y
After Ctrl+C:
^C[init] No useable crypto keys. Generating new key pair
[init] [crypto] Key generation may take up to a few minutes
[init] [crypto] Creating key pair ...
[init] [crypto] WARNING: We are about to generate some GPG keys.
[init] [crypto] However, the GPG program can sometimes lock up, displaying the following:
"We need to generate a lot of random bytes."
If this happens, please see the following tips:
https://github.com/gopasspw/gopass/blob/master/docs/entropy.md
Error: failed to run onboarding wizard: failed to create new private key: User aborted: failed to read user input: user aborted
I suppose that you have to delete your .password-store folder
I would like to reset gopass
I'm not quite sure why you want to abort the setup wizard?
If you delete your .password-store folder the default behaviour is to re-run the setup wizard to re-create and configure it.
Could you please elaborate on the expected behaviour and why you don't want to run the setup wizard?
I think that my explanation is not complete... I would like to run the setup wizard, but nothing happen after 5 minutes. I'm stuck on the message
It seems you are new to gopass. Do you want to run the onboarding wizard? [Y/n/q]: Y
This should not happen. Could you please re-run gopass with GOPASS_DEBUG=true set?
Hi,
Here is the stack with debugging:
gopass init
[DEBUG] Trying to load config from /Users/xxx/.config/gopass/config.yml
[DEBUG] Loaded config: Config[Root:StoreConfig[AskForMore:false,AutoClip:false,AutoImport:true,AutoSync:false,ClipTimeout:45,Concurrency:1,EditRecipients:false,NoColor:false,NoConfirm:true,NoPager:false,Notifications:false,Path:gpgcli-gitcli-fs+file:///Users/xxx/.password-store,SafeContent:false,UseSymbols:false],Mounts(),Version:1.8.1]
[DEBUG] Loaded config from /Users/xxx/.config/gopass/config.yml: Config[Root:StoreConfig[AskForMore:false,AutoClip:false,AutoImport:true,AutoSync:false,ClipTimeout:45,Concurrency:1,EditRecipients:false,NoColor:false,NoConfirm:true,NoPager:false,Notifications:false,Path:gpgcli-gitcli-fs+file:///Users/xxx/.password-store,SafeContent:false,UseSymbols:false],Mounts(),Version:1.8.1]
[DEBUG] Using default RCS backend (GitCLI)
[init] Initializing a new password store ...
[init] [DEBUG] initializing store and possible sub-stores
[init] [DEBUG] sub.New - URL: gpgcli-gitcli-fs+file:///Users/xxx/.password-store
[init] [DEBUG] sub.New - Using storage backend from ctx: fs
[init] [DEBUG] Using Storage Backend: fs(v0.1.0,path:/Users/xxx/.password-store)
[init] [DEBUG] sub.New - Using RCS backend from ctx: gitcli
[init] [DEBUG] gpg.detectBinary - Looking for 'gpg2' ...
[init] [DEBUG] gpg.detectBinary - Looking for 'gpg1' ...
[init] [DEBUG] gpg.detectBinary - Looking for 'gpg' ...
[init] [DEBUG] gpg.detectBinary - Found 'gpg' at '/usr/local/bin/gpg' (2.2.8)
[init] [DEBUG] gpg.detectBinary - using '/usr/local/bin/gpg'
[init] [DEBUG] Failed to initialize RCS backend 'gitcli': git repo does not exist
[init] [DEBUG] sub.New - Using Crypto backend from ctx: gpgcli
[init] [DEBUG] Using Crypto Backend: gpg-cli
[init] [DEBUG] gpg.detectBinary - Looking for 'gpg2' ...
[init] [DEBUG] gpg.detectBinary - Looking for 'gpg1' ...
[init] [DEBUG] gpg.detectBinary - Looking for 'gpg' ...
[init] [DEBUG] gpg.detectBinary - Found 'gpg' at '/usr/local/bin/gpg' (2.2.8)
[init] [DEBUG] gpg.detectBinary - using '/usr/local/bin/gpg'
[init] [DEBUG] sub.New - initialized - storage: fs (0xc4202ace30) - rcs: noop (0x102605828) - crypto: gpg (0xc4202b1740)
[init] [DEBUG] Root Store initialized with URL gpgcli-gitcli-fs+file:///Users/xxx/.password-store
[init] [DEBUG] fs.Exists(.gpg-id) - /Users/xxx/.password-store/.gpg-id
[init] [DEBUG] action.init(, /Users/xxx/.password-store, [])
[init] [DEBUG] Checking private keys ...
[init] [DEBUG] gpg.listKeys: /usr/local/bin/gpg [/usr/local/bin/gpg --with-colons --with-fingerprint --fixed-list-mode --list-secret-keys]
^C[init] [DEBUG] Stacktrace: signal: interrupt
failed to read user input
github.com/gopasspw/gopass/pkg/action.(*Action).init
/private/tmp/gopass-20180608-28807-qxx3yy/gopass-1.8.1/src/github.com/gopasspw/gopass/pkg/action/init.go:97
github.com/gopasspw/gopass/pkg/action.(*Action).Init
/private/tmp/gopass-20180608-28807-qxx3yy/gopass-1.8.1/src/github.com/gopasspw/gopass/pkg/action/init.go:52
main.getCommands.func69
src/github.com/gopasspw/gopass/commands.go:673
github.com/gopasspw/gopass/vendor/github.com/urfave/cli.HandleAction
/private/tmp/gopass-20180608-28807-qxx3yy/gopass-1.8.1/src/github.com/gopasspw/gopass/vendor/github.com/urfave/cli/app.go:501
github.com/gopasspw/gopass/vendor/github.com/urfave/cli.Command.Run
/private/tmp/gopass-20180608-28807-qxx3yy/gopass-1.8.1/src/github.com/gopasspw/gopass/vendor/github.com/urfave/cli/command.go:165
github.com/gopasspw/gopass/vendor/github.com/urfave/cli.(*App).Run
/private/tmp/gopass-20180608-28807-qxx3yy/gopass-1.8.1/src/github.com/gopasspw/gopass/vendor/github.com/urfave/cli/app.go:259
main.main
src/github.com/gopasspw/gopass/main.go:64
runtime.main
/usr/local/Cellar/go/1.10.3/libexec/src/runtime/proc.go:198
runtime.goexit
/usr/local/Cellar/go/1.10.3/libexec/src/runtime/asm_amd64.s:2361
Error: failed to initialize store: failed to read user input: signal: interrupt
It seams to me that your problem may be with gpg command. If you check last command where your progress is stuck, it is trying to list keys from gpg but nothing happens?
Try to run it manually:
/usr/local/bin/gpg --with-colons --with-fingerprint --fixed-list-mode --list-secret-keys
and see what happens. Maybe you have stuck gpg agent?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Having the same problem on Mac OS 10.14.1 and gopass 1.8.3 installed from brew. I can circumvent it by manually running gpg --generate-key before gopass.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
Having the same problem on Mac OS 10.14.1 and gopass 1.8.3 installed from brew. I can circumvent it by manually running
gpg --generate-keybeforegopass.