Topics

#raft #fabric-ca #fabric-orderer #fabric-ca #raft #fabric-orderer


wheat235@...
 

Hello everyone! Recently, I encountered a problem in setting up a Fabric environment in a virtual machine. I followed the steps on https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html. Using V1.4.0 can run normally. Can operate channels and chain codes. When I change to V1.4.4, the service can start normally, but the channel cannot be created. The orderer prompts that the endorsement is insufficient. V1.4.4 version configtx.yaml is copied from the first-network, and the configuration paths corresponding to msp, tls, and EtcdRaft are modified. Configuration

peer logs
 2019-12-24 02:41:39.125 UTC [comm.grpc.server] 1 -> INFO 027 streaming call completed grpc.service=gossip.Gossip grpc.method=GossipStream grpc.peer_address=192.168.156.21:41832 grpc.peer_subject="CN=org1-peer2,OU=peer,O=Hyperledger,ST=North Carolina,C=US" error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=13.768771099s
 2019-12-24 02:43:28.086 UTC [endorser] callChaincode -> INFO 028 [][4017a324] Entry chaincode: name:"cscc" 
 2019-12-24 02:43:28.088 UTC [ledgermgmt] CreateLedger -> INFO 029 Creating ledger [mychannel] with genesis block
 2019-12-24 02:43:28.091 UTC [fsblkstorage] newBlockfileMgr -> INFO 02a Getting block information from block storage
 2019-12-24 02:43:28.116 UTC [kvledger] CommitWithPvtData -> INFO 02b [mychannel] Committed block [0] with 1 transaction(s) in 23ms (state_validation=0ms block_and_pvtdata_commit=1ms state_commit=21ms) commitHash=[]
 2019-12-24 02:43:28.117 UTC [ledgermgmt] CreateLedger -> INFO 02c Created ledger [mychannel] with genesis block
 2019-12-24 02:43:28.119 UTC [gossip.gossip] JoinChan -> INFO 02d Joining gossip network of channel mychannel with 2 organizations
 2019-12-24 02:43:28.119 UTC [gossip.gossip] learnAnchorPeers -> INFO 02e No configured anchor peers of Org1MSP for channel mychannel to learn about
 2019-12-24 02:43:28.119 UTC [gossip.gossip] learnAnchorPeers -> INFO 02f No configured anchor peers of Org2MSP for channel mychannel to learn about
 2019-12-24 02:43:28.140 UTC [gossip.state] NewGossipStateProvider -> INFO 030 Updating metadata information for channel mychannel, current ledger sequence is at = 0, next expected block is = 1
 2019-12-24 02:43:28.142 UTC [sccapi] deploySysCC -> INFO 031 system chaincode lscc/mychannel(github.com/hyperledger/fabric/core/scc/lscc) deployed
 2019-12-24 02:43:28.142 UTC [cscc] Init -> INFO 032 Init CSCC
 2019-12-24 02:43:28.143 UTC [sccapi] deploySysCC -> INFO 033 system chaincode cscc/mychannel(github.com/hyperledger/fabric/core/scc/cscc) deployed
 2019-12-24 02:43:28.143 UTC [qscc] Init -> INFO 034 Init QSCC
 2019-12-24 02:43:28.143 UTC [sccapi] deploySysCC -> INFO 035 system chaincode qscc/mychannel(github.com/hyperledger/fabric/core/scc/qscc) deployed
 2019-12-24 02:43:28.143 UTC [sccapi] deploySysCC -> INFO 036 system chaincode (+lifecycle,github.com/hyperledger/fabric/core/chaincode/lifecycle) disabled
 2019-12-24 02:43:28.144 UTC [endorser] callChaincode -> INFO 037 [][4017a324] Exit chaincode: name:"cscc"  (57ms)
 2019-12-24 02:43:28.144 UTC [comm.grpc.server] 1 -> INFO 038 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=192.168.156.21:55246 grpc.code=OK grpc.call_duration=70.005406ms
 2019-12-24 02:43:34.144 UTC [gossip.election] beLeader -> INFO 039 922909f9102a8f3d92b254bd0cdd7e3d526aca91b6928ee1d70dd5d0d64ad129 : Becoming a leader
 2019-12-24 02:43:34.144 UTC [gossip.service] func1 -> INFO 03a Elected as a leader, starting delivery service for channel mychannel
 2019-12-24 02:43:34.146 UTC [deliveryClient] StartDeliverForChannel -> INFO 03b This peer will retrieve blocks from ordering service and disseminate to other peers in the organization for channel mychannel
 2019-12-24 02:43:34.165 UTC [deliveryClient] RequestBlocks -> INFO 03c Starting deliver with block [1] for channel mychannel
 2019-12-24 02:43:34.180 UTC [blocksProvider] DeliverBlocks -> ERRO 03d [mychannel] Got error &{FORBIDDEN}
 2019-12-24 02:43:34.287 UTC [deliveryClient] RequestBlocks -> INFO 03e Starting deliver with block [1] for channel mychannel
 2019-12-24 02:43:34.291 UTC [blocksProvider] DeliverBlocks -> ERRO 03f [mychannel] Got error &{FORBIDDEN}
 2019-12-24 02:43:34.510 UTC [deliveryClient] RequestBlocks -> INFO 040 Starting deliver with block [1] for channel mychannel
 2019-12-24 02:43:34.531 UTC [blocksProvider] DeliverBlocks -> ERRO 041 [mychannel] Got error &{FORBIDDEN}
 2019-12-24 02:43:34.948 UTC [deliveryClient] RequestBlocks -> INFO 042 Starting deliver with block [1] for channel mychannel
 2019-12-24 02:43:34.956 UTC [blocksProvider] DeliverBlocks -> ERRO 043 [mychannel] Got error &{FORBIDDEN}
 2019-12-24 02:43:35.778 UTC [deliveryClient] RequestBlocks -> INFO 044 Starting deliver with block [1] for channel mychannel
 2019-12-24 02:43:35.784 UTC [blocksProvider] DeliverBlocks -> ERRO 045 [mychannel] Got error &{FORBIDDEN}
 2019-12-24 02:43:37.404 UTC [deliveryClient] RequestBlocks -> INFO 046 Starting deliver with block [1] for channel mychannel
 2019-12-24 02:43:37.413 UTC [blocksProvider] DeliverBlocks -> ERRO 047 [mychannel] Got error &{FORBIDDEN}
 2019-12-24 02:43:40.634 UTC [deliveryClient] RequestBlocks -> INFO 048 Starting deliver with block [1] for channel mychannel
 2019-12-24 02:43:40.654 UTC [blocksProvider] DeliverBlocks -> ERRO 049 [mychannel] Got error &{FORBIDDEN}
 2019-12-24 02:43:47.071 UTC [deliveryClient] RequestBlocks -> INFO 04a Starting deliver with block [1] for channel mychannel
 2019-12-24 02:43:47.084 UTC [blocksProvider] DeliverBlocks -> ERRO 04b [mychannel] Got error &{FORBIDDEN}
 2019-12-24 02:43:57.106 UTC [deliveryClient] RequestBlocks -> INFO 04c Starting deliver with block [1] for channel mychannel
 2019-12-24 02:43:57.115 UTC [blocksProvider] DeliverBlocks -> ERRO 04d [mychannel] Got error &{FORBIDDEN}
 2019-12-24 02:44:07.131 UTC [deliveryClient] RequestBlocks -> INFO 04e Starting deliver with block [1] for channel mychannel
 2019-12-24 02:44:07.140 UTC [blocksProvider] DeliverBlocks -> ERRO 04f [mychannel] Got error &{FORBIDDEN}
 2019-12-24 02:44:17.158 UTC [deliveryClient] RequestBlocks -> INFO 050 Starting deliver with block [1] for channel mychannel
 2019-12-24 02:44:17.167 UTC [blocksProvider] DeliverBlocks -> ERRO 051 [mychannel] Got error &{FORBIDDEN}
 2019-12-24 02:44:17.167 UTC [blocksProvider] DeliverBlocks -> ERRO 052 [mychannel] Wrong statuses threshold passed, stopping block provider
 2019-12-24 02:44:17.167 UTC [gossip.election] stopBeingLeader -> INFO 053 922909f9102a8f3d92b254bd0cdd7e3d526aca91b6928ee1d70dd5d0d64ad129 Stopped being a leader
 2019-12-24 02:44:17.168 UTC [gossip.service] func1 -> INFO 054 Renounced leadership, stopping delivery service for channel mychannel
 2019-12-24 02:45:24.168 UTC [gossip.election] beLeader -> INFO 055 922909f9102a8f3d92b254bd0cdd7e3d526aca91b6928ee1d70dd5d0d64ad129 : Becoming a leader
 2019-12-24 02:45:24.168 UTC [gossip.service] func1 -> INFO 056 Elected as a leader, starting delivery service for channel mychannel
 2019-12-24 02:45:24.170 UTC [deliveryClient] StartDeliverForChannel -> INFO 057 This peer will retrieve blocks from ordering service and disseminate to other peers in the organization for channel mychannel

orderer logs
orderer1.wheat.com    | 2019-12-24 03:29:28.037 UTC [common.deliver] deliverBlocks -> WARN 244 [channel: mychannel] Client authorization revoked for deliver request from 192.168.156.20:45448: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied: permission denied
orderer1.wheat.com    | 2019-12-24 03:29:28.038 UTC [comm.grpc.server] 1 -> INFO 245 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=192.168.156.20:45448 grpc.peer_subject="CN=org1-peer1,OU=peer,O=Hyperledger,ST=North Carolina,C=US" grpc.code=OK grpc.call_duration=2.00685ms
orderer1.wheat.com    | 2019-12-24 03:29:31.253 UTC [common.deliver] deliverBlocks -> WARN 246 [channel: mychannel] Client authorization revoked for deliver request from 192.168.156.20:45450: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied: permission denied
orderer1.wheat.com    | 2019-12-24 03:29:31.255 UTC [comm.grpc.server] 1 -> INFO 247 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=192.168.156.20:45450 grpc.peer_subject="CN=org1-peer1,OU=peer,O=Hyperledger,ST=North Carolina,C=US" grpc.code=OK grpc.call_duration=1.999914ms
orderer1.wheat.com    | 2019-12-24 03:29:37.667 UTC [common.deliver] deliverBlocks -> WARN 248 [channel: mychannel] Client authorization revoked for deliver request from 192.168.156.20:45452: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied: permission denied
orderer1.wheat.com    | 2019-12-24 03:29:37.668 UTC [comm.grpc.server] 1 -> INFO 249 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=192.168.156.20:45452 grpc.peer_subject="CN=org1-peer1,OU=peer,O=Hyperledger,ST=North Carolina,C=US" grpc.code=OK grpc.call_duration=1.676441ms
orderer1.wheat.com    | 2019-12-24 03:29:46.965 UTC [common.deliver] deliverBlocks -> WARN 24a [channel: mychannel] Client authorization revoked for deliver request from 192.168.156.20:45454: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied: permission denied
orderer1.wheat.com    | 2019-12-24 03:29:46.966 UTC [comm.grpc.server] 1 -> INFO 24b streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=192.168.156.20:45454 grpc.peer_subject="CN=org1-peer1,OU=peer,O=Hyperledger,ST=North Carolina,C=US" grpc.code=OK grpc.call_duration=1.867008ms
orderer1.wheat.com    | 2019-12-24 03:29:56.034 UTC [common.deliver] deliverBlocks -> WARN 24c [channel: mychannel] Client authorization revoked for deliver request from 192.168.156.20:45456: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied: permission denied
orderer1.wheat.com    | 2019-12-24 03:29:56.035 UTC [comm.grpc.server] 1 -> INFO 24d streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=192.168.156.20:45456 grpc.peer_subject="CN=org1-peer1,OU=peer,O=Hyperledger,ST=North Carolina,C=US" grpc.code=OK grpc.call_duration=2.206644ms
orderer1.wheat.com    | 2019-12-24 03:30:07.787 UTC [common.deliver] deliverBlocks -> WARN 24e [channel: mychannel] Client authorization revoked for deliver request from 192.168.156.20:45458: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied: permission denied
orderer1.wheat.com    | 2019-12-24 03:30:07.790 UTC [comm.grpc.server] 1 -> INFO 24f streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=192.168.156.20:45458 grpc.peer_subject="CN=org1-peer1,OU=peer,O=Hyperledger,ST=North Carolina,C=US" grpc.code=OK grpc.call_duration=3.125596ms