geth Fatal Failed to read genesis file open home edureka privatechain no such file or directory

+1 vote

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 6, 2018 in Blockchain by slayer
• 29,370 points
3,638 views

1 answer to this question.

0 votes

Use this:

geth --datadir ./data init ./custom_genesis.json
answered Dec 6, 2018 by Omkar
• 69,220 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,370 points
3,173 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
• 26,740 points
1,463 views
–1 vote
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 17, 2019 in Blockchain by Omkar
• 69,220 points
2,032 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
1,923 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
0 votes
0 answers

Error: Unexpected token o in JSON at position 1

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

Mar 6, 2019 in Blockchain by saeedi
• 120 points

edited Mar 6, 2019 by Omkar 2,476 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
• 69,220 points
1,882 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 6, 2018 in Blockchain by Omkar
• 69,220 points
7,195 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP