Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save christo4ferris/fc23b4770cb1a45f37e2b6ded042e49b to your computer and use it in GitHub Desktop.
Save christo4ferris/fc23b4770cb1a45f37e2b6ded042e49b to your computer and use it in GitHub Desktop.
cbf$ make compose
cryptogen generate --config config/cryptogen.yaml --output build/cryptogen
org1.net
2017-04-29 16:01:20.738 EDT [bccsp] GetDefault -> WARN 001 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-04-29 16:01:20.758 EDT [bccsp] GetDefault -> WARN 002 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-04-29 16:01:20.761 EDT [bccsp] GetDefault -> WARN 003 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-04-29 16:01:20.762 EDT [bccsp] GetDefault -> WARN 004 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-04-29 16:01:20.765 EDT [bccsp] GetDefault -> WARN 005 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-04-29 16:01:20.767 EDT [bccsp] GetDefault -> WARN 006 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-04-29 16:01:20.770 EDT [bccsp] GetDefault -> WARN 007 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-04-29 16:01:20.775 EDT [bccsp] GetDefault -> WARN 008 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-04-29 16:01:20.778 EDT [bccsp] GetDefault -> WARN 009 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-04-29 16:01:20.780 EDT [bccsp] GetDefault -> WARN 00a Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
cp -R build/cryptogen/peerOrganizations/org1.net/peers/peer1.org1.net/* build/nodes/peer1
cp config/configtx.yaml build/nodes/peer1/configtx.yaml
cp config/core.yaml build/nodes/peer1/core.yaml
Built build/nodes/peer1
cp -R build/cryptogen/peerOrganizations/org1.net/peers/peer2.org1.net/* build/nodes/peer2
cp config/configtx.yaml build/nodes/peer2/configtx.yaml
cp config/core.yaml build/nodes/peer2/core.yaml
Built build/nodes/peer2
cp -R build/cryptogen/peerOrganizations/org1.net/peers/peer3.org1.net/* build/nodes/peer3
cp config/configtx.yaml build/nodes/peer3/configtx.yaml
cp config/core.yaml build/nodes/peer3/core.yaml
Built build/nodes/peer3
cp -R build/cryptogen/peerOrganizations/org1.net/peers/peer4.org1.net/* build/nodes/peer4
cp config/configtx.yaml build/nodes/peer4/configtx.yaml
cp config/core.yaml build/nodes/peer4/core.yaml
Built build/nodes/peer4
cp config/orderer.yaml build/nodes/orderer/orderer.yaml
cp config/configtx.yaml build/nodes/orderer/configtx.yaml
cp -R build/cryptogen/ordererOrganizations/orderer.net/orderers/orderer.orderer.net/* build/nodes/orderer
FABRIC_CFG_PATH=build/nodes/orderer configtxgen -profile SingleOrg -outputBlock build/nodes/orderer/genesis.block
2017-04-29 16:01:21.055 EDT [common/configtx/tool] main -> INFO 001 Loading configuration
2017-04-29 16:01:21.062 EDT [msp] getMspConfig -> INFO 002 intermidiate certs folder not found at [/Users/cbf/dev/gocode/src/github.com/hyperledger/fabric/examples/cluster/build/nodes/orderer/msp/intermediatecerts]. Skipping.: [stat /Users/cbf/dev/gocode/src/github.com/hyperledger/fabric/examples/cluster/build/nodes/orderer/msp/intermediatecerts: no such file or directory]
2017-04-29 16:01:21.063 EDT [msp] getMspConfig -> INFO 003 crls folder not found at [/Users/cbf/dev/gocode/src/github.com/hyperledger/fabric/examples/cluster/build/nodes/orderer/msp/intermediatecerts]. Skipping.: [stat /Users/cbf/dev/gocode/src/github.com/hyperledger/fabric/examples/cluster/build/nodes/orderer/msp/crls: no such file or directory]
2017-04-29 16:01:21.064 EDT [msp] getMspConfig -> INFO 004 intermidiate certs folder not found at [/Users/cbf/dev/gocode/src/github.com/hyperledger/fabric/examples/cluster/build/nodes/orderer/msp/intermediatecerts]. Skipping.: [stat /Users/cbf/dev/gocode/src/github.com/hyperledger/fabric/examples/cluster/build/nodes/orderer/msp/intermediatecerts: no such file or directory]
2017-04-29 16:01:21.064 EDT [msp] getMspConfig -> INFO 005 crls folder not found at [/Users/cbf/dev/gocode/src/github.com/hyperledger/fabric/examples/cluster/build/nodes/orderer/msp/intermediatecerts]. Skipping.: [stat /Users/cbf/dev/gocode/src/github.com/hyperledger/fabric/examples/cluster/build/nodes/orderer/msp/crls: no such file or directory]
2017-04-29 16:01:21.065 EDT [common/configtx/tool] doOutputBlock -> INFO 006 Generating genesis block
2017-04-29 16:01:21.067 EDT [common/configtx/tool] doOutputBlock -> INFO 007 Writing genesis block
cp config/core.yaml build/nodes/orderer/core.yaml
Built build/nodes/orderer
cp config/configtx.yaml build/nodes/cli/configtx.yaml
cp -R build/cryptogen/peerOrganizations/org1.net/users/Admin@org1.net/* build/nodes/cli
FABRIC_CFG_PATH=build/nodes/cli configtxgen -profile SingleOrg \
-channelID mychannel \
-outputCreateChannelTx build/nodes/cli/channel.tx
2017-04-29 16:01:21.121 EDT [common/configtx/tool] main -> INFO 001 Loading configuration
2017-04-29 16:01:21.123 EDT [common/configtx/tool] doOutputChannelCreateTx -> INFO 002 Generating new channel configtx
2017-04-29 16:01:21.124 EDT [common/configtx/tool] doOutputChannelCreateTx -> INFO 003 Writing new channel tx
cp config/core.yaml build/nodes/cli/core.yaml
Built build/nodes/cli
cp build/cryptogen/peerOrganizations/org1.net/ca/*_sk build/nodes/ca/tls/ca.key
cp build/cryptogen/peerOrganizations/org1.net/ca/*.pem build/nodes/ca/tls/ca.crt
docker-compose -f compose/docker-compose.yaml up -d ca peer1 peer2 peer3 peer4
Creating network "compose_default" with the default driver
Creating orderer
Creating ca
Creating peer1
Creating peer3
Creating peer2
Creating peer4
docker-compose -f compose/docker-compose.yaml run --rm cli ./configure.sh mychannel build/nodes/cli/channel.tx "peer1 peer2 peer3 peer4"
+ set -e
+ CHANNEL_NAME=mychannel
+ CHANNEL_SPEC=build/nodes/cli/channel.tx
+ PEERS='peer1 peer2 peer3 peer4'
+ peer channel create -o orderer:7050 -c mychannel -f build/nodes/cli/channel.tx --tls true --cafile build/cryptogen/ordererOrganizations/orderer.net/ca/ca.orderer.net-cert.pem
2017-04-29 20:01:31.048 UTC [msp] getMspConfig -> INFO 001 intermidiate certs folder not found at [/etc/hyperledger/fabric/msp/intermediatecerts]. Skipping.: [stat /etc/hyperledger/fabric/msp/intermediatecerts: no such file or directory]
2017-04-29 20:01:31.052 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/etc/hyperledger/fabric/msp/intermediatecerts]. Skipping.: [stat /etc/hyperledger/fabric/msp/crls: no such file or directory]
2017-04-29 20:01:31.083 UTC [msp] GetLocalMSP -> DEBU 003 Returning existing local MSP
2017-04-29 20:01:31.085 UTC [msp] GetDefaultSigningIdentity -> DEBU 004 Obtaining default signing identity
2017-04-29 20:01:31.108 UTC [msp] GetLocalMSP -> DEBU 005 Returning existing local MSP
2017-04-29 20:01:31.108 UTC [msp] GetDefaultSigningIdentity -> DEBU 006 Obtaining default signing identity
2017-04-29 20:01:31.109 UTC [msp] GetLocalMSP -> DEBU 007 Returning existing local MSP
2017-04-29 20:01:31.109 UTC [msp] GetDefaultSigningIdentity -> DEBU 008 Obtaining default signing identity
2017-04-29 20:01:31.109 UTC [msp] Sign -> DEBU 009 Sign: plaintext: 0A84060A074F7267314D535012F8052D...1A0E0A0A436F6E736F727469756D1200
2017-04-29 20:01:31.110 UTC [msp] Sign -> DEBU 00a Sign: digest: C046D314D7A8FDD24B95895D80045C9F4A36243FA6B8D083C55867E74E5C323A
2017-04-29 20:01:31.111 UTC [msp] GetLocalMSP -> DEBU 00b Returning existing local MSP
2017-04-29 20:01:31.111 UTC [msp] GetDefaultSigningIdentity -> DEBU 00c Obtaining default signing identity
2017-04-29 20:01:31.112 UTC [msp] GetLocalMSP -> DEBU 00d Returning existing local MSP
2017-04-29 20:01:31.112 UTC [msp] GetDefaultSigningIdentity -> DEBU 00e Obtaining default signing identity
2017-04-29 20:01:31.112 UTC [msp] Sign -> DEBU 00f Sign: plaintext: 0ABB060A1508021A06089BE293C80522...DC8CCB3ABEA12CFF14715C5BE60E876F
2017-04-29 20:01:31.113 UTC [msp] Sign -> DEBU 010 Sign: digest: 030B2495BAA22F92366E90E79E9E479453F1C81094FC9E9F99BE181AC25BD715
Error: rpc error: code = 13 desc = transport is closing
Usage:
peer channel create [flags]
Global Flags:
-b, --blockpath string Path to file containing genesis block
--cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint
-c, --chain string In case of a newChain command, the chain ID to create.
-f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer
--logging-level string Default logging level and overrides, see core.yaml for full syntax
-o, --orderer string Ordering service endpoint
--test.coverprofile string Done (default "coverage.cov")
--tls Use TLS when communicating with the orderer endpoint
-v, --version Display current version of fabric peer server
make: *** [compose] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment