Hyperledger Fabric: Not able to create the channel "Channel creation failed" error

+1 vote

When I run the command

./byfn.sh -m up

I am getting the following error while creating the channel:

018-02-27 19:34:51.325 UTC [bccsp_sw] loadPrivateKey ->
ERRO 001 Failed loading private key [ec1f4a4699b91d9e6010e30aea31c0d1ba60f4e1787b84a5e03bb7aafc730b5a]: [open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/ec1f4a4699b91d9e6010e30aea31c0d1ba60f4e1787b84a5e03bb7aafc730b5a_sk: permission denied].
2018-02-27 19:34:51.325 UTC [main] main ->
ERRO 002 Cannot run peer because error when setting up MSP of type bccsp from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp:
KeyMaterial not found in SigningIdentityInfo
!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!

How to fix this?

Nov 2, 2018 in Blockchain by digger
• 26,550 points
967 views

2 answers to this question.

+2 votes
Best answer

Seems like you have not set the right PATH. Set the Correct path of Go in environment variable.

sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt-get update
sudo apt-get install -y golang-go make
cd $GOPATH/src/github.com/hyperledger/fabric
make docker

This should work

answered Nov 2, 2018 by Omkar
• 67,600 points

selected May 6 by digger
+2 votes

You need to set the proper go path:

export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin
answered May 6 by Karan

Related Questions In Blockchain

0 votes
2 answers
+2 votes
4 answers

"failed to create new connection context deadline exceeded." error in Hyperledger Fabric

Try remove previous docker containers(have mentioned the ...READ MORE

answered Apr 23 in Blockchain by Kiran
3,163 views
0 votes
1 answer
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,550 points
80 views
+1 vote
1 answer
+2 votes
3 answers

Hyperledger Fabric: Peer Connection error: Failed obtaining connection: Could not connect to any of the endpoints.

 You can extend your /etc/hosts file and make orderer.example.com domain name ...READ MORE

answered Nov 13, 2018 in Blockchain by Omkar
• 67,600 points
921 views
0 votes
1 answer

Hyperledger Fabric:Promise is rejected:Error:Failed to deserialize creator identity,The supplied identity is not valid.

 This error happens because basic-network/docker-compose.yaml has CA ...READ MORE

answered Nov 14, 2018 in Blockchain by Omkar
• 67,600 points
276 views