geth: Fatal: Failed to read genesis file: open “/home/edureka/privatechain/”: no such file or directory

0 votes

When I run this command:

geth --datadir “/home/user/privatechain/data” init “/home/user/privatechain/” 

I get error:

 Fatal: Failed to read genesis file: open “/home/user/privatechain/”: no such file or directory 

But the file exists there: 

pwd 

/home/user/privatechain 

user@user:~/privatechain$ ls 

custom_genesis.json data
Dec 5, 2018 in Blockchain by slayer
• 29,050 points
160 views

1 answer to this question.

0 votes

Use this:

geth --datadir ./data init ./custom_genesis.json
answered Dec 5, 2018 by Omkar
• 67,120 points

Related Questions In Blockchain

0 votes
1 answer

How to solve “ltdl.h: No such file or directory” error?

It seems like you are missing header ...READ MORE

answered Jul 26, 2018 in Blockchain by slayer
• 29,050 points
210 views
0 votes
1 answer

How to read file from subprocess.open in python?

you call: out, err = p.communicate() READ MORE

answered Aug 24, 2018 in Blockchain by digger
• 27,620 points
36 views
0 votes
1 answer

geth attach Fatal: Unable to attach to remote geth: no known transport for URL scheme "c"

Seems like geth.ipc path is not set. When ...READ MORE

answered Jan 16 in Blockchain by Omkar
• 67,120 points
64 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
103 views
0 votes
1 answer
0 votes
0 answers

Error: Unexpected token o in JSON at position 1

I have been working with Interacting a ...READ MORE

Mar 6 in Blockchain by saeedi
• 120 points

edited Mar 6 by Omkar 219 views
0 votes
1 answer

Hyperledger Fabric: cp: cannot stat ‘build/docker/gotools/bin/protoc-gen-go’: No such file or directory

Do this: $go get -u github.com/golang/protobuf/protoc-gen-go $ cp $GOPATH/bin/protoc-gen-go build/docker/gotools/bin/ Now ...READ MORE

answered Oct 29, 2018 in Blockchain by Omkar
• 67,120 points
213 views
0 votes
1 answer

geth: Fatal: invalid genesis file: invalid character 'â' looking for beginning of object key string

Looks like your editor is adding characters ...READ MORE

answered Dec 5, 2018 in Blockchain by Omkar
• 67,120 points
300 views