lastpass / lastpass-cli

LastPass command line interface tool
GNU General Public License v2.0
2.86k stars 291 forks source link

Warning: Could not decrypt private key #61

Open drzraf opened 9 years ago

drzraf commented 9 years ago

Freshly created an account on the website. I'm using lpass v0.3.0 from Wheezy. pinentry does not seem to work in my case (didn't investigate)

I thus tried: $ LPASS_DISABLE_PINENTRY=1 lpass login user@email.com which results in: Warning: Could not decrypt private key. Success: Logged in as user@email.com

Following ls/show operation result in:

Error: Unable to fetch blob. Either your session is invalid and you need to login with `lpass login`, you need to synchronize, your blob is empty, or there is something wrong with your internet connection.

A "sync" a 6.3 kb blob file but other ls/show/edit still fail.

bcopeland commented 9 years ago

Perhaps it is "your blob is empty" like the error message says -- if you add a site to the webvault at lastpass.com, does the problem persist?

drzraf commented 9 years ago

I didn't find on the website how to "fill the webvault". Should I really install the browser extension in order to get the cli to work?

bcopeland commented 9 years ago

No extension needed, just log into the website (https://lastpass.com) - click the sign in link, once in webvault click the "add site" link on left-hand site, enter some gibberish.

If that is the problem, we should behave better on the client, of course.

drzraf commented 9 years ago

On Tue, Dec 02, 2014 at 01:40:01PM -0800, Bob Copeland wrote:

No extension needed, just log into the website (https://lastpass.com)

  • click the sign in link, once in webvault click the "add site" link on left-hand site, enter some gibberish.

Hum, using FF webdevelopper I found it (eeepc 701 resolution makes hidden items >= 4th in this horizontal menu [and no horizontal scroll possible])

drzraf commented 9 years ago

On Tue, Dec 02, 2014 at 01:40:01PM -0800, Bob Copeland wrote:

If that is the problem, we should behave better on the client, of course.

ok, I filled the vault using the website. Then: $ lpass login # still show:

Warning: Could not decrypt private key.

anyway lpass ls/show/edit did work, good !

I did a: $ lpass logout $ rm -rf ~/.lpass

and retried: $ lpass login # still show

Warning: Could not decrypt private key.

but other ls/show/edit still now work consistently.

I'd naively say there are 2 issues:

thanks for the support!

wkoszek commented 6 years ago

@bcopeland Can we close this ticket? It's solved.