订购者客户端无法在更新锚点对等体上连接

时间:2019-05-10 01:29:28

标签: hyperledger-fabric hyperledger

我在1.4 Hyperledger架构上创建了2个组织,每个组织有2个同级。 我创建了一个频道,并有1个同行加入了该频道。我已经安装了Chaincode并在其上调用了事务。

当我尝试更新锚点对等节点时,它说 orderer client failed to connect to orderer1.example.com:7050: failed to create new connection: context deadline exceeded

这是我的docker-compose-cli

version: '2'

networks:
    behave:

services:
    cli:
        container_name: cli
        image: hyperledger/fabric-tools
        tty: true
        environment:   
            - GOPATH=/opt/gopath
            - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
            - CORE_LOGGING_LEVEL=DEBUG
            - CORE_PEER_ID=cli
            - CORE_PEER_ADDRESS=peer0.org2.example.com:7051
            - CORE_PEER_LOCALMSPID=Org2MSP
            - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp
            - CORE_CHAINCODE_KEEPALIVE=10
        working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
        command: /bin/bash
        volumes:
            - /var/run/:/host/var/run/
            - ../chaincode/:/opt/gopath/src/github.com/chaincode
            - $GOPATH/src/github.com/hyperledger/fabric/:/opt/gopath/src/github.com/hyperledger/fabric/
            - ../crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/
        networks:
            - behave

这就是我所说的锚点对等更新

peer channel update -o orderer1.example.com:7050 -c mychannel -f ./channel-artifacts/Org2MSPanchors.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer1.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

有什么我想念的吗?

感谢您的帮助!

0 个答案:

没有答案