client icon indicating copy to clipboard operation
client copied to clipboard

I get the error "ERROR hub-virus doesn't exist" when trying to import into local keychain

Open tskardal opened this issue 7 years ago • 10 comments

Keybase GUI Version: 4.2.0-20190710181120+e7c0bdc4a2

This is the output I get when i run keybase pgp pull-private <fingerprint>:

❯ keybase pgp pull-private <fingerprint>
PLEASE READ THIS CAREFULLY -- PRIVATE KEYS ARE AT STAKE!

  This command will import PGP private keys from KBFS
  (found in .keys/pgp), and export them to the local GnuPG keychain. They might have been
  put there via keybase pgp push-private. After this
  operation, these keys will be available for local GnuPG operations.

Really pull your PGP private key from KBFS? (type 'YES' to confirm): YES
▶ ERROR hub-virus doesn't exist

tskardal avatar Jul 29 '19 11:07 tskardal

Interesting, can you navigate to that folder on KBFS?

/keybase/private/<you>/.keys/pgp

(cc @strib)

maxtaco avatar Jul 29 '19 12:07 maxtaco

(And BTW hub-virus is an obfuscated path name, seems like it made it all the way up to the terminal)

maxtaco avatar Jul 29 '19 12:07 maxtaco

(And BTW hub-virus is an obfuscated path name, seems like it made it all the way up to the terminal)

OK, that explains why I didn't get any hits when searching similar errors!

Interesting, can you navigate to that folder on KBFS?

/keybase/private/<you>/.keys/pgp

I don't have a .keys folder there. (First I didn't have a /keybase either, but I got it after enabling browsing with Finder. I assume this is the same as KBFS).

FWIW, I just recently reinstalled the Keybase.app (yes, I'm on macOS), and then imported one of my keys manually with keybase pgp export + gpg --import. After this I noticed the pull-private sub command.

tskardal avatar Jul 31 '19 21:07 tskardal

Aha. Did you ever run keybase pgp push-private?

maxtaco avatar Jul 31 '19 21:07 maxtaco

@maxtaco Re: hub-virus yeah it's tricky with errors because they're printed in the logs, so I erred on the side of obfuscation there. If this is going to be a common thing we can fix it for this case, but seems like it would be better for the CLI command to catch this case and print something a little better there.

strib avatar Jul 31 '19 21:07 strib

Aha. Did you ever run keybase pgp push-private?

Probably not! I just assumed this would be some kind of "automated keybase export + gpg import". And since I had keys that could be exported, I could also use this pull command.

tskardal avatar Jul 31 '19 21:07 tskardal

Nope, you need to opt in after ready a scary warning, we would never move your private PGP keys without explicitly asking and warning you first!

maxtaco avatar Jul 31 '19 21:07 maxtaco

I see. I guess the only issue then is the content of the error message. Do you want me to close this issue, or should I leave it open so it can be closed when the error message is improved?

tskardal avatar Aug 01 '19 09:08 tskardal

Sure, we'll make a ticket to fix the error message.

maxtaco avatar Aug 02 '19 12:08 maxtaco

I've hesitated to close this as I haven't seen any matching issues being created. Anyway, I'll close it now, and assume you have everything under control @maxtaco 😎

tskardal avatar Aug 23 '19 08:08 tskardal