版权声明:忠于祖国,忠于人民 https://blog.csdn.net/boss2967/article/details/89954700
peer channel fetch config config_block.pb -o orderer0.cmbfae.com:7050 -c assetpublish --tls --cafile ./crypto/order/msp/tlscacerts/ca-order-cmbfae-com-7054.pem
/crypto/order/msp/tlscacerts
/crypto/order/msp/tlscacerts/ca-order-cmbfae-com-7054.pem
export ORDERER_CA=/crypto/order/msp/tlscacerts/ca-order-cmbfae-com-7054.pem
export ORDERER_CA=/home/sunlidong/ABSproject/ABS_chaincode/ABS_chaincode/fabric-asset/network/crypto/order/msp/tlscacerts/ca-order-cmbfae-com-7054.pem
peer channel fetch config mychannel.pb -o orderer0.cmbfae.com:7050 -c assetpublish --tls --cafile ca-order-cmbfae-com-7054.pem
/home/sunlidong/ABSproject/ABS_chaincode/ABS_chaincode/fabric-asset/network/crypto/order/msp/tlscacerts
/home/sunlidong/ABSproject/ABS_chaincode/ABS_chaincode/fabric-asset/network/crypto/order/msp/tlscacerts/ca-order-cmbfae-com-7054.pem
peer channel fetch config config_block.pb -o orderer0.cmbfae.com:7050 -c assetpublish --tls --cafile ./crypto/order/msp/tlscacerts/ca-order-cmbfae-com-7054.pem
peer channel fetch config config_block.pb -o orderer0.cmbfae.com:7050 -c assetpublish --tls --cafile crypto/order/msp/tlscacerts/ca-order-cmbfae-com-7054.pem
peer channel fetch config config_block.pb -o orderer0.cmbfae.com:7050 -c assetpublish
peer channel fetch config config_block.pb -o orderer0.cmbfae.com:7050 -c assetpublish1
问题记录: 在动态添加组织的时候获取通道配置信息的时候,刚开始用的命令是:
在 docker cli 容器中操作
peer channel fetch config config_block.pb -o orderer0.cmbfae.com:7050 -c assetpublish --tls --cafile ./crypto/order/msp/tlscacerts/ca-order-cmbfae-com-7054.pem
这样的操作,老是报错,如下:
2019-05-08 07:00:26.000 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable
2019-05-08 07:00:26.016 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable
Error: failed to create deliver client: orderer client failed to connect to localhost:7050: failed to create new connection: context deadline exceeded
有人告诉我说是要做映射,后来做了映射,也是报错,docker容器启动正常,
后来就各种找问题,突然,
飞机票:https://www.jianshu.com/p/d68de890c54a
这里的操作好像不需要什么后面的一堆。命令如下:
peer channel fetch config config_block.pb -o orderer.example.com:7050 -c mychannel
,然后这样操作的话,就没有报错,个人觉得是那些环境变量已经有了。但是还是不太明天咋回事,先记录下,等大成之后回头来战。
2019-05-08 感冒发烧浑身无力,这很难受呀。
https://www.lijiaocn.com/项目/2018/06/18/hyperledger-fabric-add-new-org.html#更新channel