手动测试fabric网络时出现的问题

来源:互联网 发布:2016中国贸易数据 编辑:程序博客网 时间:2024/06/06 12:23

1:  创建channel时出现Error: Got unexpected status: BAD_REQUEST

     可能是该名称的channel已经存在了,执行:peer channel list 

     

    发现mychannel渠道已经建立了,所以不用再重复的创建了!

    那么我们可以创建其他名称的渠道吗?不是mychannel?

    不行!因为我们前创建Channel的配置区块时,指定了Channel的名字是mychannel,那么这里我们必须创建同样名字的Channel。


2: 将渠道加入这个创世区块上时:peer channel join -b mychannel.block 

    出现:Error: proposal failed (err: rpc error: code = Unknown desc = chaincode error (status: 500, message: Cannot create ledger from genesis block, due to LedgerID already exists))

   说明你已经加入到该渠道上了,并且有自己的账本了,不需要再重复执行该命令,可以进行下一步操作了

     

3:最后执行./byfn.sh -m down进行清理关闭操作时,报:error: network net_byfn has active endpoints

      原因:There could be dangling endpoints in libnetwork database in the following case:

     1:Docker daemon crashes/exits in the middle of startup of containers

     2:Docker daemon crashes/exits/killed in the middle of stopping of containers

   (这个问题是docker中的daemon/container_unix.go有问题,这个在新版本中进行了更正,所以需要将docker版本升级,参考我的docker升级版本的博客:http://blog.csdn.net/mellymengyan/article/details/7789590

 

阅读全文
0 0