aliyun 部署 fabric chaincode 后出错 fatal error: unexpected signal during runtime execution

错误描述:阿里云部署 fabric 网络,实例化 chaincode 中有一段代码逻辑需要用到 http.post 和服务器进行通信。该段代码会出现随机性崩溃,崩溃导致 chaincode container 直接退出。

aliyun 部署 fabric chaincode 后出错 fatal error: unexpected signal during runtime execution
问题分析:aliyun 服务器软件网络配置导致 go 语言的DNS解析出现问题。

解决方案:修改自己阿里云ecs机器里面的 /etc/resolv.conf,把里面的 options timeout:2 attempts:3 rotate single-request-reopen 这一行内容注释掉

参考Fabric在阿里云安装出现的一些问题解决