-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fabric-gm编译后创建channel时的错误 #1
Comments
你好,
利用fabric-samples下的first-network网络进行测试的时候,要确保采用的cryptogen工具也是基于fabric-gm构建的,否则默认生成的证书依然是ecdsa的。
在 2020-03-22 20:04:30,"ssy1997" <notifications@github.com> 写道:
您好,我将您的源码进行以下编译:
make peer/orderer
make peer-docker/orderer-docker/tools-docker
之后,利用fabric-sample中first-network来测试是否可行
启动./byfn.sh脚本后报错:
Build your first network (BYFN) end-to-end test
peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
Channel name : mychannel
Creating channel...
res=2
set +x
bccsp gm keyimport pk is *sm2.PublicKeypanic: interface conversion: interface {} is *sm2.PublicKey, not *ecdsa.PublicKey
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来启动也是同样的错误。
暂时没查阅到相关类似的错误解决方案,
请问这是什么问题呢?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
您好。非常感谢您的回复。
按照您的意见,我已经将那几个相关密码工具(cryptogen、configtxlator、configtxgen)以及peer-docker、orderer-docker、tools-docker进行了编译,并将编译好的密码工具放入fabric-sample/bin。
转到first-network中执行./byfn.sh generate:
Generating certs and genesis block for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds
Continue? [Y/n] y
proceeding ...
/home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/../bin/cryptogen
##########################################################
##### Generate certificates using cryptogen tool #########
##########################################################
+ cryptogen generate --config=./crypto-config.yaml
org1.example.com
org2.example.com
+ res=0
+ set +x
/home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/../bin/configtxgen
##########################################################
######### Generating Orderer Genesis block ##############
##########################################################
CONSENSUS_TYPE=solo
+ '[' solo == solo ']'
+ configtxgen -profile TwoOrgsOrdererGenesis -channelID byfn-sys-channel -outputBlock ./channel-artifacts/genesis.block
2020-04-03 14:38:28.785 CST [common.tools.configtxgen] main -> INFO 001 Loading configuration
2020-04-03 14:38:28.891 CST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 002 orderer type: solo
2020-04-03 14:38:28.891 CST [common.tools.configtxgen.localconfig] Load -> INFO 003 Loaded configuration: /home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/configtx.yaml
2020-04-03 14:38:29.003 CST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 004 orderer type: solo
2020-04-03 14:38:29.003 CST [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 005 Loaded configuration: /home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/configtx.yaml
2020-04-03 14:38:29.005 CST [common.tools.configtxgen] doOutputBlock -> INFO 006 Generating genesis block
2020-04-03 14:38:29.005 CST [common.tools.configtxgen] doOutputBlock -> INFO 007 Writing genesis block
+ res=0
+ set +x
#################################################################
### Generating channel configuration transaction 'channel.tx' ###
#################################################################
+ configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID mychannel
2020-04-03 14:38:29.044 CST [common.tools.configtxgen] main -> INFO 001 Loading configuration
2020-04-03 14:38:29.130 CST [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/configtx.yaml
2020-04-03 14:38:29.222 CST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 orderer type: solo
2020-04-03 14:38:29.222 CST [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 004 Loaded configuration: /home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/configtx.yaml
2020-04-03 14:38:29.222 CST [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 005 Generating new channel configtx
2020-04-03 14:38:29.231 CST [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 006 Writing new channel tx
+ res=0
+ set +x
#################################################################
####### Generating anchor peer update for Org1MSP ##########
#################################################################
+ configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx -channelID mychannel -asOrg Org1MSP
2020-04-03 14:38:29.269 CST [common.tools.configtxgen] main -> INFO 001 Loading configuration
2020-04-03 14:38:29.357 CST [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/configtx.yaml
2020-04-03 14:38:29.468 CST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 orderer type: solo
2020-04-03 14:38:29.468 CST [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 004 Loaded configuration: /home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/configtx.yaml
2020-04-03 14:38:29.468 CST [common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 005 Generating anchor peer update
2020-04-03 14:38:29.468 CST [common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 006 Writing anchor peer update
+ res=0
+ set +x
#################################################################
####### Generating anchor peer update for Org2MSP ##########
#################################################################
+ configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org2MSPanchors.tx -channelID mychannel -asOrg Org2MSP
2020-04-03 14:38:29.520 CST [common.tools.configtxgen] main -> INFO 001 Loading configuration
2020-04-03 14:38:29.673 CST [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/configtx.yaml
2020-04-03 14:38:29.823 CST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 orderer type: solo
2020-04-03 14:38:29.823 CST [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 004 Loaded configuration: /home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/configtx.yaml
2020-04-03 14:38:29.824 CST [common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 005 Generating anchor peer update
2020-04-03 14:38:29.824 CST [common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 006 Writing anchor peer update
+ res=0
+ set +x
接下来,执行./byfn.sh up
Starting for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds
Continue? [Y/n] y
proceeding ...
LOCAL_VERSION=1.4.2
DOCKER_IMAGE_VERSION=1.4.2
Creating network "net_byfn" with the default driver
Creating volume "net_orderer.example.com" with default driver
Creating volume "net_peer0.org1.example.com" with default driver
Creating volume "net_peer1.org1.example.com" with default driver
Creating volume "net_peer0.org2.example.com" with default driver
Creating volume "net_peer1.org2.example.com" with default driver
Creating peer1.org2.example.com ... done
Creating peer0.org2.example.com ... done
Creating peer0.org1.example.com ... done
Creating peer1.org1.example.com ... done
Creating orderer.example.com ... done
Creating cli ... done
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
07e20bd60c61 hyperledger/fabric-tools:latest "/bin/bash" 1 second ago Up Less than a second cli
31a5039b91c0 hyperledger/fabric-orderer:latest "orderer" 6 seconds ago Exited (2) 3 seconds ago orderer.example.com
aa92fe1de898 hyperledger/fabric-peer:latest "peer node start" 6 seconds ago Exited (2) 1 second ago peer0.org1.example.com
254fcd23f0c7 hyperledger/fabric-peer:latest "peer node start" 6 seconds ago Exited (2) 2 seconds ago peer1.org2.example.com
9a34090b5085 hyperledger/fabric-peer:latest "peer node start" 6 seconds ago Exited (2) 1 second ago peer1.org1.example.com
c797fe1c0951 hyperledger/fabric-peer:latest "peer node start" 6 seconds ago Exited (2) 2 seconds ago peer0.org2.example.com
b37520b24734 5a46ea84680c "/bin/sh -c 'apt-get…" 27 minutes ago Exited (100) 27 minutes ago admiring_dirac
0cbd79990aee 5a46ea84680c "/bin/sh -c 'apt-get…" 32 minutes ago Exited (100) 31 minutes ago eloquent_robinson
a6f58925bcff c68e8d720cd9 "orderer" 12 days ago Exited (1) 12 days ago base_orderer-base_1
61ac43f6c6d9 e5486030952c "peer node start" 12 days ago Exited (2) 12 days ago base_peer-base_1
____ _____ _ ____ _____
/ ___| |_ _| / \ | _ \ |_ _|
\___ \ | | / _ \ | |_) | | |
___) | | | / ___ \ | _ < | |
|____/ |_| /_/ \_\ |_| \_\ |_|
Build your first network (BYFN) end-to-end test
Channel name : mychannel
Creating channel...
+ peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
+ res=2
+ set +x
bccsp gm keyimport pk is *sm2.PublicKeypanic: interface conversion: interface {} is *sm2.PublicKey, not *ecdsa.PublicKey
goroutine 1 [running]:
github.com/hyperledger/fabric/msp.sanitizeECDSASignedCert(0xc000476480, 0xc000476480, 0x0, 0x0, 0xc00050d9e0)
/opt/gopath/src/github.com/hyperledger/fabric/msp/cert.go:84 +0x475
github.com/hyperledger/fabric/msp.(*bccspmsp).sanitizeCert(0xc0004a2b40, 0xc000476480, 0x1990900, 0xc000273980, 0x19a8e60)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mspimpl.go:695 +0x133
github.com/hyperledger/fabric/msp.newIdentity(0xc000476480, 0x19a8e60, 0xc00000ed30, 0xc0004a2b40, 0xc000273980, 0x19a8e60, 0xc00000ed30, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/msp/identities.go:47 +0x70
github.com/hyperledger/fabric/msp.(*bccspmsp).getIdentityFromConf(0xc0004a2b40, 0xc0000caa80, 0x35f, 0x380, 0x1, 0x1, 0x0, 0x0, 0xc000233870, 0xdaebc5)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mspimpl.go:161 +0x102
github.com/hyperledger/fabric/msp.(*bccspmsp).setupCAs(0xc0004a2b40, 0xc00012a3c0, 0x0, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mspimplsetup.go:134 +0x65d
github.com/hyperledger/fabric/msp.(*bccspmsp).preSetupV1(0xc0004a2b40, 0xc00012a3c0, 0xc000233960, 0xdad8d0)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mspimplsetup.go:393 +0x64
github.com/hyperledger/fabric/msp.(*bccspmsp).setupV1(0xc0004a2b40, 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(0xc0004a2b40, 0xc0005e51c0, 0x0, 0x25c9408)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mspimpl.go:225 +0x14d
github.com/hyperledger/fabric/msp/cache.(*cachedMSP).Setup(0xc00050d710, 0xc0005e51c0, 0xc0004e47e0, 0xc00003e035)
/opt/gopath/src/github.com/hyperledger/fabric/msp/cache/cache.go:88 +0x4b
github.com/hyperledger/fabric/msp/mgmt.LoadLocalMspWithType(0xc0000401f8, 0x7d, 0xc0004e47e0, 0xc00003e035, 0x7, 0xc0003a1b40, 0x5, 0xc0002aaea0, 0xc000309ae8)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mgmt/mgmt.go:32 +0xd5
github.com/hyperledger/fabric/peer/common.InitCrypto(0xc0000401f8, 0x7d, 0xc00003e035, 0x7, 0xc0003a1b40, 0x5, 0x15e4b40, 0x24e5b80)
/opt/gopath/src/github.com/hyperledger/fabric/peer/common/common.go:143 +0x2e9
github.com/hyperledger/fabric/peer/common.InitCmd(0xc0002a0f00, 0xc000298000, 0x1, 0xa)
/opt/gopath/src/github.com/hyperledger/fabric/peer/common/common.go:309 +0x2d9
github.com/hyperledger/fabric/peer/channel.glob..func1(0xc0002a0f00, 0xc000298000, 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(0xc0002a0f00, 0xc0002a9ea0, 0xa, 0xa, 0xc0002a0f00, 0xc0002a9ea0)
/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, 0xc000309f40, 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
目前编译好启动网络的错误就是以上,暂时还没找到问题的原因。
…------------------ 原始邮件 ------------------
发件人: "qiangjiyi"<notifications@github.com>;
发送时间: 2020年3月30日(星期一) 上午10:14
收件人: "qiangjiyi/fabric-gm"<fabric-gm@noreply.github.com>;
抄送: "Shi Shuyun "<yun.angel@foxmail.com>;"Author"<author@noreply.github.com>;
主题: Re: [qiangjiyi/fabric-gm] fabric-gm编译后创建channel时的错误 (#1)
你好,
利用fabric-samples下的first-network网络进行测试的时候,要确保采用的cryptogen工具也是基于fabric-gm构建的,否则默认生成的证书依然是ecdsa的。
在 2020-03-22 20:04:30,"ssy1997" <notifications@github.com> 写道:
您好,我将您的源码进行以下编译:
make peer/orderer
make peer-docker/orderer-docker/tools-docker
之后,利用fabric-sample中first-network来测试是否可行
启动./byfn.sh脚本后报错:
Build your first network (BYFN) end-to-end test
peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
Channel name : mychannel
Creating channel...
res=2
set +x
bccsp gm keyimport pk is *sm2.PublicKeypanic: interface conversion: interface {} is *sm2.PublicKey, not *ecdsa.PublicKey
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来启动也是同样的错误。
暂时没查阅到相关类似的错误解决方案,
请问这是什么问题呢?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
不好意思,平时邮箱登录的不是特别勤快,加我微信吧
qjy1473430734
At 2020-04-03 14:52:39, "ssy1997" <notifications@github.com> wrote:
您好。非常感谢您的回复。
按照您的意见,我已经将那几个相关密码工具(cryptogen、configtxlator、configtxgen)以及peer-docker、orderer-docker、tools-docker进行了编译,并将编译好的密码工具放入fabric-sample/bin。
转到first-network中执行./byfn.sh generate:
Generating certs and genesis block for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds
Continue? [Y/n] y
proceeding ...
/home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/../bin/cryptogen
##########################################################
##### Generate certificates using cryptogen tool #########
##########################################################
+ cryptogen generate --config=./crypto-config.yaml
org1.example.com
org2.example.com
+ res=0
+ set +x
/home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/../bin/configtxgen
##########################################################
######### Generating Orderer Genesis block ##############
##########################################################
CONSENSUS_TYPE=solo
+ '[' solo == solo ']'
+ configtxgen -profile TwoOrgsOrdererGenesis -channelID byfn-sys-channel -outputBlock ./channel-artifacts/genesis.block
2020-04-03 14:38:28.785 CST [common.tools.configtxgen] main -> INFO 001 Loading configuration
2020-04-03 14:38:28.891 CST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 002 orderer type: solo
2020-04-03 14:38:28.891 CST [common.tools.configtxgen.localconfig] Load -> INFO 003 Loaded configuration: /home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/configtx.yaml
2020-04-03 14:38:29.003 CST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 004 orderer type: solo
2020-04-03 14:38:29.003 CST [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 005 Loaded configuration: /home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/configtx.yaml
2020-04-03 14:38:29.005 CST [common.tools.configtxgen] doOutputBlock -> INFO 006 Generating genesis block
2020-04-03 14:38:29.005 CST [common.tools.configtxgen] doOutputBlock -> INFO 007 Writing genesis block
+ res=0
+ set +x
#################################################################
### Generating channel configuration transaction 'channel.tx' ###
#################################################################
+ configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID mychannel
2020-04-03 14:38:29.044 CST [common.tools.configtxgen] main -> INFO 001 Loading configuration
2020-04-03 14:38:29.130 CST [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/configtx.yaml
2020-04-03 14:38:29.222 CST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 orderer type: solo
2020-04-03 14:38:29.222 CST [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 004 Loaded configuration: /home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/configtx.yaml
2020-04-03 14:38:29.222 CST [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 005 Generating new channel configtx
2020-04-03 14:38:29.231 CST [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 006 Writing new channel tx
+ res=0
+ set +x
#################################################################
####### Generating anchor peer update for Org1MSP ##########
#################################################################
+ configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx -channelID mychannel -asOrg Org1MSP
2020-04-03 14:38:29.269 CST [common.tools.configtxgen] main -> INFO 001 Loading configuration
2020-04-03 14:38:29.357 CST [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/configtx.yaml
2020-04-03 14:38:29.468 CST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 orderer type: solo
2020-04-03 14:38:29.468 CST [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 004 Loaded configuration: /home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/configtx.yaml
2020-04-03 14:38:29.468 CST [common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 005 Generating anchor peer update
2020-04-03 14:38:29.468 CST [common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 006 Writing anchor peer update
+ res=0
+ set +x
#################################################################
####### Generating anchor peer update for Org2MSP ##########
#################################################################
+ configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org2MSPanchors.tx -channelID mychannel -asOrg Org2MSP
2020-04-03 14:38:29.520 CST [common.tools.configtxgen] main -> INFO 001 Loading configuration
2020-04-03 14:38:29.673 CST [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/configtx.yaml
2020-04-03 14:38:29.823 CST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 orderer type: solo
2020-04-03 14:38:29.823 CST [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 004 Loaded configuration: /home/shuyun/go/src/github.com/hyperledger/fabric-gm/scripts/fabric-samples/first-network/configtx.yaml
2020-04-03 14:38:29.824 CST [common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 005 Generating anchor peer update
2020-04-03 14:38:29.824 CST [common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 006 Writing anchor peer update
+ res=0
+ set +x
接下来,执行./byfn.sh up
Starting for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds
Continue? [Y/n] y
proceeding ...
LOCAL_VERSION=1.4.2
DOCKER_IMAGE_VERSION=1.4.2
Creating network "net_byfn" with the default driver
Creating volume "net_orderer.example.com" with default driver
Creating volume "net_peer0.org1.example.com" with default driver
Creating volume "net_peer1.org1.example.com" with default driver
Creating volume "net_peer0.org2.example.com" with default driver
Creating volume "net_peer1.org2.example.com" with default driver
Creating peer1.org2.example.com ... done
Creating peer0.org2.example.com ... done
Creating peer0.org1.example.com ... done
Creating peer1.org1.example.com ... done
Creating orderer.example.com ... done
Creating cli ... done
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
07e20bd60c61 hyperledger/fabric-tools:latest "/bin/bash" 1 second ago Up Less than a second cli
31a5039b91c0 hyperledger/fabric-orderer:latest "orderer" 6 seconds ago Exited (2) 3 seconds ago orderer.example.com
aa92fe1de898 hyperledger/fabric-peer:latest "peer node start" 6 seconds ago Exited (2) 1 second ago peer0.org1.example.com
254fcd23f0c7 hyperledger/fabric-peer:latest "peer node start" 6 seconds ago Exited (2) 2 seconds ago peer1.org2.example.com
9a34090b5085 hyperledger/fabric-peer:latest "peer node start" 6 seconds ago Exited (2) 1 second ago peer1.org1.example.com
c797fe1c0951 hyperledger/fabric-peer:latest "peer node start" 6 seconds ago Exited (2) 2 seconds ago peer0.org2.example.com
b37520b24734 5a46ea84680c "/bin/sh -c 'apt-get…" 27 minutes ago Exited (100) 27 minutes ago admiring_dirac
0cbd79990aee 5a46ea84680c "/bin/sh -c 'apt-get…" 32 minutes ago Exited (100) 31 minutes ago eloquent_robinson
a6f58925bcff c68e8d720cd9 "orderer" 12 days ago Exited (1) 12 days ago base_orderer-base_1
61ac43f6c6d9 e5486030952c "peer node start" 12 days ago Exited (2) 12 days ago base_peer-base_1
____ _____ _ ____ _____
/ ___| |_ _| / \ | _ \ |_ _|
\___ \ | | / _ \ | |_) | | |
___) | | | / ___ \ | _ < | |
|____/ |_| /_/ \_\ |_| \_\ |_|
Build your first network (BYFN) end-to-end test
Channel name : mychannel
Creating channel...
+ peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
+ res=2
+ set +x
bccsp gm keyimport pk is *sm2.PublicKeypanic: interface conversion: interface {} is *sm2.PublicKey, not *ecdsa.PublicKey
goroutine 1 [running]:
github.com/hyperledger/fabric/msp.sanitizeECDSASignedCert(0xc000476480, 0xc000476480, 0x0, 0x0, 0xc00050d9e0)
/opt/gopath/src/github.com/hyperledger/fabric/msp/cert.go:84 +0x475
github.com/hyperledger/fabric/msp.(*bccspmsp).sanitizeCert(0xc0004a2b40, 0xc000476480, 0x1990900, 0xc000273980, 0x19a8e60)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mspimpl.go:695 +0x133
github.com/hyperledger/fabric/msp.newIdentity(0xc000476480, 0x19a8e60, 0xc00000ed30, 0xc0004a2b40, 0xc000273980, 0x19a8e60, 0xc00000ed30, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/msp/identities.go:47 +0x70
github.com/hyperledger/fabric/msp.(*bccspmsp).getIdentityFromConf(0xc0004a2b40, 0xc0000caa80, 0x35f, 0x380, 0x1, 0x1, 0x0, 0x0, 0xc000233870, 0xdaebc5)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mspimpl.go:161 +0x102
github.com/hyperledger/fabric/msp.(*bccspmsp).setupCAs(0xc0004a2b40, 0xc00012a3c0, 0x0, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mspimplsetup.go:134 +0x65d
github.com/hyperledger/fabric/msp.(*bccspmsp).preSetupV1(0xc0004a2b40, 0xc00012a3c0, 0xc000233960, 0xdad8d0)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mspimplsetup.go:393 +0x64
github.com/hyperledger/fabric/msp.(*bccspmsp).setupV1(0xc0004a2b40, 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(0xc0004a2b40, 0xc0005e51c0, 0x0, 0x25c9408)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mspimpl.go:225 +0x14d
github.com/hyperledger/fabric/msp/cache.(*cachedMSP).Setup(0xc00050d710, 0xc0005e51c0, 0xc0004e47e0, 0xc00003e035)
/opt/gopath/src/github.com/hyperledger/fabric/msp/cache/cache.go:88 +0x4b
github.com/hyperledger/fabric/msp/mgmt.LoadLocalMspWithType(0xc0000401f8, 0x7d, 0xc0004e47e0, 0xc00003e035, 0x7, 0xc0003a1b40, 0x5, 0xc0002aaea0, 0xc000309ae8)
/opt/gopath/src/github.com/hyperledger/fabric/msp/mgmt/mgmt.go:32 +0xd5
github.com/hyperledger/fabric/peer/common.InitCrypto(0xc0000401f8, 0x7d, 0xc00003e035, 0x7, 0xc0003a1b40, 0x5, 0x15e4b40, 0x24e5b80)
/opt/gopath/src/github.com/hyperledger/fabric/peer/common/common.go:143 +0x2e9
github.com/hyperledger/fabric/peer/common.InitCmd(0xc0002a0f00, 0xc000298000, 0x1, 0xa)
/opt/gopath/src/github.com/hyperledger/fabric/peer/common/common.go:309 +0x2d9
github.com/hyperledger/fabric/peer/channel.glob..func1(0xc0002a0f00, 0xc000298000, 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(0xc0002a0f00, 0xc0002a9ea0, 0xa, 0xa, 0xc0002a0f00, 0xc0002a9ea0)
/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, 0xc000309f40, 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
目前编译好启动网络的错误就是以上,暂时还没找到问题的原因。
…------------------ 原始邮件 ------------------
发件人: "qiangjiyi"<notifications@github.com>;
发送时间: 2020年3月30日(星期一) 上午10:14
收件人: "qiangjiyi/fabric-gm"<fabric-gm@noreply.github.com>;
抄送: "Shi Shuyun "<yun.angel@foxmail.com>;"Author"<author@noreply.github.com>;
主题: Re: [qiangjiyi/fabric-gm] fabric-gm编译后创建channel时的错误 (#1)
你好,
利用fabric-samples下的first-network网络进行测试的时候,要确保采用的cryptogen工具也是基于fabric-gm构建的,否则默认生成的证书依然是ecdsa的。
在 2020-03-22 20:04:30,"ssy1997" <notifications@github.com> 写道:
您好,我将您的源码进行以下编译:
make peer/orderer
make peer-docker/orderer-docker/tools-docker
之后,利用fabric-sample中first-network来测试是否可行
启动./byfn.sh脚本后报错:
Build your first network (BYFN) end-to-end test
peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
Channel name : mychannel
Creating channel...
res=2
set +x
bccsp gm keyimport pk is *sm2.PublicKeypanic: interface conversion: interface {} is *sm2.PublicKey, not *ecdsa.PublicKey
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来启动也是同样的错误。
暂时没查阅到相关类似的错误解决方案,
请问这是什么问题呢?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
interface conversion: interface {} is *sm2.PublicKey, not *ecdsa.PublicKey |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
您好,我将您的源码进行以下编译:
之后,利用fabric-sample中first-network来测试是否可行
启动./byfn.sh脚本后报错:
Build your first network (BYFN) end-to-end test
Channel name : mychannel
Creating channel...
bccsp gm keyimport pk is *sm2.PublicKeypanic: interface conversion: interface {} is *sm2.PublicKey, not *ecdsa.PublicKey
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来启动也是同样的错误。
暂时没查阅到相关类似的错误解决方案,
请问这是什么问题呢?
The text was updated successfully, but these errors were encountered: