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

accounts: unlock multiple accounts fails #1785

Closed
danielnovy opened this issue Sep 9, 2015 · 6 comments
Closed

accounts: unlock multiple accounts fails #1785

danielnovy opened this issue Sep 9, 2015 · 6 comments
Assignees
Labels
Milestone

Comments

@danielnovy
Copy link

When trying to use --unlock="0 1" geth fails with the message: Fatal: Unlock account failed 'Decryption failed: MAC mismatch'. The first account is unlocked and the message Account '0' unlocked is printed.

It's important to note that unlock="0" AND unlock="1" both works! Also, if you invert the order ("1 0" instead of "0 1"), it prints Account '1' unlocked and then fails to unlock second account with same message. So, the problem is clearly related to unlock multiple accounts and problem always happens on second account.

@obscuren obscuren changed the title Unlock multiple accounts always fails. accounts: unlock multiple accounts fails Sep 10, 2015
@obscuren obscuren added this to the 1.3.0 milestone Sep 10, 2015
@zelig zelig mentioned this issue Sep 22, 2015
12 tasks
zelig referenced this issue in ethersphere/swarm Oct 21, 2015
* lines with leading space are ommitted from history
* exit processed even with whitespace around
* all whitespace lines (not only empty ones) are ignored

add 7 missing commands to admin api autocomplete

registrar: methods now return proper error if reg addresses are not set. fixes #1457

rpc/console: fix personal.newAccount() regression. Now all comms accept interactive password

registrar: add registrar tests for errors

crypto: catch AES decryption error on presale wallet import + fix error msg format. fixes #1580

CLI: improve error message when starting a second instance of geth. fixes #1564

cli/accounts: unlock multiple accounts. fixes #1785
* make unlocking multiple accounts work with inline <() fd
* passwdfile now correctly read only once
* improve logs
* fix CLI help text for unlocking

fix regression with docRoot / admin API
* docRoot/jspath passed to rpc/api ParseApis, which passes onto adminApi
* docRoot field for JS console in order to pass when RPC is (re)started
* improve flag desc for jspath

common/docserver: catch http errors from response

fix rpc/api tests

common/natspec: fix end to end test (skipped because takes 8s)

registrar: fix major regression:
* deploy registrars on frontier
* register HashsReg and UrlHint in GlobalRegistrar.
* set all 3 contract addresses in code
* zero out addresses first in tests
@zelig
Copy link
Contributor

zelig commented Nov 4, 2015

I believe this has already been fixed in #1840

@karalabe
Copy link
Member

Closing if supposedly fixed. Please reopen if it's not the case. Also note, an upcoming PR will change the account list to comma separated values instead of space separated ones. This is a general move towards eliminating whitespace from within CLI arguments as they cause significant pains when passing through different environments (e.g. bash -> go -> docker -> bash).

@danielnovy
Copy link
Author

Sorry for my late reply! Just tried it now and it's still not working in version 1.4.0-unstable. So, please, reopen the issue since I don't have the privileges to do so. Thanks!

@karalabe karalabe reopened this Nov 26, 2015
@karalabe
Copy link
Member

I'll take a look

@fjl fjl self-assigned this Mar 14, 2016
@javgh
Copy link

javgh commented Mar 17, 2016

I'm also seeing this with geth 1.3.5 - trying to unlock more than one account via --unlock "0 1" fails on whatever account is listed second with a 'Decryption failed: MAC mismatch' error, but only when used in combination with the --password option. When entering the passwords manually, both accounts are unlocked successfully. I'm also only seeing this error on one of my machines - another one also has two accounts and the same geth version and there it works. At the moment I don't see what the difference might be.

@thiagohortal
Copy link

Hello guys,
I am also getting this return: 'Decryption failed: MAC mismatch', any solution?
I am using web3 project.

Help!

@fjl fjl mentioned this issue Mar 30, 2016
6 tasks
tony-ricciardi pushed a commit to tony-ricciardi/go-ethereum that referenced this issue Jan 20, 2022
* Added new flags for http timeouts

* Update cmd/utils/flags.go

Co-authored-by: piersy <pierspowlesland@gmail.com>

* Update cmd/utils/flags.go

Co-authored-by: piersy <pierspowlesland@gmail.com>

* Update cmd/utils/flags.go

Co-authored-by: piersy <pierspowlesland@gmail.com>

* Do not duplicate default timeout variables

* Normalice default timeout values to seconds

* Update eth/protocols/snap/sync.go

Revert message

Co-authored-by: piersy <pierspowlesland@gmail.com>
Co-authored-by: Gaston Ponti <pontigaston@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants