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

Comments

Projects
None yet
5 participants
@arvicco

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

This comment has been minimized.

Show comment
Hide comment
@zelig

zelig May 13, 2015

Contributor

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.

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

This comment has been minimized.

Show comment
Hide comment
@Gustav-Simonsson

Gustav-Simonsson May 13, 2015

Member

@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

Member

Gustav-Simonsson commented May 13, 2015

@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

This comment has been minimized.

Show comment
Hide comment
@debris

debris May 13, 2015

Contributor

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
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

This comment has been minimized.

Show comment
Hide comment
Member

obscuren commented May 13, 2015

@debris

This comment has been minimized.

Show comment
Hide comment
@debris

debris May 13, 2015

Contributor

Thanks!

Contributor

debris commented May 13, 2015

Thanks!

@arvicco

This comment has been minimized.

Show comment
Hide comment
@arvicco

arvicco 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 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

This comment has been minimized.

Show comment
Hide comment
@arvicco

arvicco May 13, 2015

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

arvicco commented May 13, 2015

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

@obscuren

This comment has been minimized.

Show comment
Hide comment
@obscuren

obscuren May 13, 2015

Member

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

Member

obscuren commented May 13, 2015

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

@arvicco arvicco closed this May 13, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment