Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to decrypt key #5585

Closed
kumavis opened this issue Apr 23, 2020 · 3 comments
Closed

Failed to decrypt key #5585

kumavis opened this issue Apr 23, 2020 · 3 comments

Comments

@kumavis
Copy link

kumavis commented Apr 23, 2020

🐞 Bug Report

Description

Following the instructions on https://prylabs.net/participate
I encounter error

Failed to decrypt key error=could not decrypt key with given passphrase

Has this worked before in a previous version?

i assume so

🔥 Error

[2020-04-23 10:37:33]  INFO keymanager: Enter your validator account password:
[2020-04-23 10:37:53]  WARN Failed to decrypt key error=could not decrypt key with given passphrase keyfile={"publickey":"a9e4ff981c188d8e9b7e97fa02876782fba3f4dc70279097eab1d0e0c8195c8404de7c9f3efd555cb5cb74571f8b7ba8","crypto":{"cipher":"aes-128-ctr","ciphertext":"e6958c597e904994c1dea5c931e7a1fb4140024f98cee68ef34955324e0e6cd1","cipherparams":{"iv":"04d9c93210b779022fdd58c1e8c69f1f"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"ee736ae107a7d2e61bfab844f6628b538e959f098534ac8d9cedaaaff4dda3cb"},"mac":"2d83ac3123c99f3bd6959477ae676af227652530d9e869e3590da0e26f31886e"},"id":"7a8d1127-de97-41f9-a0c8-6be64110ee7d"}
[2020-04-23 10:37:53]  WARN node: No keys found; nothing to validate

🔬 Minimal Reproduction

prysm on  master took 3m 50s 
⇡0% ➜ rm -rf ~/validator 

using password password1234
also note: junk logged to console? ^[[?65;1;9c
and: CPU quota undefined (maybe normal?)

prysm on  master 
⇡0% ➜ ./prysm.sh validator accounts create --keystore-path=$HOME/validator
Latest Prysm version is v1.0.0-alpha.5.
Beacon chain is up to date.
Validator is up to date.
Starting Prysm validator accounts
reatem--keystore-path=/home/xyz/validator
^[[?65;1;9c2020/04/23 10:36:46 maxprocs: Leaving GOMAXPROCS=8: CPU quota undefined
[2020-04-23 10:36:46]  WARN flags: Using default mainnet config
[2020-04-23 10:36:46]  WARN flags: Disabled validator proposal slashing protection.
[2020-04-23 10:36:46]  WARN flags: Disabled validator attestation slashing protection.
[2020-04-23 10:36:46]  INFO accounts: Create a new validator account for eth2
[2020-04-23 10:36:46]  INFO accounts: Enter a password:
[2020-04-23 10:36:59]  INFO accounts: Keystore path to save your private keys (leave blank for default /home/xyz/validator):

[2020-04-23 10:37:04]  INFO accounts: Keystore generated for shard withdrawals at path path=/home/xyz/validator/shardwithdrawalkey8a24df91fd36
[2020-04-23 10:37:04]  INFO accounts: Keystore generated for validator signatures at path path=/home/xyz/validator/validatorprivatekeya9e4ff981c18
[2020-04-23 10:37:04]  INFO accounts: Account creation complete! Copy and paste the raw transaction data shown below when issuing a transaction into the ETH1.0 deposit contract to activate your validator client

========================Raw Transaction Data=======================

0x22895118000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012005e2f0e45e1fa4d646093d9a9ddcb709046747fc008ed0a6e19b3dbfe0e9c7080000000000000000000000000000000000000000000000000000000000000030a9e4ff981c188d8e9b7e97fa02876782fba3f4dc70279097eab1d0e0c8195c8404de7c9f3efd555cb5cb74571f8b7ba80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200021477dcb3f435b23d34393a1080b492aa947fb991fd8adf1fdee5ee9984728000000000000000000000000000000000000000000000000000000000000006085b8f067d885487fbaaded80071aa95f49afaf9d7d7b8c529a92a30999b700b5a15a1a7739e7303e810d67d88a11d7cd074af2c90e605d4f93ed88c1d498ffda07681ce3c248d1a7625cdf6b6134079300f501a14d834a8f2f0736ac01dabd0e

===================================================================
prysm on  master took 29s 
⇡0% ➜ la ~/validator 
total 8.0K
-rw------- 1 xyz xyz 537 Apr 23 10:37 shardwithdrawalkey8a24df91fd36
-rw------- 1 xyz xyz 537 Apr 23 10:37 validatorprivatekeya9e4ff981c18

same password password1234

prysm on  master 
⇡0% ➜ ./prysm.sh validator --keystore-path=$HOME/validator                
Latest Prysm version is v1.0.0-alpha.5.
Beacon chain is up to date.
Validator is up to date.
Starting Prysm validator --keystore-path=/home/xyz/validator
2020/04/23 10:37:33 maxprocs: Leaving GOMAXPROCS=8: CPU quota undefined
[2020-04-23 10:37:33]  WARN flags: Using default mainnet config
[2020-04-23 10:37:33]  WARN flags: Disabled validator proposal slashing protection.
[2020-04-23 10:37:33]  WARN flags: Disabled validator attestation slashing protection.
[2020-04-23 10:37:33]  WARN node: --keystore-path flag is deprecated.  Please use --keymanager=keystore --keymanageropts='{"path":"/home/xyz/validator","passphrase":""}'
[2020-04-23 10:37:33]  INFO keymanager: Enter your validator account password:
[2020-04-23 10:37:53]  WARN Failed to decrypt key error=could not decrypt key with given passphrase keyfile={"publickey":"a9e4ff981c188d8e9b7e97fa02876782fba3f4dc70279097eab1d0e0c8195c8404de7c9f3efd555cb5cb74571f8b7ba8","crypto":{"cipher":"aes-128-ctr","ciphertext":"e6958c597e904994c1dea5c931e7a1fb4140024f98cee68ef34955324e0e6cd1","cipherparams":{"iv":"04d9c93210b779022fdd58c1e8c69f1f"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"ee736ae107a7d2e61bfab844f6628b538e959f098534ac8d9cedaaaff4dda3cb"},"mac":"2d83ac3123c99f3bd6959477ae676af227652530d9e869e3590da0e26f31886e"},"id":"7a8d1127-de97-41f9-a0c8-6be64110ee7d"}
[2020-04-23 10:37:53]  WARN node: No keys found; nothing to validate
[2020-04-23 10:37:53]  INFO node: Starting validator node version=Prysm/Git commit: f880fb4ee404e9dd6a7d5de06c387c8e8ba865b7. Built at: 2020-04-22 03:12:35+00:00
[2020-04-23 10:37:53]  WARN validator: You are using an insecure gRPC connection! Please provide a certificate and key to use a secure connection.
[2020-04-23 10:37:53]  INFO validator: Waiting for beacon chain start log from the ETH 1.0 deposit contract
[2020-04-23 10:37:53]  INFO validator: Beacon chain started genesisTime=2020-04-18 08:00:00 +0800 +08
^C[2020-04-23 10:38:21]  INFO node: Got interrupt, shutting down...
[2020-04-23 10:38:21]  INFO validator: Stopping service
[2020-04-23 10:38:21]  INFO node: Stopping sharding validator

🌍 Your Environment

Operating System:

prysm on  master 
⇡0% ➜ uname -a
Linux roon 5.0.0-38-generic #41-Ubuntu SMP Tue Dec 3 00:27:35 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

What version of Prysm are you running? (Which release)

v1.0.0-alpha.5

prysm on  master took 2s 
⇡0% ➜ git rev-parse HEAD
8b058b51d46ba0e7bbf7a08bf1a16d1acbb512f1

Anything else relevant (validator index / public key)?

prysm on  master 
⇡0% ➜ cat ~/validator/shardwithdrawalkey8a24df91fd36 
{"publickey":"8a24df91fd36f1fd810b15cc81c0ae1ab6eb7d3b5f667d424896abc60e9b1030c933298397fbefb63770bc0dd1588d2d","crypto":{"cipher":"aes-128-ctr","ciphertext":"ae36e5f6b2b43874b7f501773b7b34b10b898ce4b0ca7671c77f00da83f17ed6","cipherparams":{"iv":"48083a5c9fd4843457ed83aed5e603ac"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"cc60df3fc22da4c3bdb750b24a8869ba30cef8cd2ef43161e492246f0aff26b8"},"mac":"7c225b2105fabfeb0ff5c7ed9d857b6e038979765878e25af5981a865fe073ea"},"id":"2d990574-ac53-456f-9ee1-f25ba9b3b978"}%      
prysm on  master 
⇡0% ➜ cat ~/validator/validatorprivatekeya9e4ff981c18 
{"publickey":"a9e4ff981c188d8e9b7e97fa02876782fba3f4dc70279097eab1d0e0c8195c8404de7c9f3efd555cb5cb74571f8b7ba8","crypto":{"cipher":"aes-128-ctr","ciphertext":"e6958c597e904994c1dea5c931e7a1fb4140024f98cee68ef34955324e0e6cd1","cipherparams":{"iv":"04d9c93210b779022fdd58c1e8c69f1f"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"ee736ae107a7d2e61bfab844f6628b538e959f098534ac8d9cedaaaff4dda3cb"},"mac":"2d83ac3123c99f3bd6959477ae676af227652530d9e869e3590da0e26f31886e"},"id":"7a8d1127-de97-41f9-a0c8-6be64110ee7d"}%      
@Buttaa
Copy link

Buttaa commented Apr 23, 2020

hey @kumavis try this: #5438

@kumavis
Copy link
Author

kumavis commented Apr 23, 2020

closing as duplicate of #5438

@kumavis kumavis closed this as completed Apr 24, 2020
@farazdagi
Copy link
Contributor

@kumavis thank you for closing the issue. Also wanted to let you know that the issue with junk logged into terminal has also been fixed in #5594

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants