qiangjiyi / fabric-gm

基于hyperledger fabric 1.4.2 release版国密改造
Apache License 2.0
11 stars 8 forks source link

启动网络后,orderer节点启动失败 #2

Open Z-LL opened 3 years ago

Z-LL commented 3 years ago

执行./byfn.sh up时,orderer节点没有启动成功,查看orderer日志,有以下错误:

2020-10-12 02:50:03.220 UTC [localconfig] completeInitialization -> INFO 001 Kafka.Version unset, setting to 0.10.2.0
bccsp gm keyimport pk is *sm2.PublicKeybccsp gm keyimport pk is *sm2.PublicKeybccsp gm keyimport pk is *sm2.PublicKeySM3
2020-10-12 02:50:03.225 UTC [orderer.common.server] prettyPrintStruct -> INFO 002 Orderer config values:
        General.LedgerType = "file"
        General.ListenAddress = "0.0.0.0"
        General.ListenPort = 7050
        General.TLS.Enabled = true
        General.TLS.PrivateKey = "/var/hyperledger/orderer/tls/server.key"
        General.TLS.Certificate = "/var/hyperledger/orderer/tls/server.crt"
        General.TLS.RootCAs = [/var/hyperledger/orderer/tls/ca.crt]
        General.TLS.ClientAuthRequired = false
        General.TLS.ClientRootCAs = []
        General.Cluster.ListenAddress = ""
        General.Cluster.ListenPort = 0
        General.Cluster.ServerCertificate = ""
        General.Cluster.ServerPrivateKey = ""
        General.Cluster.ClientCertificate = "/var/hyperledger/orderer/tls/server.crt"
        General.Cluster.ClientPrivateKey = "/var/hyperledger/orderer/tls/server.key"
        General.Cluster.RootCAs = [/var/hyperledger/orderer/tls/ca.crt]
        General.Cluster.DialTimeout = 5s
        General.Cluster.RPCTimeout = 7s
        General.Cluster.ReplicationBufferSize = 20971520
        General.Cluster.ReplicationPullTimeout = 5s
        General.Cluster.ReplicationRetryTimeout = 5s
        General.Cluster.ReplicationBackgroundRefreshInterval = 5m0s
        General.Cluster.ReplicationMaxRetries = 12
        General.Cluster.SendBufferSize = 10
        General.Cluster.CertExpirationWarningThreshold = 168h0m0s
        General.Keepalive.ServerMinInterval = 1m0s
        General.Keepalive.ServerInterval = 2h0m0s
        General.Keepalive.ServerTimeout = 20s
        General.ConnectionTimeout = 0s
        General.GenesisMethod = "file"
        General.GenesisProfile = "SampleInsecureSolo"
        General.SystemChannel = "test-system-channel-name"
        General.GenesisFile = "/var/hyperledger/orderer/orderer.genesis.block"
        General.Profile.Enabled = false
        General.Profile.Address = "0.0.0.0:6060"
        General.LocalMSPDir = "/var/hyperledger/orderer/msp"
        General.LocalMSPID = "OrdererMSP"
        General.BCCSP.ProviderName = "SW"
        General.BCCSP.SwOpts.SecLevel = 256
        General.BCCSP.SwOpts.HashFamily = "SHA2"
        General.BCCSP.SwOpts.Ephemeral = false
        General.BCCSP.SwOpts.FileKeystore.KeyStorePath = "/var/hyperledger/orderer/msp/keystore"
        General.BCCSP.SwOpts.DummyKeystore =
        General.BCCSP.SwOpts.InmemKeystore =
        General.BCCSP.PluginOpts =
        General.Authentication.TimeWindow = 15m0s
        FileLedger.Location = "/var/hyperledger/production/orderer"
        FileLedger.Prefix = "hyperledger-fabric-ordererledger"
        RAMLedger.HistorySize = 1000
        Kafka.Retry.ShortInterval = 5s
        Kafka.Retry.ShortTotal = 10m0s
        Kafka.Retry.LongInterval = 5m0s
        Kafka.Retry.LongTotal = 12h0m0s
        Kafka.Retry.NetworkTimeouts.DialTimeout = 10s
        Kafka.Retry.NetworkTimeouts.ReadTimeout = 10s
        Kafka.Retry.NetworkTimeouts.WriteTimeout = 10s
        Kafka.Retry.Metadata.RetryMax = 3
        Kafka.Retry.Metadata.RetryBackoff = 250ms
        Kafka.Retry.Producer.RetryMax = 3
        Kafka.Retry.Producer.RetryBackoff = 100ms
        Kafka.Retry.Consumer.RetryBackoff = 2s
        Kafka.Verbose = true
        Kafka.Version = 0.10.2.0
        Kafka.TLS.Enabled = false
        Kafka.TLS.PrivateKey = ""
        Kafka.TLS.Certificate = ""
        Kafka.TLS.RootCAs = []
        Kafka.TLS.ClientAuthRequired = false
        Kafka.TLS.ClientRootCAs = []
        Kafka.SASLPlain.Enabled = false
        Kafka.SASLPlain.User = ""
        Kafka.SASLPlain.Password = ""
        Kafka.Topic.ReplicationFactor = 1
        Debug.BroadcastTraceDir = ""
        Debug.DeliverTraceDir = ""
        Consensus = map[WALDir:/var/hyperledger/production/orderer/etcdraft/wal SnapDir:/var/hyperledger/production/orderer/etcdraft/snapshot]
        Operations.ListenAddress = "127.0.0.1:8443"
        Operations.TLS.Enabled = false
        Operations.TLS.PrivateKey = ""
        Operations.TLS.Certificate = ""
        Operations.TLS.RootCAs = []
        Operations.TLS.ClientAuthRequired = false
        Operations.TLS.ClientRootCAs = []
        Metrics.Provider = "disabled"
        Metrics.Statsd.Network = "udp"
        Metrics.Statsd.Address = "127.0.0.1:8125"
        Metrics.Statsd.WriteInterval = 30s
        Metrics.Statsd.Prefix = ""
bccsp gm keyimport pk is *sm2.PublicKeybccsp gm keyimport pk is *sm2.PublicKeySM3
bccsp gm keyimport pk is *sm2.PublicKeybccsp gm keyimport pk is *sm2.PublicKeySM3
bccsp gm keyimport pk is *sm2.PublicKeybccsp gm keyimport pk is *sm2.PublicKeySM3
2020-10-12 02:50:03.260 UTC [orderer.common.server] extractSysChanLastConfig -> INFO 003 Bootstrapping because no existing channels
bccsp gm keyimport pk is *sm2.PublicKeybccsp gm keyimport pk is *sm2.PublicKeySM3
bccsp gm keyimport pk is *sm2.PublicKeybccsp gm keyimport pk is *sm2.PublicKeySM3
bccsp gm keyimport pk is *sm2.PublicKeybccsp gm keyimport pk is *sm2.PublicKeySM3
2020-10-12 02:50:03.272 UTC [orderer.common.server] initializeServerConfig -> INFO 004 Starting orderer with TLS enabled
2020-10-12 02:50:03.274 UTC [fsblkstorage] newBlockfileMgr -> INFO 005 Getting block information from block storage
bccsp gm keyimport pk is *sm2.PublicKeybccsp gm keyimport pk is *sm2.PublicKeySM3
bccsp gm keyimport pk is *sm2.PublicKeybccsp gm keyimport pk is *sm2.PublicKeySM3
bccsp gm keyimport pk is *sm2.PublicKeybccsp gm keyimport pk is *sm2.PublicKeySM3
bccsp gm keyimport pk is *sm2.PublicKeybccsp gm keyimport pk is *sm2.PublicKeySM3
bccsp gm keyimport pk is *sm2.PublicKeybccsp gm keyimport pk is *sm2.PublicKeySM3
bccsp gm keyimport pk is *sm2.PublicKeybccsp gm keyimport pk is *sm2.PublicKeySM3
2020-10-12 02:50:03.316 UTC [orderer.commmon.multichannel] checkResourcesOrPanic -> PANI 006 [channel byfn-sys-channel] config requires unsupported channel capabilities: Channel capability V1_4_3 is required but not supported: Channel capability V1_4_3 is required but not supported
panic: [channel byfn-sys-channel] config requires unsupported channel capabilities: Channel capability V1_4_3 is required but not supported: Channel capability V1_4_3 is required but not supported

goroutine 1 [running]:
github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc000020a50, 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(0xc00000e078, 0x4, 0x1095f89, 0xf, 0xc0009b9468, 0x2, 0x2, 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(0xc00000e078, 0x1095f89, 0xf, 0xc0009b9468, 0x2, 0x2)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79
github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(0xc00000e080, 0x1095f89, 0xf, 0xc0009b9468, 0x2, 0x2)
        /opt/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 +0x60
github.com/hyperledger/fabric/orderer/common/multichannel.checkResourcesOrPanic(0x11d9080, 0xc00042a900)
        /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:57 +0x14d
github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).newLedgerResources(0xc0001b83f0, 0xc000239b80, 0xc000239b80)
        /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:275 +0x2f1
github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).Initialize(0xc0001b83f0, 0xc0004d7b00)
        /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:154 +0x24b
github.com/hyperledger/fabric/orderer/common/server.initializeMultichannelRegistrar(0xc000083b80, 0xc0003b72c0, 0xc000248700, 0x0, 0xc0001b82d0, 0x1be4a20, 0xc00003a0e0, 0x2, 0x2, 0xc00003a0f0, ...)
        /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:640 +0x37e
github.com/hyperledger/fabric/orderer/common/server.Start(0x108e11b, 0x5, 0xc000023200)
        /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:162 +0x83c
github.com/hyperledger/fabric/orderer/common/server.Main()
        /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:91 +0x1ce
main.main()
        /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20