Issue in Initialising the Blockchain

+2 votes
Whenever Iam executing the following command:

/home/vashist/go-ethereum/build/bin/geth --datadir ~/ethereum/net3/ init genesis/genesis3.json

Iam getting the following response:

Fatal: Failed to read genesis file: open genesis/genesis3.json: no such file or directory

How do I resolve this?
Jan 5, 2020 in Blockchain by vt
• 210 points
1,532 views
Hi, @vt,

Did you create your own genesis file with parameters that suit your configuration?
Nope. I copied the exact Json code provided in the tutorial video. Yet its showing the error
Are you trying to build a private or public Etherium?
A private one I think.

Have you watched the Edureka video on Blockchain on Youtube?

Basically there we are creating the go ethereum folder by cloning the github repository
You are suppossed to modify the genesis file according to your requirement if you are creating a private one.

Can you please share the link of that video you are following?

Thank you
https://youtu.be/QCvL-DWcojc?t=3484

Here's the link. I've included the exact timestamp at which the modification of the Genesis file starts.

That's true. But I don't actually know what I require. So I modified it in the way as given in the video.
Alright

Do you have the permissions to access to the genesis file?
Yup I do have access.
Hi, I am also getting the same error, please let me know how did you resolve this?

Hi, @EdurekaI

If you want to create a private Ethereum network, you need to create your own genesis file with customized parameters suitable for you. This ensures that you're running your version of the blockchain. Not the public ethereum blockchain.

1 answer to this question.

0 votes
Hi, I am also getting the same error, please let me know how did you resolve this?
answered Sep 17, 2020 by Edureka
• 200 points

reshown Sep 17, 2020 by Gitika

Related Questions In Blockchain

+1 vote
1 answer

Can Blocks be reorganized in the blockchain?

In practical applications, invalid transactions can not ...READ MORE

answered Jul 18, 2018 in Blockchain by Varun

edited Aug 3, 2018 by Omkar 721 views
+1 vote
1 answer

How do i change the names of validating peers in IBM Bluemix blockchain?

IBM Bluemix Blockchain service Hyperledger Fabric v0.6 will ...READ MORE

answered Apr 11, 2018 in Blockchain by Perry
1,000 views
0 votes
1 answer

In a Blockchain, how difficult is it to modify the third to last block?

Technically, it's not difficult at all, all ...READ MORE

answered Apr 20, 2018 in Blockchain by Christine
• 15,790 points
1,044 views
+1 vote
1 answer

What is the best way to search for an item in blockchain?

All transactions and records in blockchain are ...READ MORE

answered Apr 21, 2018 in Blockchain by Perry
• 17,100 points
1,936 views
0 votes
1 answer

How is the ledger kept consistent among differnt peers in blockchain?

Bitcoin doesn't guarantee that all ledgers become ...READ MORE

answered May 26, 2018 in Blockchain by Johnathon
• 9,090 points
1,137 views
0 votes
1 answer

I wish to know about the data storage in blockchain

That string would be stored in the ...READ MORE

answered Jun 22, 2018 in Blockchain by Johnathon
• 9,090 points
646 views
+1 vote
1 answer
0 votes
1 answer

Where is the data stored in blockchain?

The smart contract is just the business ...READ MORE

answered Jun 29, 2018 in Blockchain by slayer
• 29,370 points
1,479 views
0 votes
1 answer

How blocks are linked in the Hyperledger Fabric blockchain?

The structure of block in Hyperledger Fabric ...READ MORE

answered Jul 3, 2018 in Blockchain by Omkar
• 69,220 points
1,605 views
0 votes
1 answer

How to prevent the smart contract from being modified and deployed in the blockchain network?

To expand on Matthew's answer, each state ...READ MORE

answered Jul 6, 2018 in Blockchain by aryya
• 7,460 points
822 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