Debut Infotech
Debut Infotech

Reputation: 472

At the time of chaincode instansiate getting error Error: could not send: rpc error: code = Unavailable desc = transport is closing

Using Linux 16.04 and docker All the containers are running fine .Successfully installed the chaincode on core peer. But At the time of chaincode instansiate

peer chaincode instantiate -o orderer.example.com:7050 -C $CHANNEL_NAME -n fabcar -l "golang" -v 1.0 -c '{"Args":[""]}' -P "OR ('Org1MSP.member','Org2MSP.member')"

Geeting error

`Error: could not send: rpc error: code = Unavailable desc = transport is closing`

Thanks in advance.

Upvotes: 3

Views: 3190

Answers (2)

Shahid Hussain
Shahid Hussain

Reputation: 1779

This may work:

  1. Bring down the network
  2. Disable TLS in below files by commenting environment variables listed below.

    base/docker-compose-base.yaml
    base/peer-base.yaml
    docker-compose-cli.yaml:    
    docker-compose-e2e-template.yam
    

    ENV:

    CORE_PEER_TLS_ENABLED
    CORE_PEER_TLS_CERT_FILE
    CORE_PEER_TLS_KEY_FILE
    CORE_PEER_TLS_ROOTCERT_FILE
    
  3. Bring up the network

Another way is to pass TLS certificate as an argument to peer fetch channel command.

Upvotes: 0

Debut Infotech
Debut Infotech

Reputation: 472

I was facing this issue because I enabled tls on the peer but not providing the tls and ca file to the orderer at the time of chaincode instantiate.

Upvotes: 6

Related Questions