chainlink icon indicating copy to clipboard operation
chainlink copied to clipboard

Password Issue

Open da1712 opened this issue 3 years ago • 5 comments

error authenticating keystore: unable to decrypt encrypted key ring: could not decrypt key with given password

This is waht i get once i run this comman d and try to set the password cd ~/.chainlink && docker run -p 6688:6688 -v ~/.chainlink:/chainlink -it --env-file=.env smartcontract/chainlink:1.1.0 local n

da1712 avatar Feb 06 '22 21:02 da1712

Could you please add the whole output of the command, version of the chainlink node you're using, and all of the commands you're running?

PatrickAlphaC avatar Feb 08 '22 02:02 PatrickAlphaC

I did exavt same mentioned on the run chainlink node doc

da1712 avatar Feb 08 '22 02:02 da1712

Great! But one could always be in a different environment, maybe running some different commands, or something else happens. Can you please reproduce and add as much detail as possible here?

PatrickAlphaC avatar Feb 08 '22 02:02 PatrickAlphaC

i did on ubuntu all right for sure i tried it 4 times on diff server these are the steps i followed:

curl -sSL https://get.docker.com/ | sh
sudo usermod -aG docker $USER
mkdir ~/.chainlink
echo "ROOT=/chainlink
LOG_LEVEL=debug
ETH_CHAIN_ID=1
CHAINLINK_TLS_PORT=0
SECURE_COOKIES=false
ALLOW_ORIGINS=*" > ~/.chainlink/.env
echo "ETH_URL=infura wss url" >> ~/.chainlink/.env
echo "DATABASE_URL=postgres://url from heroku" >> ~/.chainlink/.env
cd ~/.chainlink && docker run -p 6688:6688 -v ~/.chainlink:/chainlink -it --env-file=.env smartcontract/chainlink:1.1.0 local n

After running the run chainlink node it asks me to set the password and when i set the password and hit enter it says this: error authenticating keystore: unable to decrypt encrypted key ring: could not decrypt key with given password

da1712 avatar Feb 08 '22 02:02 da1712

It sounds like you already have a private key encrypted. Do you have a ~/.chainlink/tempkeys folder with a keystore file in there?

It sounds like your database is also already looking for a private key. I'd recommend starting with a fresh database and deleting the .chainlink folder too (assuming you don't have any money in the node already)

PatrickAlphaC avatar Feb 08 '22 03:02 PatrickAlphaC

Closing due to lack of activity

PatrickAlphaC avatar Nov 08 '22 15:11 PatrickAlphaC