Матрица Hyperledger на AWS, одноранговые узлы получают сбой после обновления однорангового однорангового узла - PullRequest
0 голосов
/ 28 сентября 2018

Я развернул матрицу hyperledger на экземплярах aws ec2.

peer0.sales.billerxchange.com (ec2 instance 1)
peer1.sales.billerxchange.com (ec2 instance 2)
peer0.employee.billerxchange.com (ec2 instance 3)
peer1.employee.billerxchange.com (ec2 instance 4)
ca.sales.billerxchange.com (ec2 instance 5)
ca.employee.billerxchange.com (ec2 instance 6)
orderer.billerxchange.com (ec2 instance 7)

Все одноранговые узлы, ca и заказчики развернуты на отдельных экземплярах и управляются Docker Swarm и развертываются в сети наложения Docker.Я могу присоединиться к каналу, но когда я пытаюсь обновить одноранговый одноранговый узел в канале

peer channel update -c settlement -o orderer.billerxchange.com:7050 -f billerxchangepeer.tx

, я обновил peer0, так как одноранговый одноранговый узел peer0 получит обновление, и все другие одноранговые узлы в сети потерпят крах.только peer0 остается активным, все одноранговые контейнеры останавливаются или выходят.Я приложил журналы контейнеров, пожалуйста, проверьте.

    2018-09-28 20:14:58.041 UTC [gossip/gossip] learnAnchorPeers -> INFO 032 Learning about the configured anchor peers of BillerXchange for channel settlement : [{peer0.sales.billerxchange.com 7051}]
2018-09-28 20:14:58.042 UTC [committer/txvalidator] Validate -> INFO 033 [settlement] Validated block [1] in 5ms
2018-09-28 20:14:58.046 UTC [gossip/state] commitBlock -> ERRO 034 Got error while committing(unexpected Previous block hash. Expected PreviousHash = [20c677285adc8bb6ecaa08d07f4b56038f1eb646a1e2c46c4915716772ac622b], PreviousHash referred in the latest block= [4abc11f19eed89a96d1fd6280512cea1504c1ff202e4f0d0cc5ad1945648343a]
github.com/hyperledger/fabric/common/ledger/blkstorage/fsblkstorage.(*blockfileMgr).addBlock
    /opt/gopath/src/github.com/hyperledger/fabric/common/ledger/blkstorage/fsblkstorage/blockfile_mgr.go:254
github.com/hyperledger/fabric/common/ledger/blkstorage/fsblkstorage.(*fsBlockStore).AddBlock
    /opt/gopath/src/github.com/hyperledger/fabric/common/ledger/blkstorage/fsblkstorage/fs_blockstore.go:43
github.com/hyperledger/fabric/core/ledger/ledgerstorage.(*Store).CommitWithPvtData
    /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/ledgerstorage/store.go:124
github.com/hyperledger/fabric/core/ledger/kvledger.(*kvLedger).CommitWithPvtData
    /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/kv_ledger.go:271
github.com/hyperledger/fabric/core/ledger/ledgermgmt.(*closableLedger).CommitWithPvtData
    <autogenerated>:1
github.com/hyperledger/fabric/core/committer.(*LedgerCommitter).CommitWithPvtData
    /opt/gopath/src/github.com/hyperledger/fabric/core/committer/committer_impl.go:93
github.com/hyperledger/fabric/gossip/privdata.(*coordinator).StoreBlock
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/privdata/coordinator.go:229
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).commitBlock
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:771
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:558
runtime.goexit
    /opt/go/src/runtime/asm_amd64.s:2361
commit failed
github.com/hyperledger/fabric/gossip/privdata.(*coordinator).StoreBlock
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/privdata/coordinator.go:231
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).commitBlock
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:771
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:558
runtime.goexit
    /opt/go/src/runtime/asm_amd64.s:2361
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).commitBlock
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:772
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:558
runtime.goexit
    /opt/go/src/runtime/asm_amd64.s:2361)
2018-09-28 20:14:58.046 UTC [gossip/state] deliverPayloads -> PANI 035 Cannot commit block to the ledger due to unexpected Previous block hash. Expected PreviousHash = [20c677285adc8bb6ecaa08d07f4b56038f1eb646a1e2c46c4915716772ac622b], PreviousHash referred in the latest block= [4abc11f19eed89a96d1fd6280512cea1504c1ff202e4f0d0cc5ad1945648343a]
github.com/hyperledger/fabric/common/ledger/blkstorage/fsblkstorage.(*blockfileMgr).addBlock
    /opt/gopath/src/github.com/hyperledger/fabric/common/ledger/blkstorage/fsblkstorage/blockfile_mgr.go:254
github.com/hyperledger/fabric/common/ledger/blkstorage/fsblkstorage.(*fsBlockStore).AddBlock
    /opt/gopath/src/github.com/hyperledger/fabric/common/ledger/blkstorage/fsblkstorage/fs_blockstore.go:43
github.com/hyperledger/fabric/core/ledger/ledgerstorage.(*Store).CommitWithPvtData
    /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/ledgerstorage/store.go:124
github.com/hyperledger/fabric/core/ledger/kvledger.(*kvLedger).CommitWithPvtData
    /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/kv_ledger.go:271
github.com/hyperledger/fabric/core/ledger/ledgermgmt.(*closableLedger).CommitWithPvtData
    <autogenerated>:1
github.com/hyperledger/fabric/core/committer.(*LedgerCommitter).CommitWithPvtData
    /opt/gopath/src/github.com/hyperledger/fabric/core/committer/committer_impl.go:93
github.com/hyperledger/fabric/gossip/privdata.(*coordinator).StoreBlock
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/privdata/coordinator.go:229
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).commitBlock
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:771
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:558
runtime.goexit
    /opt/go/src/runtime/asm_amd64.s:2361
commit failed
github.com/hyperledger/fabric/gossip/privdata.(*coordinator).StoreBlock
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/privdata/coordinator.go:231
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).commitBlock
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:771
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:558
runtime.goexit
    /opt/go/src/runtime/asm_amd64.s:2361
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:563
runtime.goexit
    /opt/go/src/runtime/asm_amd64.s:2361
panic: Cannot commit block to the ledger due to unexpected Previous block hash. Expected PreviousHash = [20c677285adc8bb6ecaa08d07f4b56038f1eb646a1e2c46c4915716772ac622b], PreviousHash referred in the latest block= [4abc11f19eed89a96d1fd6280512cea1504c1ff202e4f0d0cc5ad1945648343a]
github.com/hyperledger/fabric/common/ledger/blkstorage/fsblkstorage.(*blockfileMgr).addBlock
    /opt/gopath/src/github.com/hyperledger/fabric/common/ledger/blkstorage/fsblkstorage/blockfile_mgr.go:254
github.com/hyperledger/fabric/common/ledger/blkstorage/fsblkstorage.(*fsBlockStore).AddBlock
    /opt/gopath/src/github.com/hyperledger/fabric/common/ledger/blkstorage/fsblkstorage/fs_blockstore.go:43
github.com/hyperledger/fabric/core/ledger/ledgerstorage.(*Store).CommitWithPvtData
    /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/ledgerstorage/store.go:124
github.com/hyperledger/fabric/core/ledger/kvledger.(*kvLedger).CommitWithPvtData
    /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/kv_ledger.go:271
github.com/hyperledger/fabric/core/ledger/ledgermgmt.(*closableLedger).CommitWithPvtData
    <autogenerated>:1
github.com/hyperledger/fabric/core/committer.(*LedgerCommitter).CommitWithPvtData
    /opt/gopath/src/github.com/hyperledger/fabric/core/committer/committer_impl.go:93
github.com/hyperledger/fabric/gossip/privdata.(*coordinator).StoreBlock
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/privdata/coordinator.go:229
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).commitBlock
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:771
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:558
runtime.goexit
    /opt/go/src/runtime/asm_amd64.s:2361
commit failed
github.com/hyperledger/fabric/gossip/privdata.(*coordinator).StoreBlock
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/privdata/coordinator.go:231
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).commitBlock
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:771
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:558
runtime.goexit
    /opt/go/src/runtime/asm_amd64.s:2361
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:563
runtime.goexit
    /opt/go/src/runtime/asm_amd64.s:2361

goroutine 696 [running]:
github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc4202d00b0, 0x0, 0x0, 0x0)
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x4f4
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc42000e4d8, 0x4, 0x1113a7d, 0x2c, 0xc422400dd0, 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(0xc42000e4d8, 0x1113a7d, 0x2c, 0xc422400dd0, 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(0xc42000e4e0, 0x1113a7d, 0x2c, 0xc422400dd0, 0x1, 0x1)
    /opt/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 +0x60
github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads(0xc420173980)
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:563 +0x4af
created by github.com/hyperledger/fabric/gossip/state.NewGossipStateProvider
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:239 +0x699
...