区块链配置产生问题解决方案总结

前言

在进行区块链配置时,遇到些许问题进行相关记录
区块链配置参考链接


1.openssl libssl-dev安装失败
解决方案

2.github拉取源码速度缓慢
如:git clone https://github.com/hyperledger/fabric.git
解决方案:
在.com后增加cnpmjs.org,使用镜像网站拉取源码
如:git clone https://github.com.cnpms.org/hyperledger/fabric.git

3.拉取源码失败重试
值得注意的是,在我们拉取源码过程中如果ctrl+c中断后重新开始拉取,会更改原压缩包的名字,所以在解压时要注意不能解压下载失败那一个

4.运行./byfn.sh up失败
失败情况:

=================== WARNING ===================
  Local fabric binaries and docker images are  
  out of  sync. This may cause problems.       
===============================================

解决方法:
要使用sudo命令运行

5.运行./byfn.sh up依旧失败
失败情况:

Error: error getting endorser client for channel: endorser client failed to connect to peer1.org1.example.com:8051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup peer1.org1.example.com: no such host"
========= ERROR !!! FAILED to execute End-2-End Scenario ===========

解决方法:
使用如下命令:

sudo gedit base/docker-compose-base.yaml

在各environment下加 - GODEBUG=netdns=go
如:
更改方案


正确运行后:
正确运行结果

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值