fabric 在阿里云Ubuntu部署 注意

部署时候报 段错误:

signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7fcd47490259]

解决方案:

更新Hyperledger Fabric的docker compose yaml模板,为所有Hyperledger Fabric的节点(如orderer, peer, ca, cli等)添加环境变量GODEBUG=netdns=go以强制使用pure Go resolver。


 

仍可能部署成功后,部署链码成功,但收不到order确认,导致使用链码时出现:

fabric could not find chaincode with name 'mycc'

解决方案:

修改 /etc/resolv.conf 配置,将 options timeout:2 attempts:3 rotate single-request-reopen 内容注释掉。


 

go不支持options single-request-reopen这个选项,这个选择是指在使用同一端口请求DNS解析失败时,重新开一个端口请求。

 

参考:

http://man7.org/linux/man-pages/man5/resolv.conf.5.html

http://www.zhiy.com.cn/news/80.html   (CentOS6和7中需要注意开启!)

http://coolnull.com/3820.html

posted on 2018-12-04 14:49  willaty  阅读(244)  评论(0编辑  收藏  举报

导航