我正在尝试使用以下命令进行频道更新:
peer channel update -c mychannel -f ./anchor_peer_tx_org1.pb -o orderer.example.com:7050
我收到以下错误:
Endorser and orderer connections initialized
Error: got unexpected status: BAD_REQUEST -- error authorizing
update: error validating ReadSet: readset expected key
[Group] /Channel/Application at version 1, but got version 2
我使用以下命令创建了anchor_peer_tx_org1.pb:
configtxgen -outputAnchorPeersUpdate anchor_peer_tx_org1.pb -profile OneOrgChannel -asOrg Org1MSP -channelID mychannel
有人知道我想念什么吗?
更新: 添加订购者日志。尝试更新频道时,对等节点上没有任何记录。
订购者日志:
2019-01-16 16:53:24.556 UTC [orderer.common.broadcast] ProcessMessage -> WARN 04e [channel: mychannel] Rejecting broadcast of config message from 172.26.0.6:54810 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Applicatio
n at version 1, but got version 2
2019-01-16 16:53:24.558 UTC [comm.grpc.server] 1 -> INFO 04f streaming call completed {"grpc.start_time": "2019-01-16T16:53:24.552Z", "grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Broadcast", "grpc.peer_address": "172.26.0.6:54810", "grpc.code": "OK", "grpc.call_durati
on": "6.1927ms"}
2019-01-16 16:53:24.571 UTC [common.deliver] Handle -> WARN 050 Error reading from 172.26.0.6:54808: rpc error: code = Canceled desc = context canceled
2019-01-16 16:53:24.571 UTC [comm.grpc.server] 1 -> INFO 051 streaming call completed {"grpc.start_time": "2019-01-16T16:53:24.534Z", "grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Deliver", "grpc.peer_address": "172.26.0.6:54808", "error": "rpc error: code = Canceled desc = context canceled", "grpc.code": "Canceled", "grpc.call_duration": "37.3877ms"}
答案 0 :(得分:0)
您已经签署了铅?您还可以附加订购者和对等方的日志吗?
由于该消息错误,我认为可能是两件事,pb的格式不正确,或者pb没有被所有各方签名,对于我而言,我需要订购者对请求进行签名。
我遵循了本教程,并且对我有用:https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html#prepare-the-cli-environment