#hyperledger-fabric Problems after peer channel update: PANI 044 Cannot commit block to the ledger due to config currently at sequence 0, cannot validate config at sequence 2 #hyperledger-fabric


Magno Alves Cavalcante
 

Fabric 1.4.3 version, 1 Oderer, 1 Org
Impossible to continue after join peer in channel.

1) At CLI docker prompt, execute:
peer channel create -o $ORDERERNAME -c $CHANNELNAME -f $CONFIGTXFOLDER/devchannel.tx --tls --cafile=$ORDERER_TLSCACERT

Last output log >> UTC [cli.common] readBlock -> INFO 04e Received block: 0

2) At CLI docker prompt, execute:
peer channel update -o $ORDERERNAME -c $CHANNELNAME -f $CONFIGTXFOLDER/$CHANNELNAME-OrgAnchor.tx --tls --cafile=$ORDERER_TLSCACERT

Last output log >> UTC [channelCmd] update -> INFO 04a Successfully submitted channel update

3) At CLI docker prompt, execute:
peer channel join -o $ORDERERNAME -b $CONFIGTXFOLDER/devgenesis.block --tls --cafile=$ORDERER_TLSCACERT

Last output log >> UTC [channelCmd] executeJoin -> INFO 03e Successfully submitted proposal to join channel

And after small time, PEER0 enter in PANIC mode and shutdown

Inspecting logs at PEER0, display:
===
2020-03-12 01:05:23.586 UTC [gossip.state] NewGossipStateProvider -> INFO 035 Updating metadata information, current ledger sequence is at = 0, next expected block is = 1
2020-03-12 01:05:23.588 UTC [sccapi] deploySysCC -> INFO 036 system chaincode lscc/devchannel(github.com/hyperledger/fabric/core/scc/lscc) deployed
2020-03-12 01:05:23.588 UTC [cscc] Init -> INFO 037 Init CSCC
2020-03-12 01:05:23.588 UTC [sccapi] deploySysCC -> INFO 038 system chaincode cscc/devchannel(github.com/hyperledger/fabric/core/scc/cscc) deployed
2020-03-12 01:05:23.588 UTC [qscc] Init -> INFO 039 Init QSCC
2020-03-12 01:05:23.588 UTC [sccapi] deploySysCC -> INFO 03a system chaincode qscc/devchannel(github.com/hyperledger/fabric/core/scc/qscc) deployed
2020-03-12 01:05:23.588 UTC [sccapi] deploySysCC -> INFO 03b system chaincode (+lifecycle,github.com/hyperledger/fabric/core/chaincode/lifecycle) disabled
2020-03-12 01:05:23.588 UTC [endorser] callChaincode -> INFO 03c [][a2380c69] Exit chaincode: name:"cscc" (239ms)
2020-03-12 01:05:23.588 UTC [comm.grpc.server] 1 -> INFO 03d unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.28.0.5:53834 grpc.code=OK grpc.call_duration=241.332991ms
2020-03-12 01:05:29.589 UTC [gossip.election] beLeader -> INFO 03e f26b9868b8d67867e01dd06c4965e5db9ed6556350f62e688c3081a456c0d3af : Becoming a leader
2020-03-12 01:05:29.589 UTC [gossip.service] func1 -> INFO 03f Elected as a leader, starting delivery service for channel devchannel
2020-03-12 01:05:29.609 UTC [gossip.privdata] StoreBlock -> INFO 040 [devchannel] Received block [1] from buffer
2020-03-12 01:05:29.610 UTC [committer.txvalidator] validateTx -> ERRO 041 config currently at sequence 0, cannot validate config at sequence 2
github.com/hyperledger/fabric/common/configtx.(*ValidatorImpl).Validate
/opt/gopath/src/github.com/hyperledger/fabric/common/configtx/validator.go:170
github.com/hyperledger/fabric/core/peer.(*chainSupport).Apply
/opt/gopath/src/github.com/hyperledger/fabric/core/peer/peer.go:141
github.com/hyperledger/fabric/core/committer/txvalidator.(*TxValidator).validateTx
/opt/gopath/src/github.com/hyperledger/fabric/core/committer/txvalidator/validator.go:425
github.com/hyperledger/fabric/core/committer/txvalidator.(*TxValidator).Validate.func1.1
/opt/gopath/src/github.com/hyperledger/fabric/core/committer/txvalidator/validator.go:158
runtime.goexit
/opt/go/src/runtime/asm_amd64.s:1333
error validating config which passed initial validity checks
2020-03-12 01:05:29.610 UTC [gossip.privdata] StoreBlock -> ERRO 042 Validation failed: config currently at sequence 0, cannot validate config at sequence 2
github.com/hyperledger/fabric/common/configtx.(*ValidatorImpl).Validate
/opt/gopath/src/github.com/hyperledger/fabric/common/configtx/validator.go:170
github.com/hyperledger/fabric/core/peer.(*chainSupport).Apply
/opt/gopath/src/github.com/hyperledger/fabric/core/peer/peer.go:141
github.com/hyperledger/fabric/core/committer/txvalidator.(*TxValidator).validateTx
/opt/gopath/src/github.com/hyperledger/fabric/core/committer/txvalidator/validator.go:425
github.com/hyperledger/fabric/core/committer/txvalidator.(*TxValidator).Validate.func1.1
/opt/gopath/src/github.com/hyperledger/fabric/core/committer/txvalidator/validator.go:158
runtime.goexit
/opt/go/src/runtime/asm_amd64.s:1333
error validating config which passed initial validity checks
2020-03-12 01:05:29.610 UTC [gossip.state] commitBlock -> ERRO 043 Got error while committing(config currently at sequence 0, cannot validate config at sequence 2
github.com/hyperledger/fabric/common/configtx.(*ValidatorImpl).Validate
/opt/gopath/src/github.com/hyperledger/fabric/common/configtx/validator.go:170
github.com/hyperledger/fabric/core/peer.(*chainSupport).Apply
/opt/gopath/src/github.com/hyperledger/fabric/core/peer/peer.go:141
github.com/hyperledger/fabric/core/committer/txvalidator.(*TxValidator).validateTx
/opt/gopath/src/github.com/hyperledger/fabric/core/committer/txvalidator/validator.go:425
github.com/hyperledger/fabric/core/committer/txvalidator.(*TxValidator).Validate.func1.1
/opt/gopath/src/github.com/hyperledger/fabric/core/committer/txvalidator/validator.go:158
runtime.goexit
/opt/go/src/runtime/asm_amd64.s:1333
error validating config which passed initial validity checks
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).commitBlock
/opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:811
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads
/opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:598
runtime.goexit
/opt/go/src/runtime/asm_amd64.s:1333)
2020-03-12 01:05:29.610 UTC [gossip.state] deliverPayloads -> PANI 044 Cannot commit block to the ledger due to config currently at sequence 0, cannot validate config at sequence 2
github.com/hyperledger/fabric/common/configtx.(*ValidatorImpl).Validate
/opt/gopath/src/github.com/hyperledger/fabric/common/configtx/validator.go:170
github.com/hyperledger/fabric/core/peer.(*chainSupport).Apply
/opt/gopath/src/github.com/hyperledger/fabric/core/peer/peer.go:141
github.com/hyperledger/fabric/core/committer/txvalidator.(*TxValidator).validateTx
/opt/gopath/src/github.com/hyperledger/fabric/core/committer/txvalidator/validator.go:425
github.com/hyperledger/fabric/core/committer/txvalidator.(*TxValidator).Validate.func1.1
/opt/gopath/src/github.com/hyperledger/fabric/core/committer/txvalidator/validator.go:158
runtime.goexit
/opt/go/src/runtime/asm_amd64.s:1333
error validating config which passed initial validity checks
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads
/opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:603
runtime.goexit
/opt/go/src/runtime/asm_amd64.s:1333
panic: Cannot commit block to the ledger due to config currently at sequence 0, cannot validate config at sequence 2
github.com/hyperledger/fabric/common/configtx.(*ValidatorImpl).Validate
/opt/gopath/src/github.com/hyperledger/fabric/common/configtx/validator.go:170
github.com/hyperledger/fabric/core/peer.(*chainSupport).Apply
/opt/gopath/src/github.com/hyperledger/fabric/core/peer/peer.go:141
github.com/hyperledger/fabric/core/committer/txvalidator.(*TxValidator).validateTx
/opt/gopath/src/github.com/hyperledger/fabric/core/committer/txvalidator/validator.go:425
github.com/hyperledger/fabric/core/committer/txvalidator.(*TxValidator).Validate.func1.1
/opt/gopath/src/github.com/hyperledger/fabric/core/committer/txvalidator/validator.go:158
runtime.goexit
/opt/go/src/runtime/asm_amd64.s:1333
error validating config which passed initial validity checks
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads
/opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:603
runtime.goexit
/opt/go/src/runtime/asm_amd64.s:1333

goroutine 361 [running]:
github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc00215a210, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc00000e520, 0x4, 0x128f3f7, 0x2c, 0xc002cfec90, 0x1, 0x1, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc00000e520, 0x128f3f7, 0x2c, 0xc002cfec90, 0x1, 0x1)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79
github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(0xc00000e528, 0x128f3f7, 0x2c, 0xc002cfec90, 0x1, 0x1)
/opt/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 +0x60
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads(0xc0025a99a0)
/opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:603 +0x4a5
created by github.com/hyperledger/fabric/gossip/state.NewGossipStateProvider
/opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:284 +0x714

====
May you help ?

Join fabric@lists.hyperledger.org to automatically receive all group messages.