创建通道时,运行时执行期间出现意外信号[信号SIGSEGV:分段违反..]

时间:2019-03-06 05:42:00

标签: hyperledger-fabric hyperledger blockchain

在创建频道时出现以下错误,有人询问了类似的question,但未提供答案。我正在使用结构样本(git clone -b issue-6978 https://github.com/sstone1/fabric-samples.git)以前,直到重启机器时我才解决这个问题。我正在使用ubuntu 18.04 enter image description here

1 个答案:

答案 0 :(得分:0)

这是解决问题的方法,我在docker compose yaml文件中向对等方,订购方和cli的环境变量中添加了GODEBUG=netdns=go。可以从此site中获得更详细的说明。这就是环境变量的外观。

 peer-base:
image: hyperledger/fabric-peer
environment:
  - GODEBUG=netdns=go 
  - 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=${COMPOSE_PROJECT_NAME}_byfn
  #- 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