qiangjiyi / fabric-gm Goto Github PK
View Code? Open in Web Editor NEW基于hyperledger fabric 1.4.2 release版国密改造
License: Apache License 2.0
基于hyperledger fabric 1.4.2 release版国密改造
License: Apache License 2.0
执行./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
您好,我将您的源码进行以下编译:
goroutine 1 [running]:
github.com/hyperledger/fabric/msp.sanitizeECDSASignedCert(0xc00052a480, 0xc00052a480, 0x0, 0x0, 0xc0001b39e0)
/opt/gopath/src/github.com/hyperledger/fabric/msp/cert.go:84 +0x475
github.com/hyperledger/fabric/msp.(*bccspmsp).sanitizeCert(0xc0004a6480, 0xc00052a480, 0x1990900, 0xc00026f920, 0x19a8e60)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mspimpl.go:695 +0x133
github.com/hyperledger/fabric/msp.newIdentity(0xc00052a480, 0x19a8e60, 0xc00000ed20, 0xc0004a6480, 0xc00026f920, 0x19a8e60, 0xc00000ed20, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/msp/identities.go:47 +0x70
github.com/hyperledger/fabric/msp.(*bccspmsp).getIdentityFromConf(0xc0004a6480, 0xc000142a80, 0x35f, 0x380, 0x1, 0x1, 0x0, 0x0, 0xc000443870, 0xdaebc5)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mspimpl.go:161 +0x102
github.com/hyperledger/fabric/msp.(*bccspmsp).setupCAs(0xc0004a6480, 0xc00012a3c0, 0x0, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mspimplsetup.go:134 +0x65d
github.com/hyperledger/fabric/msp.(*bccspmsp).preSetupV1(0xc0004a6480, 0xc00012a3c0, 0xc000443960, 0xdad8d0)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mspimplsetup.go:393 +0x64
github.com/hyperledger/fabric/msp.(*bccspmsp).setupV1(0xc0004a6480, 0xc00012a3c0, 0x1, 0x1)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mspimplsetup.go:373 +0x39
github.com/hyperledger/fabric/msp.(*bccspmsp).setupV1-fm(0xc00012a3c0, 0x183cd90, 0x1a)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mspimpl.go:112 +0x34
github.com/hyperledger/fabric/msp.(*bccspmsp).Setup(0xc0004a6480, 0xc0005e91c0, 0x0, 0x25c9408)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mspimpl.go:225 +0x14d
github.com/hyperledger/fabric/msp/cache.(*cachedMSP).Setup(0xc0001b3710, 0xc0005e91c0, 0xc0004c66a0, 0xc00003e035)
/opt/gopath/src/github.com/hyperledger/fabric/msp/cache/cache.go:88 +0x4b
github.com/hyperledger/fabric/msp/mgmt.LoadLocalMspWithType(0xc0000401f8, 0x7d, 0xc0004c66a0, 0xc00003e035, 0x7, 0xc0003a1ae0, 0x5, 0xc0002a4ea0, 0xc000443ae8)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mgmt/mgmt.go:32 +0xd5
github.com/hyperledger/fabric/peer/common.InitCrypto(0xc0000401f8, 0x7d, 0xc00003e035, 0x7, 0xc0003a1ae0, 0x5, 0x15e4b40, 0x24e5b80)
/opt/gopath/src/github.com/hyperledger/fabric/peer/common/common.go:143 +0x2e9
github.com/hyperledger/fabric/peer/common.InitCmd(0xc00029cf00, 0xc000294140, 0x1, 0xa)
/opt/gopath/src/github.com/hyperledger/fabric/peer/common/common.go:309 +0x2d9
github.com/hyperledger/fabric/peer/channel.glob..func1(0xc00029cf00, 0xc000294140, 0x1, 0xa)
/opt/gopath/src/github.com/hyperledger/fabric/peer/channel/channel.go:102 +0x49
github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).execute(0xc00029cf00, 0xc000294000, 0xa, 0xa, 0xc00029cf00, 0xc000294000)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:746 +0x242
github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x24bba80, 0x8, 0x0, 0x24ba780)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:852 +0x2fd
github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).Execute(0x24bba80, 0xc0000e3f40, 0x1)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:800 +0x2b
main.main()
/opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:53 +0x2f7
!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!
========= ERROR !!! FAILED to execute End-2-End Scenario ===========
ERROR !!!! Test failed
我利用docker-compose-cli.yaml来启动也是同样的错误。
暂时没查阅到相关类似的错误解决方案,
请问这是什么问题呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.