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

Unable to unlock accounts #945

Closed
arvicco opened this issue May 13, 2015 · 8 comments
Closed

Unable to unlock accounts #945

arvicco opened this issue May 13, 2015 · 8 comments

Comments

@arvicco
Copy link

arvicco commented May 13, 2015

Unable to unlock accounts. OSX 10.10.2, homebrewed Geth/v0.9.20/darwin/go1.4.2. Geth creates the accounts, but then always fails to unlock them (naturally, using the very same password). Seems like it looks for a wrong file (dba1d6db83a3cae28beac8850f2e9e5592572cf7 file is in keystore, allright, but it looks for something else entirely):

~ $ geth account new

Welcome to the
FRONTIER

Your new account is locked with a password. Please give a password. Do not forget this password.
Passphrase:
Repeat Passphrase:
Address: {dba1d6db83a3cae28beac8850f2e9e5592572cf7}
~ $ geth account list

Welcome to the
FRONTIER

Primary #0: {104dd1e7839e2ffa8f268a0b0a8340584b32ca87}
Account #1: {77203d4440bfd55ec993beac25bf312cec7757f7}
Account #2: {977bae5f4fc36bd29ef0f62483bf598141ac7eea}
Account #3: {dba1d6db83a3cae28beac8850f2e9e5592572cf7}
~ $ geth --unlock=dba1d6db83a3cae28beac8850f2e9e5592572cf7

Welcome to the
FRONTIER

I0512 21:23:57.522643 29697 backend.go:239] Protocol Version: 60, Network Id: 0
I0512 21:23:57.522900 29697 backend.go:249] Blockchain DB Version: 2
I0512 21:23:57.530293 29697 chain_manager.go:235] Last block (#317727) 6528e4dcd1c637c5a491467b5060c7ee4eb6f916dbd5cd7642a922d9dcec2969 TD=25102922718244
I0512 21:23:58.581426 29697 cmd.go:107] Starting Geth/v0.9.20/darwin/go1.4.2
I0512 21:23:58.583085 29697 server.go:209] Starting Server
I0512 21:23:59.596123 29697 nat.go:94] network port 30303 could not be mapped: no UPnP or NAT-PMP router discovered
I0512 21:23:59.605844 29697 udp.go:189] Listening, enode://0334aad57741893c705c7effb802f5cc60024c068e4f7d2f26dc8c26fd5eda77ef06848e000ba7b0558bdda8d8ca026f75fc2587128c7bba62d68f142275e727@[::]:30303
I0512 21:23:59.606046 29697 backend.go:456] Server started
I0512 21:23:59.606109 29697 nat.go:94] network port 30303 could not be mapped: no UPnP or NAT-PMP router discovered

I0512 21:23:59.606081 29697 server.go:349] Listening on [::]:30303
Passphrase:
Fatal: Unlock account failed 'open /Users/vb/Library/Ethereum/keystore/6338383530663265396535353932353732636637/6338383530663265396535353932353732636637: no such file or directory'
Fatal: Unlock account failed 'open /Users/vb/Library/Ethereum/keystore/6338383530663265396535353932353732636637/6338383530663265396535353932353732636637: no such file or directory'

@zelig
Copy link
Contributor

zelig commented May 13, 2015

It looks like it the hex of a hex . What if you prefix your key with 0x

-------- Original message --------
From: Ar Vicco notifications@github.com
Date: 13/05/2015 06:33 (GMT+01:00)
To: ethereum/go-ethereum go-ethereum@noreply.github.com
Subject: [go-ethereum] Unable to unlock accounts (#945)

Unable to unlock accounts. OSX 10.10.2, homebrewed Geth/v0.9.20/darwin/go1.4.2. Geth creates the accounts, but then always fails to unlock them (naturally, using the very same password). Seems like it looks for a wrong file (dba1d6db83a3cae28beac8850f2e9e5592572cf7 file is in keystore, allright, but it looks for something else entirely):

~ $ geth account new

Welcome to the

  FRONTIER

Your new account is locked with a password. Please give a password. Do not forget this password.

Passphrase:

Repeat Passphrase:

Address: {dba1d6db83a3cae28beac8850f2e9e5592572cf7}

~ $ geth account list

Welcome to the

  FRONTIER

Primary #0: {104dd1e7839e2ffa8f268a0b0a8340584b32ca87}

Account #1: {77203d4440bfd55ec993beac25bf312cec7757f7}

Account #2: {977bae5f4fc36bd29ef0f62483bf598141ac7eea}

Account #3: {dba1d6db83a3cae28beac8850f2e9e5592572cf7}

~ $ geth --unlock=dba1d6db83a3cae28beac8850f2e9e5592572cf7

Welcome to the

  FRONTIER

I0512 21:23:57.522643 29697 backend.go:239] Protocol Version: 60, Network Id: 0

I0512 21:23:57.522900 29697 backend.go:249] Blockchain DB Version: 2

I0512 21:23:57.530293 29697 chain_manager.go:235] Last block (#317727) 6528e4dcd1c637c5a491467b5060c7ee4eb6f916dbd5cd7642a922d9dcec2969 TD=25102922718244

I0512 21:23:58.581426 29697 cmd.go:107] Starting Geth/v0.9.20/darwin/go1.4.2

I0512 21:23:58.583085 29697 server.go:209] Starting Server

I0512 21:23:59.596123 29697 nat.go:94] network port 30303 could not be mapped: no UPnP or NAT-PMP router discovered

I0512 21:23:59.605844 29697 udp.go:189] Listening, enode://0334aad57741893c705c7effb802f5cc60024c068e4f7d2f26dc8c26fd5eda77ef06848e000ba7b0558bdda8d8ca026f75fc2587128c7bba62d68f142275e727@[::]:30303

I0512 21:23:59.606046 29697 backend.go:456] Server started

I0512 21:23:59.606109 29697 nat.go:94] network port 30303 could not be mapped: no UPnP or NAT-PMP router discovered

I0512 21:23:59.606081 29697 server.go:349] Listening on [::]:30303

Passphrase:

Fatal: Unlock account failed 'open /Users/vb/Library/Ethereum/keystore/6338383530663265396535353932353732636637/6338383530663265396535353932353732636637: no such file or directory'

Fatal: Unlock account failed 'open /Users/vb/Library/Ethereum/keystore/6338383530663265396535353932353732636637/6338383530663265396535353932353732636637: no such file or directory'


Reply to this email directly or view it on GitHub.

@Gustav-Simonsson
Copy link

@zelig You're right, it's hex of hex. Our mistake, we didn't test this flag after the key store PR merge yestereday. Fix: #946

@debris
Copy link
Contributor

debris commented May 13, 2015

I also reproduced this issue on OSX 10.10, 6dec904.

It looks like Library/Ethereum/keystore directory do not exist. My previous keys were stored in Library/Ethereum/keys. I tried to copy them from old directory to new one, but then i get the following error:

> admin.unlock(eth.coinbase, 'super_secret', 10 * 60 * 1000)
Unlock account failed 'encoding/hex: invalid byte: U+0069 'i''
false

@obscuren
Copy link
Contributor

@debris
Copy link
Contributor

debris commented May 13, 2015

Thanks!

@arvicco
Copy link
Author

arvicco commented May 13, 2015

Same stuff if I prefix with 0x, doesn't matter:

~ $ geth --unlock=0xdba1d6db83a3cae28beac8850f2e9e5592572cf7

Welcome to the
FRONTIER

I0513 09:35:12.179586 30335 backend.go:239] Protocol Version: 60, Network Id: 0
I0513 09:35:12.179647 30335 backend.go:249] Blockchain DB Version: 2
I0513 09:35:12.184328 30335 chain_manager.go:235] Last block (#317727) 6528e4dcd1c637c5a491467b5060c7ee4eb6f916dbd5cd7642a922d9dcec2969 TD=25102922718244
I0513 09:35:13.519335 30335 cmd.go:107] Starting Geth/v0.9.20/darwin/go1.4.2
I0513 09:35:13.520001 30335 server.go:209] Starting Server
I0513 09:35:14.250244 30335 nat.go:94] network port 30303 could not be mapped: no UPnP or NAT-PMP router discovered
I0513 09:35:14.255580 30335 udp.go:189] Listening, enode://0334aad57741893c705c7effb802f5cc60024c068e4f7d2f26dc8c26fd5eda77ef06848e000ba7b0558bdda8d8ca026f75fc2587128c7bba62d68f142275e727@[::]:30303
I0513 09:35:14.255750 30335 backend.go:456] Server started
I0513 09:35:14.255741 30335 server.go:349] Listening on [::]:30303

I0513 09:35:14.255850 30335 nat.go:94] network port 30303 could not be mapped: no UPnP or NAT-PMP router discovered
Passphrase:
Fatal: Unlock account failed 'open /Users/vb/Library/Ethereum/keystore/6338383530663265396535353932353732636637/6338383530663265396535353932353732636637: no such file or directory'
Fatal: Unlock account failed 'open /Users/vb/Library/Ethereum/keystore/6338383530663265396535353932353732636637/6338383530663265396535353932353732636637: no such file or directory'

@arvicco
Copy link
Author

arvicco commented May 13, 2015

I confirm that the latest --devel version resolved this specific issue on OSX.

@obscuren
Copy link
Contributor

Yes, this has been fixed. Sorry about the fuck up!

@arvicco arvicco closed this as completed May 13, 2015
maoueh pushed a commit to streamingfast/go-ethereum that referenced this issue Sep 13, 2023
…port EIP-4337 Bundled Transactions (ethereum#945)

* added new api to support conditional transactions (EIP-4337) (ethereum#700)

* Refactored the code and updated the miner to check for the validity of options (ethereum#793)

* refactored the code and updated the miner to check for the validity of options

* added new errors -32003 and -32005

* added unit tests

* addressed comments

* Aa 4337 update generics (ethereum#799)

* poc

* minor bug fix

* use common.Hash

* updated UnmarshalJSON function (reference - tynes)

* fix

* done

* linters

* with test

* undo some unintentional changes

---------

Co-authored-by: Pratik Patil <pratikspatil024@gmail.com>

* handelling the block range and timestamp range, also made timestamp a pointer

---------

Co-authored-by: Evgeny Danilenko <6655321@bk.ru>

* Added filtering of conditional transactions in txpool (ethereum#920)

* added filtering of conditional transactions in txpool

* minor fix in ValidateKnownAccounts

* bug fix

* Supporting nil knownAccounts

* lints

* bundled transactions are not announced/broadcasted to the peers

* fixed after upstream merge

* few fixes

* sentry reject conditional transaction

* Changed the namespace of conditional transaction API from `eth` to `bor` (ethereum#985)

* added conditional transaction to bor namespace

* test comit

* test comit

* added conditional transaction

* namespapce changed to bor

* cleanup

* cleanup

* addressed comments

* reverted changes in ValidateKnownAccounts

* addressed comments and removed unwanted code

* addressed comments

* bug fix

* lint

* removed licence from core/types/transaction_conditional_test.go

---------

Co-authored-by: Evgeny Danilenko <6655321@bk.ru>
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

5 participants