fabric sdk : org.hyperledger.fabric.sdk.exception.ProposalException

docker logs -f peer0.org1.xxx.com

2019-01-18 02:05:56.121 UTC [gossip/discovery] periodicalSendAlive -> DEBU a639 Sleeping 5s
2019-01-18 02:05:56.533 UTC [core/comm] ServerHandshake -> ERRO a63a TLS handshake failed with error tls: first record does not look like a TLS handshake {"server": "PeerServer", "remote address": "172.19.68.252:50515"}
2019-01-18 02:05:56.580 UTC [core/comm] ServerHandshake -> ERRO a63b TLS handshake failed with error tls: first record does not look like a TLS handshake {"server": "PeerServer", "remote address": "172.19.68.252:50516"}

error output below:

org.hyperledger.fabric.sdk.exception.ProposalException: 
org.hyperledger.fabric.sdk.exception.ProposalException: Channel yzchannel1 failed proposal on peer peer0  org.hyperledger.fabric.sdk.exception.TransactionException: org.hyperledger.fabric.sdk.exception.ProposalException: getConfigBlock for channel yzchannel1 failed with peer peer0.  Status FAILURE, details: Channel Channel{id: 1, name: yzchannel1} Sending proposal with transaction: 
f446b7e44307a9283f57c666f23ba2948030190a5628fb6378413d63f3f482ad to Peer{ id: 3, name: peer0, channelName: yzchannel1, url: grpc://172.19.101.52:7051} failed because of: gRPC failure=Status{code=UNKNOWN, description=access denied: channel [yzchannel1] creator org [Org1MSP], cause=null}

cause analysis:

the peer node setup TLS,like this:

/opt/gopath/src/github.com/hyperledger/fabric/examples/e2e_cli/base/peer-base.yaml

version: '2'
services:
  peer-base:
    image: hyperledger/fabric-peer
    environment:
      - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
      # the following setting starts chaincode containers on the same
      # bridge network as the peers
      # https://docs.docker.com/compose/networking/
      - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=e2e_cli_default
      #- CORE_LOGGING_LEVEL=ERROR
      - CORE_LOGGING_LEVEL=DEBUG
      - CORE_PEER_TLS_ENABLED=true
      - CORE_PEER_GOSSIP_USELEADERELECTION=true
      - CORE_PEER_GOSSIP_ORGLEADER=false
      - CORE_PEER_PROFILE_ENABLED=true
      - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
      - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
      - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
    working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
    command: peer node start

problem is here,now,we just modify it to false.

- CORE_PEER_TLS_ENABLED=false

for other files,so did this.

你可能感兴趣的:(区块链技术)