My first Hyperledger fabric network is not working

0 votes

I am trying to work on my first network in Hyperledger Fabric. Using the following documentation http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

I have completed the setup till http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#create-join-channel 

But, when I run the following:

peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem 

I got hte following error:

Error: Got unexpected status: BAD_REQUEST

In attempt to resolve i follow the solution given at First network in hyperledger but faced error on running

/bin/bash -c './scripts/script.sh ${CHANNEL_NAME}; sleep $TIMEOUT'  
Aug 10, 2018 in Blockchain by Christine
• 15,790 points
136 views

1 answer to this question.

0 votes

Delete as admin the channel-artifacts folder, down the network and restart it. Your error must be related to an error at channel-artifacts generation.

You need to be in /c/users when you run the curl command, as documented here.

Continue on with other setup instructions

also, please make sure you run your docker command prompt in administrator mode.

answered Aug 10, 2018 by Johnathon
• 9,080 points

Related Questions In Blockchain

0 votes
3 answers
0 votes
1 answer

Hyperledger fabric: curl not working to invoke chaincode

Hyperledger Fabric does not offer a REST ...READ MORE

answered Oct 23, 2018 in Blockchain by Perry
• 17,020 points
242 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,620 points
269 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
77 views
+1 vote
1 answer
0 votes
1 answer

How do I use hyperledger fabric blockchain to build my own application?

To use fabric I would recommend you ...READ MORE

answered May 16, 2018 in Blockchain by Johnathon
• 9,080 points
92 views
0 votes
1 answer