问题1
根据2.3官方文档,创建通道时进行到如下步骤
osnadmin channel list -o localhost:7053 --ca-file "$ORDERER_CA" --client-cert "$ORDERER_ADMIN_TLS_SIGN_CERT" --client-key "$ORDERER_ADMIN_TLS_PRIVATE_KEY"
运行结果
osnadmin: error: parsing arguments: reading orderer CA certificate: open /home/geneg/twonodes/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem: no such file or directory. Try --help
原因是osnadmin通道命令与订购节点使用相互TLS通信,需要提供以下证书:
--ca-file: Specify the location and file name of the orderer organization TLS CA root certificate.--client-cert: Specify the location and file name of admin client signed certificate from the TLS CA.--client-key: Specify the location and file name of admin client private key from the TLS CA.
由于我是再新建的/home/geneg/twonodes下进行手动搭建生产网络,之间安装的fabric v2.3位置在/usr/local/test/下,进入/usr/local/test/fabric-samples/test-network中,存在organizations文件夹,于是将其复制到/home/geneg/twonodes中。再次运行之前出错的指令,结果如下
而官方给出的运行成功结果为
问题2

这个是脏数据问题,只能重新来过了5555
仍在解决
可以看到,官方的"consensusRelation"为"consenter"(共识关系为理事会),status值为onboarding,并且height值为1。而我自己生成的是"follower",height值为0。
在手动搭建Fabricv2.3生产网络时遇到问题,尝试创建通道但因TLS证书路径错误导致失败。已将原有网络样本的organizations文件夹复制到新目录,但运行osnadmin命令后仍然报错找不到证书文件。同时,订单服务节点的状态显示为follower而非预期的consenter,且高度为0,可能需要重新初始化或配置以正确设置共识关系。
3836

被折叠的 条评论
为什么被折叠?



