Created
June 7, 2020 08:08
-
-
Save MXmaster2s/fc1d495d37a54b8cc9de2c852ef41a24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rohit@rohit-Swift-SF514-52T:~/workspace/fabric-samples$ cd first-network | |
rohit@rohit-Swift-SF514-52T:~/workspace/fabric-samples/first-network$ ./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.3 | |
DOCKER_IMAGE_VERSION=2.1.0 | |
=================== WARNING =================== | |
Local fabric binaries and docker images are | |
out of sync. This may cause problems. | |
=============================================== | |
/home/rohit/workspace/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 | |
Generate CCP files for Org1 and Org2 | |
/home/rohit/workspace/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-06-07 13:36:05.410 IST [common.tools.configtxgen] main -> INFO 001 Loading configuration | |
2020-06-07 13:36:05.518 IST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 002 orderer type: solo | |
2020-06-07 13:36:05.518 IST [common.tools.configtxgen.localconfig] Load -> INFO 003 Loaded configuration: /home/rohit/workspace/fabric-samples/first-network/configtx.yaml | |
2020-06-07 13:36:05.650 IST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 004 orderer type: solo | |
2020-06-07 13:36:05.650 IST [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 005 Loaded configuration: /home/rohit/workspace/fabric-samples/first-network/configtx.yaml | |
2020-06-07 13:36:05.654 IST [common.tools.configtxgen] doOutputBlock -> INFO 006 Generating genesis block | |
2020-06-07 13:36:05.654 IST [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-06-07 13:36:05.688 IST [common.tools.configtxgen] main -> INFO 001 Loading configuration | |
2020-06-07 13:36:05.779 IST [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /home/rohit/workspace/fabric-samples/first-network/configtx.yaml | |
2020-06-07 13:36:05.881 IST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 orderer type: solo | |
2020-06-07 13:36:05.881 IST [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 004 Loaded configuration: /home/rohit/workspace/fabric-samples/first-network/configtx.yaml | |
2020-06-07 13:36:05.881 IST [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 005 Generating new channel configtx | |
2020-06-07 13:36:05.884 IST [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-06-07 13:36:05.932 IST [common.tools.configtxgen] main -> INFO 001 Loading configuration | |
2020-06-07 13:36:06.026 IST [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /home/rohit/workspace/fabric-samples/first-network/configtx.yaml | |
2020-06-07 13:36:06.176 IST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 orderer type: solo | |
2020-06-07 13:36:06.176 IST [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 004 Loaded configuration: /home/rohit/workspace/fabric-samples/first-network/configtx.yaml | |
2020-06-07 13:36:06.176 IST [common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 005 Generating anchor peer update | |
2020-06-07 13:36:06.177 IST [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-06-07 13:36:06.229 IST [common.tools.configtxgen] main -> INFO 001 Loading configuration | |
2020-06-07 13:36:06.317 IST [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /home/rohit/workspace/fabric-samples/first-network/configtx.yaml | |
2020-06-07 13:36:06.457 IST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 orderer type: solo | |
2020-06-07 13:36:06.457 IST [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 004 Loaded configuration: /home/rohit/workspace/fabric-samples/first-network/configtx.yaml | |
2020-06-07 13:36:06.457 IST [common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 005 Generating anchor peer update | |
2020-06-07 13:36:06.457 IST [common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 006 Writing anchor peer update | |
+ res=0 | |
+ set +x | |
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 peer0.org2.example.com ... done | |
Creating peer0.org1.example.com ... done | |
Creating peer1.org1.example.com ... done | |
Creating peer1.org2.example.com ... done | |
Creating orderer.example.com ... done | |
Creating cli ... done | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
4c7252fe34ff hyperledger/fabric-tools:latest "/bin/bash" 2 seconds ago Up Less than a second cli | |
7bf7ac2d61c6 hyperledger/fabric-orderer:latest "orderer" 8 seconds ago Up 5 seconds 0.0.0.0:7050->7050/tcp orderer.example.com | |
66cf16490766 hyperledger/fabric-peer:latest "peer node start" 8 seconds ago Up 4 seconds 0.0.0.0:10051->10051/tcp peer1.org2.example.com | |
721c6b27484f hyperledger/fabric-peer:latest "peer node start" 8 seconds ago Up 3 seconds 0.0.0.0:8051->8051/tcp peer1.org1.example.com | |
3b4059b09f8b hyperledger/fabric-peer:latest "peer node start" 8 seconds ago Up 2 seconds 0.0.0.0:9051->9051/tcp peer0.org2.example.com | |
a37d8460a158 hyperledger/fabric-peer:latest "peer node start" 8 seconds ago Up 1 second 0.0.0.0:7051->7051/tcp peer0.org1.example.com | |
____ _____ _ ____ _____ | |
/ ___| |_ _| / \ | _ \ |_ _| | |
\___ \ | | / _ \ | |_) | | | | |
___) | | | / ___ \ | _ < | | | |
|____/ |_| /_/ \_\ |_| \_\ |_| | |
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=0 | |
+ set +x | |
2020-06-07 08:06:15.880 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized | |
2020-06-07 08:06:15.953 UTC [cli.common] readBlock -> INFO 002 Received block: 0 | |
===================== Channel 'mychannel' created ===================== | |
Having all peers join the channel... | |
+ peer channel join -b mychannel.block | |
+ res=0 | |
+ set +x | |
2020-06-07 08:06:16.045 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized | |
2020-06-07 08:06:16.173 UTC [channelCmd] executeJoin -> INFO 002 Successfully submitted proposal to join channel | |
===================== peer0.org1 joined channel 'mychannel' ===================== | |
+ peer channel join -b mychannel.block | |
+ res=0 | |
+ set +x | |
2020-06-07 08:06:19.259 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized | |
2020-06-07 08:06:19.363 UTC [channelCmd] executeJoin -> INFO 002 Successfully submitted proposal to join channel | |
===================== peer1.org1 joined channel 'mychannel' ===================== | |
+ peer channel join -b mychannel.block | |
+ res=0 | |
+ set +x | |
2020-06-07 08:06:22.441 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized | |
2020-06-07 08:06:22.569 UTC [channelCmd] executeJoin -> INFO 002 Successfully submitted proposal to join channel | |
===================== peer0.org2 joined channel 'mychannel' ===================== | |
+ peer channel join -b mychannel.block | |
+ res=0 | |
+ set +x | |
2020-06-07 08:06:25.654 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized | |
2020-06-07 08:06:25.778 UTC [channelCmd] executeJoin -> INFO 002 Successfully submitted proposal to join channel | |
===================== peer1.org2 joined channel 'mychannel' ===================== | |
Updating anchor peers for org1... | |
+ peer channel update -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/Org1MSPanchors.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=0 | |
+ set +x | |
2020-06-07 08:06:28.865 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized | |
2020-06-07 08:06:28.882 UTC [channelCmd] update -> INFO 002 Successfully submitted channel update | |
===================== Anchor peers updated for org 'Org1MSP' on channel 'mychannel' ===================== | |
Updating anchor peers for org2... | |
+ peer channel update -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/Org2MSPanchors.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=0 | |
+ set +x | |
2020-06-07 08:06:31.956 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized | |
2020-06-07 08:06:31.985 UTC [channelCmd] update -> INFO 002 Successfully submitted channel update | |
===================== Anchor peers updated for org 'Org2MSP' on channel 'mychannel' ===================== | |
Installing chaincode on peer0.org1... | |
+ peer chaincode install -n mycc -v 1.0 -l golang -p github.com/chaincode/chaincode_example02/go/ | |
+ res=1 | |
+ set +x | |
2020-06-07 08:06:35.064 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc | |
2020-06-07 08:06:35.064 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc | |
Error: error getting chaincode deployment spec for mycc: error getting chaincode package bytes: failed to calculate dependencies: incomplete package: github.com/hyperledger/fabric/core/chaincode/shim | |
!!!!!!!!!!!!!!! Chaincode installation on peer0.org1 has failed !!!!!!!!!!!!!!!! | |
========= ERROR !!! FAILED to execute End-2-End Scenario =========== | |
ERROR !!!! Test failed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment