You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fatal: Failed to unlock account: 0xb16711ee4a2b5b229729bd33d73c39c7527acb11
docker run --name geth -it -p 8545:8545 -p 30303:30303 --volumes-from=geth-data ethereum/client-go --password <(echo -n 'test') --unlock 0
Fatal: Failed to read password file: open /dev/fd/63: no such file or directory
docker run --name geth -d -p 8545:8545 -p 30303:30303 --volumes-from=geth-data ethereum/client-go
docker exec -it geth geth attach
> personal.unlockAccount(web3.eth.accounts[0])
> Please enter your password..
> test
> false :-(
But it is working when you send a transaction, it ask you to unlock, for some reason it accepts the password here...
web3.eth.sendTransaction({from: "0xb16711ee4a2b5b229729bd33d73c39c7527acb11", to: "0x4efc6fc02f27960584be19df02567950931f0e7a", value: 1000000000000, gas:21000, gasPrice:web3.toWei(60, 'gwei')})
> Please enter your password..
> test
> ... transaction_id ... nice :-) !
I can't see another option to try, hopefully I am missing something obvious.
I need that option because I would like to automate the deployment of geth, while getting the password from a vault.
Thank you for your help!! And good week! :-)
Greg.
The text was updated successfully, but these errors were encountered:
Hello, seems like my problem is due of the alteration of my wallet password, when I create a new account via :
docker exec -it geth geth account new
If you see in docker "Unsupported terminal, password will be echoed.", thing will probably not work.
Seems like the prompt is acting strange and geth will not accept the same password I just set seconds ago.
A workaround I found is to create the wallet from a non-docker geth, or be in the container while creating the password:
docker run --rm -it --entrypoint /bin/bash ethereum/client-go
Then unlocking the account work with a local file:
... geth --password /root/.ethereum/pw --unlock 0
But it still doesn't work (through docker) with an echo :
... geth --password <(echo -n 'mypass') --unlock 0
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.
Hello Ethereum team!
I got issues to unlock account in Docker, impossible via --unlock in cmd or js (only possible while sending a transaction).
My environnement:
My steps:
DATA container (for blockchain, wallet, password)
Import wallet
Run geth while unlocking wallet: I tried all these commands with no luck:
Fatal: Failed to unlock account: 0xb16711ee4a2b5b229729bd33d73c39c7527acb11
I tried:
With js, unlocking doesn't work too:
But it is working when you send a transaction, it ask you to unlock, for some reason it accepts the password here...
I can't see another option to try, hopefully I am missing something obvious.
I need that option because I would like to automate the deployment of geth, while getting the password from a vault.
Thank you for your help!! And good week! :-)
Greg.
The text was updated successfully, but these errors were encountered: