HyperLedger Fabric 1.4 问题汇总(16)
网易云课堂视频在线教学,地址:https://study.163.com/course/introduction/1209401942.htm
16.1 在运行e2e_cli例子时,执行./network_setup.sh up,出现错误:网络搭建之network e2ecli_default not found
问题原因:
End-2-End例子的目录是e2e_cli,启动后会创建一个docker network的名字为e2e_cli_default,但是配置中设置了e2ecli_default这个与生成的network名对应不上。
解决方法:
修改e2e_cli/base目录下的peer-base.yaml中的配置,如下:
-CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=e2e_cli_default
16.2 在运行e2e_cli例子时,执行./network_setup.sh up,出现错误:Error: Error endorsing chaincode: rpc error: code = Unknown desc = Timeout expired while starting chaincode mycc:1.0(networkid:dev,peerid:peer0.org2.example.com,tx:d6902b58171dd3b9bafb981885959c263589fb66d475cff79a7b5c519c24a603)
问题原因:
由于dev-peer0.org2.example.com-mycc-1.0 docker 镜像存在问题,需要删除。
解决方法:
执行如下命令:
1)删除旧的链码镜像
# docker stop $(docker ps -a -q)
# docker rm $(docker ps -a -q)
# docker rmi -f $(docker images |grep "dev-" |awk '{print $3}')
2)重启Fabric网络
# ./network_setup.sh up
16.3 运行自主Helloworld案例时,出现Error: endorsement failure during query. response: status:500 message:"make sure the chaincode mycc has been successfully instantiated and try again: getccdata mychannel/mycc responded with error: could not find chaincode with name 'mycc'"
问题原因:
通过阿里云docker镜像时,获取latest版本时,还没有升级到1.2版本。
解决方法:
1)删除旧的链码镜像
# docker stop $(docker ps -a -q) # docker rm $(docker ps -a -q) # docker rmi $(docker images -q)
2)下载最新的镜像
# docker pull hyperledger/fabric-peer:amd64-1.2. # docker pull hyperledger/fabric-orderer:amd64-1.2. # docker pull hyperledger/fabric-tools:amd64-1.2. # docker pull hyperledger/fabric-ccenv:amd64-1.2. # docker pull hyperledger/fabric-baseos:amd64-0.4.
16.4 运行自主Helloworld案例peer channel create时,出现Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded
问题原因:
防火墙阻止了7050端口
解决方法:
# firewall-cmd --list-ports # firewall-cmd --zone=public --add-port=/tcp --permanent # firewall-cmd --reload
16.5 多机多节点部署在peer1.org2.example.com上执行peer channel join -b mychannel.block,出现,Error: error getting endorser client for channel: endorser client failed to connect to peer1.org2.example.com:7051: failed to create new connection: context deadline exceeded
问题原因:
防火墙阻止了7051端口
解决方法:
# firewall-cmd --list-ports # firewall-cmd --zone=public --add-port=/tcp --permanent # firewall-cmd --reload
16.6 Fabric kafka生产环境部署启动Orderer时,出现orderer2.example.com|panic: [channel: testchainid] Cannot post CONNECT message = dial tcp 192.168.235.5:9092: connect: no route to host
问题原因:
防火墙阻止了9092端口
解决方法:
# firewall-cmd --list-ports # firewall-cmd --zone=public --add-port=/tcp --permanent # firewall-cmd –reload
16.7 Fabric kafka生产环境部署节点(peer)智能合约实例化时,出现Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg failed to execute transaction 42306f917663058379fda4fd1dd7366d302b6bc9d6cd952c59701f38755caca4: timeout expired while starting chaincode cc-qklszzzcc:1.0 for transaction 42306f917663058379fda4fd1dd7366d302b6bc9d6cd952c59701f38755caca4
问题原因:
域名没有和IP完成映射
解决方法:
# vi /etc/hosts
添加如下内容:
192.168.235.3 zookeeper0
192.168.235.4 zookeeper1
192.168.235.5 zookeeper2
192.168.235.3 kafka0
192.168.235.4 kafka1
192.168.235.5 kafka2
192.168.235.6 kafka3
192.168.235.3 orderer0.example.com
192.168.235.4 orderer1.example.com
192.168.235.5 orderer2.example.com
192.168.235.7 peer0.org1.example.com
192.168.235.8 peer1.org1.example.com
192.168.235.9 peer0.org2.example.com
192.168.235.10 peer1.org2.example.com
HyperLedger Fabric 1.4 问题汇总(16)的更多相关文章
- Installing Hyperledger Fabric v1.1 on Ubuntu 16.04 — Part I
There is an entire library of Blockchain APIs which you can select according to the needs that suffi ...
- Installing Hyperledger Fabric v1.1 on Ubuntu 16.04 — Part II & Part III
This entire tutorial is the second part of the installation of Hyperledger Fabric v1.1. In the previ ...
- Hyperledger Fabric 踩坑汇总
搭建基础环境 阿里云安装出现的一些问题解决 1. [signal SIGSEGV: segmentation violation code=0x1 addr=xxx pc=xxx] 类似的错误:原始错 ...
- Hyperledger Fabric Capabilities——超级账本功能汇总
Hyperledger Fabric是一种模块化的区块链架构,是分布式记账技术(DLT)的一种独特的实现,它提供了可供企业运用的网络,具备安全.可伸缩.加密和可执行等特性.Hyperledger Fa ...
- 以太坊、Hyperledger Fabric和Corda,哪个更好?
原创: Philipp Sandner 区块链前哨 昨天 编译|盖磊编辑|前哨小兵甲区块链前哨导语: 我们分析了 Hyperledger Fabric,R3 Corda 和以太坊这三种分布式账本技术间 ...
- Hyperledger Fabric架构详解
区块链开源实现HYPERLEDGER FABRIC架构详解 区块链开源实现HYPERLEDGER FABRIC架构详解 2018年5月26日 陶辉 Comments 10 Comments hyper ...
- 区块链开源实现hyperledger fabric架构详解
hyperledger fabric是区块链中联盟链的优秀实现,主要代码由IBM.Intel.各大银行等贡献,目前v1.1版的kafka共识方式可达到1000/s次的吞吐量.本文中我们依次讨论:区块链 ...
- 基于docker的 Hyperledger Fabric 多机环境搭建(上)
环境:ubuntu 16.04 Docker 17.04.0-ce go 1.7.4 consoul v0.8.0.4 ======================================= ...
- Hyperledger Fabric 本地运行的简单示例
环境: Ubuntu 16.04 go 1.7.4 版本: Fabric v1.0.0-alpha 本文主要目的就是让大家体验以下Fabric网络环境搭建的具体过程,不基于集成化脚本手动搭建. 一.编 ...
随机推荐
- Python初学者第二天 用户输入和注释
2day Python基础语法: 1.用户输入和注释 用户输入: 代码注释:# 注释部分不会被执行,或用来帮助理清代码逻辑 2.数据类型:数字 int:整数 long:长整形 注:Pyt ...
- linux oom-killer
本人从事UTM的开发工作,最近遇到out of memory killer.这里整理一下资料. 简述 当系统内存不足时,系统会触发 oom-killer.oom-killer的机制就是选择杀掉最适合的 ...
- 使用mysli防止sql注入
自从 php5 推出 mysqli 后就开始不提倡使用 mysql_ 开头的接口了,现在使用 mysql_connet 通常调试的时候会报警告说这个不该用 mysqli 使用起来其实更简单 $url ...
- DBMS_SQLTUNE使用方法
SQL调优工具包DBMS_SQLTUNE的使用方法 oracle 提供了优化建议功能包DBMS_SQLTUNE,该包可以帮助我们分析SQL,并提供优化建议. 原有执行计划alter session s ...
- [零基础学JAVA]Java SE面向对象部分.面向对象基础(02)
String类 JAVA:public class StringTest{ public static void main(String args[]){ //尽量避免使用new,这样会产生内存垃圾 ...
- IOS ASI (第三方请求)
什么是ASI全称是ASIHTTPRequest,外号“HTTP终结者”,功能十分强大基于底层的CFNetwork框架,运行效率很高可惜作者早已停止更新,有一些潜在的BUG无人去解决很多公司的旧项目里面 ...
- slf4j-log4j12-1.5.8.jar有什么用
slf4j是hibernate的日志接口,通常我们用log4j.jar来实现hibernate的记录日志功能,slf4j-log4j.jar可以看成是用来把slf4j的接口转换成适合log4j的接口的 ...
- 2019.1.1 在重写的方法上面添加@Override注解方法报错解决办法
报错代码 The method transfer(Integer, Integer, Double) of type AccountServiceImpl must override a superc ...
- springboot启动报错:Could not resolve placeholder
SpringBoot1.5,项目启动报错: Could not resolve placeholder 很明显是找不到配置文件引起的,查看配置文件目录结构如下: 很正常呀. 完全可以加载applica ...
- Spring - 父容器与子容器
一.Spring容器(父容器) 1.Mapper代理对象 2.Service对象 二.Springmvc(前端控制器)(子容器) Controller对象 1.标准的配置是这样的:Con ...