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

Fatal: Unlock account failed 'read ~/Library/Ethereum/keys: is a directory' #472

Closed
jorisbontje opened this issue Mar 12, 2015 · 9 comments
Labels
Milestone

Comments

@jorisbontje
Copy link

with develop commit 11390a9:

$ rm -rf ~/Library/Ethereum/
$ ethereum account new
The new account will be encrypted with a passphrase.
Please enter a passphrase now.
Passphrase: <bla>
Repeat Passphrase: <bla>
Address: 0x214eb547fcbb367724bb98b6c9e1a46986a4a522
$ ethereum -mine=true -rpc=true -rpcport=8080 -unlock=0x214eb547fcbb367724bb98b6c9e1a46986a4a522:bla
Welcome to the FRONTIER
2015/03/12 20:47:19 [CHAIN] Last block (#0) b5d6d8402156c5c1dfadaa4b87c676b5bcadb17ef9bc8e939606daaa0d35f55d TD=0
2015/03/12 20:47:19 Making Cache
2015/03/12 20:47:19 Took: 78.501352ms
2015/03/12 20:47:19 [CLI] Starting  Ethereum(G)/v0.9.0/darwin/go1.4.2
2015/03/12 20:47:19 [P2P Server] Starting Server
2015/03/12 20:47:21 ssdp: got unexpected search target result "hnap:GatewayWithWiFi"
2015/03/12 20:47:21 ssdp: got unexpected search target result "hnap:GatewayWithWiFi"
2015/03/12 20:47:21 ssdp: got unexpected search target result "hnap:GatewayWithWiFi"
2015/03/12 20:47:21 [P2P NAT] mapping error: no devices discovered
2015/03/12 20:47:21 [P2P Discovery] Listening,  enode://cc62b85f3390e1e8493099b192e8e498d00ddbb078d6f29ccc92c1dab4f46bda5a66892048f09946c86dd7bd5b62ad32a663ae4eee2127f13de4693f998b6b37@10.0.0.1:30303
2015/03/12 20:47:21 [Blockpool] Started
2015/03/12 20:47:21 [SHH] Whisper started
2015/03/12 20:47:21 [P2P Server] Listening on [::]:30303
2015/03/12 20:47:21 [SERV] Server started
Fatal: Unlock account failed 'read /Users/username/Library/Ethereum/keys: is a directory'
*** [ 20:47:34 | main ] Closing state DB
*** [ 20:47:34 | main ] Closing blockchain DB
@jorisbontje jorisbontje changed the title Fatal: Unlock account failed 'read /Users/username/Library/Ethereum/keys: is a directory' Fatal: Unlock account failed 'read ~/Library/Ethereum/keys: is a directory' Mar 12, 2015
@maran
Copy link
Member

maran commented Mar 13, 2015

The address should be supplied to unlock without the leading 0x in this case.

@obscuren Can I add a little check to see wether 0x is given or not so both formats work?

@tgerring
Copy link
Contributor

+1 to additionally supporting "0x" format. There are some scattered "fromHex" convenience methods around that could be duplicated

@obscuren
Copy link
Contributor

But of course

@drcode
Copy link

drcode commented Mar 14, 2015

Hi, so after I do this correctly (AFAIK) I'm still getting an error in ethereum.js when I connect through the rpc of "could not unlock sender account"... any suggestions on what I'm doing wrong or what I'm missing? Do I need to supply the password somehow from the ethereum.js side?

@obscuren
Copy link
Contributor

@drcode start ethereum with unlocked account like so: ethereum --unlock address:password --rpc. Mist is going to come with it's own handler and will be implemented asap.

@obscuren obscuren added this to the Frontier milestone Mar 14, 2015
@drcode
Copy link

drcode commented Mar 14, 2015

Hi @obscuren, I've already been following those steps and still get "could not unlock sender account" from the javascript side.

However, it seems to be working fine for others and I'm changing focus right now to UI work anyways, so I'll just check back in a couple of weeks and try again- Thanks for all your great work on this awesome program!

@obscuren
Copy link
Contributor

That's odd. Are you sure you're on the latest develop? There was a time where we didn't have the --unlock flag.

@scottzer0
Copy link

i'm getting the same problem as drcode. using the devel (0.9.1) version via homebrew

@drcode
Copy link

drcode commented Mar 21, 2015

@scottzer0, make sure your javascript sendTransaction functions all have a "from" field. I think you're running an older build of ethereumjs that is missing the more helpful error message taylor recently added about the "from" field.

maoueh pushed a commit to streamingfast/go-ethereum that referenced this issue Nov 12, 2021
[R4R]add metrics for contract code bitmap cache
tony-ricciardi pushed a commit to tony-ricciardi/go-ethereum that referenced this issue Jan 20, 2022
…ntract calls (ethereum#472)

* set max gas to double of the charged gas for the 'intrinsic' evm operations

* addressed PR comments

* addressed pr comment
tony-ricciardi pushed a commit to tony-ricciardi/go-ethereum that referenced this issue Jan 20, 2022
* contract_comm/currency/currency.go

* fixed the txn price-sorted min-heap

* merge master (ethereum#490)

* Add precompiles to access validator set (ethereum#441)

* set max gas to double of the charged gas for the 'intrinsic' smart contract calls (ethereum#472)

* set max gas to double of the charged gas for the 'intrinsic' evm operations

* addressed PR comments

* addressed pr comment

* Adds Prepared Certificates to ensure Istanbul liveness (ethereum#366)

* Check message address against signature (ethereum#477)

* Check signing validator's address matches msg address

* Add comments about use of sig data in tests

* Try fix Circle build test failures

* Try fix Circle build test failures, take 2
tony-ricciardi pushed a commit to tony-ricciardi/go-ethereum that referenced this issue Jan 20, 2022
* Log on ValidatorElections

* merge master (ethereum#496)

* Check message address against signature (ethereum#477)

* Check signing validator's address matches msg address

* Add comments about use of sig data in tests

* Try fix Circle build test failures

* Try fix Circle build test failures, take 2

* tx price heap fix (ethereum#471)

* contract_comm/currency/currency.go

* fixed the txn price-sorted min-heap

* merge master (ethereum#490)

* Add precompiles to access validator set (ethereum#441)

* set max gas to double of the charged gas for the 'intrinsic' smart contract calls (ethereum#472)

* set max gas to double of the charged gas for the 'intrinsic' evm operations

* addressed PR comments

* addressed pr comment

* Adds Prepared Certificates to ensure Istanbul liveness (ethereum#366)

* Check message address against signature (ethereum#477)

* Check signing validator's address matches msg address

* Add comments about use of sig data in tests

* Try fix Circle build test failures

* Try fix Circle build test failures, take 2

* added new option --use-in-memory-discovery-table (ethereum#479)

* added new option --use-in-memory-discovery-table

* merge master (ethereum#489)

* Adds Prepared Certificates to ensure Istanbul liveness (ethereum#366)

* Check message address against signature (ethereum#477)

* Check signing validator's address matches msg address

* Add comments about use of sig data in tests

* Try fix Circle build test failures

* Try fix Circle build test failures, take 2

* Allow v4/v5 on a bootnode simultaneously, allow mobile to use discv5 (ethereum#454)

* changes for isolating celo networks

* changes to get unit tests working

* changes to add salt in the discovery packets

* removed checking for the ip address when handling a reply

* added ping-ip-from-packet option to bootnode

* for handling expected replies, don't filter on expected sender ip address if --pingIPFromPacket is used

* Add v4 flag

* Add unhandled and quicken docker builds

* Add salt & logs

* Add v4 flag

* Add PeerDiscovery to mobile node config

* Remove logs

* Remove hardcoded bootnodes

* Add salt & turn on discv5

* Delete hardcoded eth bootnodes

* Make Discoveryv5 configurable

* Lint

* Add comment to bootnode v4/v5 handling

* Change PeerDiscovery -> NoDiscovery

* Remove mobile geth no discovery

* Reduce istanbul default timeout, cap exp backoff (ethereum#475)

* Reduce istanbul default timeout, cap exp backoff

* Ensure round 0 timeout factors in block period

* Sanitize logs (ethereum#495)

* Change registry lookup and infrastructure lookup error logs to debug level

* Sanitize logs regarding registry deployment

* Change empty abi logging and comment

* Lower log level from error to warning for potentially outdated istanbul messages

* Change back to an error message

* Add input length checks for precompiled contracts (ethereum#476)

* add input length checks

* check exact input length. add a new error for input length. check input in a few more places

* add tests that verify the input-length checks for contracts that don't require an evm instance

* fix formatting

* add comments to explain input length checks

* run the formatter

* e2e transfer test was failing because it passes in a transaction options object, making the input larger than 96 bytes

* e2e tests have revealed that our precompiled contracts need to be tolerant of inputs that are longer than the bytes that are actually read
tanishqjasoria pushed a commit to tanishqjasoria/go-ethereum that referenced this issue Oct 31, 2023
tanishqjasoria pushed a commit to tanishqjasoria/go-ethereum that referenced this issue Sep 3, 2024
* implement post-nyota verkle costs

* fix tests and a few bugs

* make linter happy

* attempt at fixing replay + shadowfork

* nyota fixes (ethereum#469)

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* fixes from replaying nyota costs (ethereum#472)

* fixes from replaying nyota costs

Signed-off-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com>

* add left-out conversion file

* fix balance endianness + set code size in UpdateAccount

* add leftover endianness change

* remove code cleanup leftover

* use 5 as the code size offset

this matches the spec, even if we have to add a weird -1 here and there

* save buffer creation for PutUint32

---------

Signed-off-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com>

* fix most tests

* ci: fix buggy target spec tests (temporary)

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>

* fix last failing test

---------

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com>
Co-authored-by: Ignacio Hagopian <jsign.uy@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

6 participants