skip to Main Content

I followed the Official Fabric Test Network tutorial "Using the Fabric Test Network ", but reported some errors when I ran ./network.sh createChannel. Log and errors like this

+ peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls --cafile /home/centos/go/src/github.com/hyperledger/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
+ res=1
Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: context deadline exceeded
Channel creation failed
Create channel failed

3

Answers


  1. Chosen as BEST ANSWER

    I used this script.It worked

    ./network.sh up createChannel -ca -c mychannel -s couchdb -i 2.2.0
    

  2. If you are first time user you can try the following to bring up network with given channel name

    ./network.sh down
    ./network.sh up createChannel -c mychannel
    
    Login or Signup to reply.
  3. This situation is arisen due to TLS certificate.

    For example, it may happen due to "client TLS / server no TLS". So please check "–tls $CORE_PEER_TLS_ENABLED" option. "$CORE_PEER_TLS_ENABLED" should be true.

    So you can see something like this in console:

    + peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block  --tls true --cafile /home/centos/go/src/github.com/hyperledger/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search