Welcome to the Linux Foundation Forum!

Lab 7: error getting endorser client for channel: context deadline exceeded

Hi, after successfully joining org2 to "allarewelcome" channel as described in chapter 7, I get an error message when trying to run "peer channel list" in CLI as peer0.org2.

Error: error getting endorser client for channel: endorser client failed to connect to peer0.org2.example.com:7051: failed to create new connection: context deadline exceeded

I obviously did ./teardown.sh and retry, without success. I also added CORE_PEER_LISTENADDRESS=0.0.0.0:9051 without it helping.

Here is the configtx.yml & docker-compose.yml:

  • &Org2
    # DefaultOrg defines the organization which is used in the sampleconfig
    # of the fabric.git development environment
    Name: Org2MSP

    # ID to load the MSP definition as
    ID: Org2MSP
    
    MSPDir: crypto-config/peerOrganizations/org2.example.com/msp
    
    AnchorPeers:
        # AnchorPeers defines the location of peers which can be used
        # for cross org gossip communication.  Note, this value is only
        # encoded in the genesis block in the Application section context
        - Host: peer0.org2.example.com
          Port: 7051
    

    peer0.org2.example.com:
    container_name: peer0.org2.example.com
    image: hyperledger/fabric-peer
    environment:

    • CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
    • CORE_PEER_ID=peer0.org2.example.com
    • FABRIC_LOGGING_SPEC=info
    • CORE_CHAINCODE_LOGGING_LEVEL=info
    • CORE_PEER_LOCALMSPID=Org2MSP
    • CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/
    • CORE_PEER_ADDRESS=peer0.org2.example.com:7051
    • CORE_PEER_LISTENADDRESS=0.0.0.0:9051
    • CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=startfiles_basic
    • CORE_LEDGER_STATE_STATEDATABASE=CouchDB
    • CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdbOrg2Peer0:5984
    • CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=peer0.Org2
    • CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=password
      working_dir: /opt/gopath/src/github.com/hyperledger/fabric
      command: peer node start

    command: peer node start --peer-chaincodedev=true

    ports:

    • 9051:7051
    • 9053:7053
      volumes:
    • /var/run/:/host/var/run/
    • ./crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp:/etc/hyperledger/msp/peer
    • ./crypto-config/peerOrganizations/org2.example.com/users:/etc/hyperledger/msp/users
    • ./config:/etc/hyperledger/configtx
      depends_on:
    • orderer.example.com
    • couchdbOrg2Peer0
      networks:
    • basic

Categories

Upcoming Training