First of all I have to say that all this things will work on my windows machine. Today I started to do the same things on a ubuntu machine (with ssh and private key authentication). I've created a genesis.json file and a "blockchain" dir (that will be the location for my private chain data). But when I try to initiate (with my genesis file) the Blockchain, I recive this error:
Failed to read genesis file: open genesis.json: permission denied
. I've also performed the command chmod 777 genesis.json
, but nothing's changed.
The comand, that in windows will work, is: geth --datadir blokchain init genesis.json
. I've also tried to put the path of the dir and the file, but nothing.
Any idea? Thanks!
By the ways, this is my genesis.json file:
{
"coinbase" : "0x0000000000000000000000000000000000000001",
"difficulty" : "0x20000",
"extraData" : "",
"gasLimit" : "0x8000000000",
"nonce" : "0x0000000000000042",
"mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp" : "0x00",
"alloc": {},
"config": {
"chainId": 15,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0,
"EIP150Block":0,
"ByzantiumBlock":0
}
}
ls -l genesis.json
? Can you show more output log from geth? In any case it seems to be a problem unrelated to Ethereum more like with your file permissions, perhaps unix.stackexchange.com is a better fit.