快速搭建一個Fabric 1.0的環境時的坑
在 執行到第六步時老是說連線不上:
[email protected]:~/GoDownload/src/github.com/hyperledger/fabric/examples/e2e_cli$ source download-dockerimages.sh -c x86_64-1.0.0 -f x86_64-1.0.0 ===> Pulling fabric Images ==> FABRIC IMAGE: peer Warning: failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.38/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/ Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/create?fromImage=hyperledger%2Ffabric-peer&tag=x86_64-1.0.0: dial unix /var/run/docker.sock: connect: permission denied Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/hyperledger/fabric-peer:x86_64-1.0.0/tag?repo=hyperledger%2Ffabric-peer&tag=latest: dial unix /var/run/docker.sock: connect: permission denied ==> FABRIC IMAGE: orderer Warning: failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.38/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/ Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/create?fromImage=hyperledger%2Ffabric-orderer&tag=x86_64-1.0.0: dial unix /var/run/docker.sock: connect: permission denied Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/hyperledger/fabric-orderer:x86_64-1.0.0/tag?repo=hyperledger%2Ffabric-orderer&tag=latest: dial unix /var/run/docker.sock: connect: permission denied ==> FABRIC IMAGE: couchdb Warning: failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.38/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/ Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/create?fromImage=hyperledger%2Ffabric-couchdb&tag=x86_64-1.0.0: dial unix /var/run/docker.sock: connect: permission denied Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/hyperledger/fabric-couchdb:x86_64-1.0.0/tag?repo=hyperledger%2Ffabric-couchdb&tag=latest: dial unix /var/run/docker.sock: connect: permission denied ==> FABRIC IMAGE: ccenv Warning: failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.38/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/ Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/create?fromImage=hyperledger%2Ffabric-ccenv&tag=x86_64-1.0.0: dial unix /var/run/docker.sock: connect: permission denied Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/hyperledger/fabric-ccenv:x86_64-1.0.0/tag?repo=hyperledger%2Ffabric-ccenv&tag=latest: dial unix /var/run/docker.sock: connect: permission denied ==> FABRIC IMAGE: javaenv Warning: failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.38/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/ Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/create?fromImage=hyperledger%2Ffabric-javaenv&tag=x86_64-1.0.0: dial unix /var/run/docker.sock: connect: permission denied Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/hyperledger/fabric-javaenv:x86_64-1.0.0/tag?repo=hyperledger%2Ffabric-javaenv&tag=latest: dial unix /var/run/docker.sock: connect: permission denied ==> FABRIC IMAGE: kafka Warning: failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.38/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/ Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/create?fromImage=hyperledger%2Ffabric-kafka&tag=x86_64-1.0.0: dial unix /var/run/docker.sock: connect: permission denied Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/hyperledger/fabric-kafka:x86_64-1.0.0/tag?repo=hyperledger%2Ffabric-kafka&tag=latest: dial unix /var/run/docker.sock: connect: permission denied ==> FABRIC IMAGE: tools Warning: failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.38/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/ Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/create?fromImage=hyperledger%2Ffabric-tools&tag=x86_64-1.0.0: dial unix /var/run/docker.sock: connect: permission denied Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/hyperledger/fabric-tools:x86_64-1.0.0/tag?repo=hyperledger%2Ffabric-tools&tag=latest: dial unix /var/run/docker.sock: connect: permission denied ==> FABRIC IMAGE: zookeeper Warning: failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.38/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/ Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/create?fromImage=hyperledger%2Ffabric-zookeeper&tag=x86_64-1.0.0: dial unix /var/run/docker.sock: connect: permission denied Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/hyperledger/fabric-zookeeper:x86_64-1.0.0/tag?repo=hyperledger%2Ffabric-zookeeper&tag=latest: dial unix /var/run/docker.sock: connect: permission denied ===> Pulling fabric ca Image ==> FABRIC CA IMAGE Warning: failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.38/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/ Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/create?fromImage=hyperledger%2Ffabric-ca&tag=x86_64-1.0.0: dial unix /var/run/docker.sock: connect: permission denied Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/hyperledger/fabric-ca:x86_64-1.0.0/tag?repo=hyperledger%2Ffabric-ca&tag=latest: dial unix /var/run/docker.sock: connect: permission denied ===> List out hyperledger docker images Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/json: dial unix /var/run/docker.sock: connect: permission denied
因為普通使用者登入的狀況下,在使用docker images時必須新增sudo,那麼如何讓docker免sudo依然可用呢?
而我一開始,只是在我的使用者根目錄下改了免sudo指令
如何改,參考:
https://blog.csdn.net/baidu_36342103/article/details/69357438
後來,知道要在[email protected]:~/GoDownload/src/github.com/hyperledger/fabric/examples/e2e_cli路徑下修改,改完後再輸入docker info能正確顯示映象源位置即可。
Error: Error endorsing chaincode: rpc error: code = Unknown desc = Error starting container: API error (404): {"message":"network e2ecli_default not found"} Usage: peer chaincode instantiate [flags] Flags: -C, --channelID string The channel on which this command should be executed (default "testchainid") -c, --ctor string Constructor message for the chaincode in JSON format (default "{}") -E, --escc string The name of the endorsement system chaincode to be used for this chaincode -l, --lang string Language the chaincode is written in (default "golang") -n, --name string Name of the chaincode -P, --policy string The endorsement policy associated to this chaincode -v, --version string Version of the chaincode specified in install/instantiate/upgrade commands -V, --vscc string The name of the verification system chaincode to be used for this chaincode Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --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 !!!!!!!!!!!!!!! Chaincode instantiation on PEER2 on channel 'mychannel' failed !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ==================
After I changed the peer-base.xml in e2e_cli/base:
// From
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=e2ecli_default
// To
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=e2e_cli_default
Error: Error endorsing chaincode: rpc error: code = Unknown desc = Timeout expired while starting chaincode mycc:1.0(networkid:dev,peerid:peer0.org2.example.com,tx:dc5b2e932113e3ab55a5e3db2181724dea126ae20bbfcfb51222a9868922d752)
#關掉所有容器
docker stop $(docker ps -a -q)
#刪除所有容器
docker rm $(docker ps -a -q)
然後
docker rmi -f $(docker images |grep “dev-” |awk ‘{print $3}’)
[email protected]:~/GoDownload/src/github.com/hyperledger/fabric/examples/e2e_cli$ ./network_setup.sh up
setting to default channel 'mychannel'
mychannel
Using cryptogen -> /home/coolguy/GoDownload/src/github.com/hyperledger/fabric/examples/e2e_cli/../../release/linux-amd64/bin/cryptogen
##########################################################
##### Generate certificates using cryptogen tool #########
##########################################################
org1.example.com
org2.example.com
Using configtxgen -> /home/coolguy/GoDownload/src/github.com/hyperledger/fabric/examples/e2e_cli/../../release/linux-amd64/bin/configtxgen
##########################################################
######### Generating Orderer Genesis block ##############
##########################################################
2018-10-07 16:51:36.825 CST [common/configtx/tool] main -> INFO 001 Loading configuration
2018-10-07 16:51:36.847 CST [common/configtx/tool] doOutputBlock -> INFO 002 Generating genesis block
2018-10-07 16:51:36.848 CST [common/configtx/tool] doOutputBlock -> INFO 003 Writing genesis block
#################################################################
### Generating channel configuration transaction 'channel.tx' ###
#################################################################
2018-10-07 16:51:36.856 CST [common/configtx/tool] main -> INFO 001 Loading configuration
2018-10-07 16:51:36.858 CST [common/configtx/tool] doOutputChannelCreateTx -> INFO 002 Generating new channel configtx
2018-10-07 16:51:36.859 CST [common/configtx/tool] doOutputChannelCreateTx -> INFO 003 Writing new channel tx
#################################################################
####### Generating anchor peer update for Org1MSP ##########
#################################################################
2018-10-07 16:51:36.867 CST [common/configtx/tool] main -> INFO 001 Loading configuration
2018-10-07 16:51:36.869 CST [common/configtx/tool] doOutputAnchorPeersUpdate -> INFO 002 Generating anchor peer update
2018-10-07 16:51:36.869 CST [common/configtx/tool] doOutputAnchorPeersUpdate -> INFO 003 Writing anchor peer update
#################################################################
####### Generating anchor peer update for Org2MSP ##########
#################################################################
2018-10-07 16:51:36.878 CST [common/configtx/tool] main -> INFO 001 Loading configuration
2018-10-07 16:51:36.881 CST [common/configtx/tool] doOutputAnchorPeersUpdate -> INFO 002 Generating anchor peer update
2018-10-07 16:51:36.881 CST [common/configtx/tool] doOutputAnchorPeersUpdate -> INFO 003 Writing anchor peer update
Creating orderer.example.com ... done
Creating peer1.org2.example.com ... done
Creating peer0.org1.example.com ... done
Creating peer0.org2.example.com ... done
Creating peer1.org1.example.com ... done
Creating cli ... done
____ _____ _ ____ _____ _____ ____ _____
/ ___| |_ _| / \ | _ \ |_ _| | ____| |___ \ | ____|
\___ \ | | / _ \ | |_) | | | _____ | _| __) | | _|
___) | | | / ___ \ | _ < | | |_____| | |___ / __/ | |___
|____/ |_| /_/ \_\ |_| \_\ |_| |_____| |_____| |_____|
Channel name : mychannel
Creating channel...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org1MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
2018-10-07 08:51:44.349 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-10-07 08:51:44.349 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-10-07 08:51:44.352 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2018-10-07 08:51:44.352 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP
2018-10-07 08:51:44.352 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity
2018-10-07 08:51:44.352 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP
2018-10-07 08:51:44.352 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity
2018-10-07 08:51:44.352 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0A8C060A074F7267314D53501280062D...53616D706C65436F6E736F727469756D
2018-10-07 08:51:44.352 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: 4FD77064CA529DACE137AE5E07F28B4056CCDFBC9AB85EEC7A2173651028E5C2
2018-10-07 08:51:44.352 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP
2018-10-07 08:51:44.352 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity
2018-10-07 08:51:44.352 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP
2018-10-07 08:51:44.352 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity
2018-10-07 08:51:44.352 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0AC3060A1508021A0608A092E7DD0522...03C5103844792FA85DEEBA8A0FA5A392
2018-10-07 08:51:44.352 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: 9C71D941A1580E5811B11FCE410DC96F13C061F11FB026E0BD13D17B227F20A0
2018-10-07 08:51:44.398 UTC [msp] GetLocalMSP -> DEBU 010 Returning existing local MSP
2018-10-07 08:51:44.398 UTC [msp] GetDefaultSigningIdentity -> DEBU 011 Obtaining default signing identity
2018-10-07 08:51:44.398 UTC [msp] GetLocalMSP -> DEBU 012 Returning existing local MSP
2018-10-07 08:51:44.398 UTC [msp] GetDefaultSigningIdentity -> DEBU 013 Obtaining default signing identity
2018-10-07 08:51:44.398 UTC [msp/identity] Sign -> DEBU 014 Sign: plaintext: 0AC3060A1508021A0608A092E7DD0522...0DE032BBDD9C12080A021A0012021A00
2018-10-07 08:51:44.398 UTC [msp/identity] Sign -> DEBU 015 Sign: digest: 578C10A5AD7F105AB7E9BA5EDA03BB31318FB70B1CE00B9D4A63451DB194BCA8
2018-10-07 08:51:44.399 UTC [channelCmd] readBlock -> DEBU 016 Got status:*orderer.DeliverResponse_Status
2018-10-07 08:51:44.399 UTC [msp] GetLocalMSP -> DEBU 017 Returning existing local MSP
2018-10-07 08:51:44.399 UTC [msp] GetDefaultSigningIdentity -> DEBU 018 Obtaining default signing identity
2018-10-07 08:51:44.402 UTC [channelCmd] InitCmdFactory -> INFO 019 Endorser and orderer connections initialized
2018-10-07 08:51:44.603 UTC [msp] GetLocalMSP -> DEBU 01a Returning existing local MSP
2018-10-07 08:51:44.604 UTC [msp] GetDefaultSigningIdentity -> DEBU 01b Obtaining default signing identity
2018-10-07 08:51:44.604 UTC [msp] GetLocalMSP -> DEBU 01c Returning existing local MSP
2018-10-07 08:51:44.604 UTC [msp] GetDefaultSigningIdentity -> DEBU 01d Obtaining default signing identity
2018-10-07 08:51:44.605 UTC [msp/identity] Sign -> DEBU 01e Sign: plaintext: 0AC3060A1508021A0608A092E7DD0522...B59FD62843D512080A021A0012021A00
2018-10-07 08:51:44.605 UTC [msp/identity] Sign -> DEBU 01f Sign: digest: 09DA1B505436A8A70AAA75FED6879B832348804F0036781D01E1E7B5E3379488
2018-10-07 08:51:44.631 UTC [channelCmd] readBlock -> DEBU 020 Received block:0
2018-10-07 08:51:44.633 UTC [main] main -> INFO 021 Exiting.....
===================== Channel "mychannel" is created successfully =====================
Having all peers join the channel...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org1MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
2018-10-07 08:51:44.744 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-10-07 08:51:44.744 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-10-07 08:51:44.746 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2018-10-07 08:51:44.746 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0A8A070A5C08011A0C08A092E7DD0510...D4C20E796F471A080A000A000A000A00
2018-10-07 08:51:44.746 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: 5DD27FCF9B21AF126B042206E0EB98490632FF89576D8B7C4D0B199E2517D78B
2018-10-07 08:51:45.012 UTC [channelCmd] executeJoin -> INFO 006 Peer joined the channel!
2018-10-07 08:51:45.012 UTC [main] main -> INFO 007 Exiting.....
===================== PEER0 joined on the channel "mychannel" =====================
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org1MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer1.org1.example.com:7051
2018-10-07 08:51:47.173 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-10-07 08:51:47.173 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-10-07 08:51:47.176 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2018-10-07 08:51:47.176 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0A89070A5B08011A0B08A392E7DD0510...D4C20E796F471A080A000A000A000A00
2018-10-07 08:51:47.176 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: 5B83F2A6669A44E0276852749EC80892D48B62A3083CEA3E5B78F9E2F05D89CE
2018-10-07 08:51:47.423 UTC [channelCmd] executeJoin -> INFO 006 Peer joined the channel!
2018-10-07 08:51:47.423 UTC [main] main -> INFO 007 Exiting.....
===================== PEER1 joined on the channel "mychannel" =====================
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org2MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/[email protected]/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org2.example.com:7051
2018-10-07 08:51:49.475 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-10-07 08:51:49.475 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-10-07 08:51:49.477 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2018-10-07 08:51:49.477 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0A86070A5C08011A0C08A592E7DD0510...D4C20E796F471A080A000A000A000A00
2018-10-07 08:51:49.477 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: FF9010A119C6F14E348C9F25010078826908F5A5E4E1F1DB89FE983646A2BE3D
2018-10-07 08:51:49.686 UTC [channelCmd] executeJoin -> INFO 006 Peer joined the channel!
2018-10-07 08:51:49.686 UTC [main] main -> INFO 007 Exiting.....
===================== PEER2 joined on the channel "mychannel" =====================
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org2MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/[email protected]/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer1.org2.example.com:7051
2018-10-07 08:51:51.739 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-10-07 08:51:51.739 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-10-07 08:51:51.742 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2018-10-07 08:51:51.742 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0A86070A5C08011A0C08A792E7DD0510...D4C20E796F471A080A000A000A000A00
2018-10-07 08:51:51.742 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: 7850CBE1DAF6DB5F9AF02928C12FFCAE998645E5D04F838C1B8F9FA64E4C667E
2018-10-07 08:51:51.947 UTC [channelCmd] executeJoin -> INFO 006 Peer joined the channel!
2018-10-07 08:51:51.947 UTC [main] main -> INFO 007 Exiting.....
===================== PEER3 joined on the channel "mychannel" =====================
Updating anchor peers for org1...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org1MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
2018-10-07 08:51:54.083 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-10-07 08:51:54.083 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-10-07 08:51:54.086 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2018-10-07 08:51:54.087 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP
2018-10-07 08:51:54.087 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity
2018-10-07 08:51:54.087 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP
2018-10-07 08:51:54.087 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity
2018-10-07 08:51:54.087 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0A8C060A074F7267314D53501280062D...72731200220A0A0641646D696E731200
2018-10-07 08:51:54.087 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: EADD2B636A6FA2FDED100B6FC5AB9D0000186B9BBFB5D179A7FFF715C640F5B4
2018-10-07 08:51:54.087 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP
2018-10-07 08:51:54.087 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity
2018-10-07 08:51:54.087 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP
2018-10-07 08:51:54.087 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity
2018-10-07 08:51:54.087 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0AC3060A1508021A0608AA92E7DD0522...BED4574AD6A64BFEB223A073C0D59877
2018-10-07 08:51:54.087 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: EEE0AEFD2D4C1438E602F4A7F25F3A7B1CF50A2ABB74A1079C818E4CD1649066
2018-10-07 08:51:54.104 UTC [main] main -> INFO 010 Exiting.....
===================== Anchor peers for org "Org1MSP" on "mychannel" is updated successfully =====================
Updating anchor peers for org2...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org2MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/[email protected]/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org2.example.com:7051
2018-10-07 08:51:59.261 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-10-07 08:51:59.261 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-10-07 08:51:59.263 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2018-10-07 08:51:59.264 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP
2018-10-07 08:51:59.264 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity
2018-10-07 08:51:59.264 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP
2018-10-07 08:51:59.264 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity
2018-10-07 08:51:59.264 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0A88060A074F7267324D535012FC052D...731200220B0A07526561646572731200
2018-10-07 08:51:59.264 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: 4EE1D6576D75C68BC69B8D9A2DA4AA030020A1DE75F5C45A5462F8060BD9BAA7
2018-10-07 08:51:59.264 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP
2018-10-07 08:51:59.264 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity
2018-10-07 08:51:59.264 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP
2018-10-07 08:51:59.264 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity
2018-10-07 08:51:59.264 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0ABF060A1508021A0608AF92E7DD0522...AB59C20FFCB8F19AE6BE96A20A2E0494
2018-10-07 08:51:59.264 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: 5E14BBFA7FEAE2968F3FBE64DCD82DD863B01B983672A6F6076075C202ECCA21
2018-10-07 08:51:59.281 UTC [main] main -> INFO 010 Exiting.....
===================== Anchor peers for org "Org2MSP" on "mychannel" is updated successfully =====================
Installing chaincode on org1/peer0...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org1MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
2018-10-07 08:52:04.439 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-10-07 08:52:04.439 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-10-07 08:52:04.439 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-10-07 08:52:04.439 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-10-07 08:52:04.574 UTC [golang-platform] getCodeFromFS -> DEBU 005 getCodeFromFS github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02
2018-10-07 08:52:04.708 UTC [golang-platform] func1 -> DEBU 006 Discarding GOROOT package fmt
2018-10-07 08:52:04.708 UTC [golang-platform] func1 -> DEBU 007 Discarding provided package github.com/hyperledger/fabric/core/chaincode/shim
2018-10-07 08:52:04.708 UTC [golang-platform] func1 -> DEBU 008 Discarding provided package github.com/hyperledger/fabric/protos/peer
2018-10-07 08:52:04.708 UTC [golang-platform] func1 -> DEBU 009 Discarding GOROOT package strconv
2018-10-07 08:52:04.708 UTC [golang-platform] GetDeploymentPayload -> DEBU 00a done
2018-10-07 08:52:04.710 UTC [msp/identity] Sign -> DEBU 00b Sign: plaintext: 0A8A070A5C08031A0C08B492E7DD0510...175DFF090000FFFF7C012598002C0000
2018-10-07 08:52:04.710 UTC [msp/identity] Sign -> DEBU 00c Sign: digest: 5F51CA48CC4632ABDC485E389A7358941D9A642F057F439706D5E7CDE1BA0C86
2018-10-07 08:52:04.713 UTC [chaincodeCmd] install -> DEBU 00d Installed remotely response:<status:200 payload:"OK" >
2018-10-07 08:52:04.713 UTC [main] main -> INFO 00e Exiting.....
===================== Chaincode is installed on remote peer PEER0 =====================
Install chaincode on org2/peer2...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org2MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/[email protected]/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org2.example.com:7051
2018-10-07 08:52:04.747 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-10-07 08:52:04.747 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-10-07 08:52:04.747 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-10-07 08:52:04.747 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-10-07 08:52:04.788 UTC [golang-platform] getCodeFromFS -> DEBU 005 getCodeFromFS github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02
2018-10-07 08:52:04.972 UTC [golang-platform] func1 -> DEBU 006 Discarding GOROOT package fmt
2018-10-07 08:52:04.972 UTC [golang-platform] func1 -> DEBU 007 Discarding provided package github.com/hyperledger/fabric/core/chaincode/shim
2018-10-07 08:52:04.972 UTC [golang-platform] func1 -> DEBU 008 Discarding provided package github.com/hyperledger/fabric/protos/peer
2018-10-07 08:52:04.972 UTC [golang-platform] func1 -> DEBU 009 Discarding GOROOT package strconv
2018-10-07 08:52:04.973 UTC [golang-platform] GetDeploymentPayload -> DEBU 00a done
2018-10-07 08:52:04.974 UTC [msp/identity] Sign -> DEBU 00b Sign: plaintext: 0A86070A5C08031A0C08B492E7DD0510...175DFF090000FFFF7C012598002C0000
2018-10-07 08:52:04.974 UTC [msp/identity] Sign -> DEBU 00c Sign: digest: 4047B5B959EC03887E36581C3B70D53249D8A61BBE2D5730ADA048BF56559281
2018-10-07 08:52:04.977 UTC [chaincodeCmd] install -> DEBU 00d Installed remotely response:<status:200 payload:"OK" >
2018-10-07 08:52:04.977 UTC [main] main -> INFO 00e Exiting.....
===================== Chaincode is installed on remote peer PEER2 =====================
Instantiating chaincode on org2/peer2...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org2MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/[email protected]/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org2.example.com:7051
2018-10-07 08:52:05.022 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-10-07 08:52:05.022 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-10-07 08:52:05.023 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-10-07 08:52:05.023 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-10-07 08:52:05.024 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0A90070A6608031A0B08B592E7DD0510...324D53500A04657363630A0476736363
2018-10-07 08:52:05.024 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: D6EE98D5D9A96FDBFAFEA16808E367737C4695E08EE0D2D54F781A9A3A70ADEF
2018-10-07 08:52:28.717 UTC [msp/identity] Sign -> DEBU 007 Sign: plaintext: 0A90070A6608031A0B08B592E7DD0510...DC0C6F3B0BAE8069CD02977B6DDF4E15
2018-10-07 08:52:28.717 UTC [msp/identity] Sign -> DEBU 008 Sign: digest: 3F4782991256AF682F6568E510C426D3F1EDEBA521DF225B3AD6802DF8F826F8
2018-10-07 08:52:28.726 UTC [main] main -> INFO 009 Exiting.....
===================== Chaincode Instantiation on PEER2 on channel 'mychannel' is successful =====================
Querying chaincode on org1/peer0...
===================== Querying on PEER0 on channel 'mychannel'... =====================
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org1MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
Attempting to Query PEER0 ...3 secs
2018-10-07 08:52:31.919 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-10-07 08:52:31.919 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-10-07 08:52:31.919 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-10-07 08:52:31.919 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-10-07 08:52:31.919 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0A95070A6708031A0C08CF92E7DD0510...6D7963631A0A0A0571756572790A0161
2018-10-07 08:52:31.919 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: FCE2EE0FD6D3388F816DB98181DC715167139EC1F27AD53F970EBFD6983B1C26
Query Result: 100
2018-10-07 08:52:46.824 UTC [main] main -> INFO 007 Exiting.....
===================== Query on PEER0 on channel 'mychannel' is successful =====================
Sending invoke transaction on org1/peer0...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org1MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
2018-10-07 08:52:46.995 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-10-07 08:52:46.995 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-10-07 08:52:46.997 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-10-07 08:52:46.997 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-10-07 08:52:46.997 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0A95070A6708031A0C08DE92E7DD0510...696E766F6B650A01610A01620A023130
2018-10-07 08:52:46.997 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: ABDDFE06E76A987829C82889B349C28C6AF25D34C7B6F4185DE7DD28422B5863
2018-10-07 08:52:47.002 UTC [msp/identity] Sign -> DEBU 007 Sign: plaintext: 0A95070A6708031A0C08DE92E7DD0510...FA2C92EEEC94B4870DAE69C4914FC6E3
2018-10-07 08:52:47.002 UTC [msp/identity] Sign -> DEBU 008 Sign: digest: 39C0185D08616DA727489D5975CE89CCA40521266338A4E54F89FBDA73436EF5
2018-10-07 08:52:47.004 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> DEBU 009 ESCC invoke result: version:1 response:<status:200 message:"OK" > payload:"\n \020\222\257X\023\227\367U[\355\346\261\032\245`^\301\210\305\223\312#\350=\256\227p\240\243d\262\316\022Y\nE\022\024\n\004lscc\022\014\n\n\n\004mycc\022\002\010\003\022-\n\004mycc\022%\n\007\n\001a\022\002\010\003\n\007\n\001b\022\002\010\003\032\007\n\001a\032\00290\032\010\n\001b\032\003210\032\003\010\310\001\"\013\022\004mycc\032\0031.0" endorsement:<endorser:"\n\007Org1MSP\022\200\006-----BEGIN -----\nMIICGjCCAcCgAwIBAgIRAJeT5Vy1Qd0TdReunGf6h6wwCgYIKoZIzj0EAwIwczEL\nMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG\ncmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhhbXBsZS5jb20xHDAaBgNVBAMTE2Nh\nLm9yZzEuZXhhbXBsZS5jb20wHhcNMTgxMDA3MDg1MTM2WhcNMjgxMDA0MDg1MTM2\nWjBbMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMN\nU2FuIEZyYW5jaXNjbzEfMB0GA1UEAxMWcGVlcjAub3JnMS5leGFtcGxlLmNvbTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABM77rFBAQu40Kg47q0vncrgZXxZIszH/\nW0AjQ7MGAtK8awN6yIeUO/JiBt1ZCrlOlQ/WJ5o2FvO138E2tj5on9GjTTBLMA4G\nA1UdDwEB/wQEAwIHgDAMBgNVHRMBAf8EAjAAMCsGA1UdIwQkMCKAIBXlELpXnl5o\nnaZh1XMKcbs8G+KM5bfpolPfZusPz7sDMAoGCCqGSM49BAMCA0gAMEUCIQDHspZa\nloCJVNR9Mra/IAE3DrKtyHVtIXUKc62ekg710QIgIvB+LMWt/8s8JsmAJxn69fEU\nk4zscYP7fi2lmeuMhXM=\n-----END -----\n" signature:"0E\002!\000\212\374\354\321?\032\035\234M%\212\335\362\027\354\301:\324\355\261\230\217Y\362>\022,\240\274\3217\024\002 p\230=\241\304f`\337\[email protected]\312\342\313\230\372\027\372,\222\356\354\224\264\207\r\256i\304\221O\306\343" >
2018-10-07 08:52:47.004 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> INFO 00a Chaincode invoke successful. result: status:200
2018-10-07 08:52:47.004 UTC [main] main -> INFO 00b Exiting.....
===================== Invoke transaction on PEER0 on channel 'mychannel' is successful =====================
Installing chaincode on org2/peer3...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org2MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/[email protected]/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer1.org2.example.com:7051
2018-10-07 08:52:47.041 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-10-07 08:52:47.041 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-10-07 08:52:47.041 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-10-07 08:52:47.041 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-10-07 08:52:47.083 UTC [golang-platform] getCodeFromFS -> DEBU 005 getCodeFromFS github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02
2018-10-07 08:52:47.191 UTC [golang-platform] func1 -> DEBU 006 Discarding GOROOT package fmt
2018-10-07 08:52:47.191 UTC [golang-platform] func1 -> DEBU 007 Discarding provided package github.com/hyperledger/fabric/core/chaincode/shim
2018-10-07 08:52:47.191 UTC [golang-platform] func1 -> DEBU 008 Discarding provided package github.com/hyperledger/fabric/protos/peer
2018-10-07 08:52:47.191 UTC [golang-platform] func1 -> DEBU 009 Discarding GOROOT package strconv
2018-10-07 08:52:47.191 UTC [golang-platform] GetDeploymentPayload -> DEBU 00a done
2018-10-07 08:52:47.193 UTC [msp/identity] Sign -> DEBU 00b Sign: plaintext: 0A85070A5B08031A0B08DF92E7DD0510...175DFF090000FFFF7C012598002C0000
2018-10-07 08:52:47.193 UTC [msp/identity] Sign -> DEBU 00c Sign: digest: 2A0724DBFBDCE0CEB1384631E47C53E133FA6A5FA4B1DC4FE650756E64C9DAAE
2018-10-07 08:52:47.195 UTC [chaincodeCmd] install -> DEBU 00d Installed remotely response:<status:200 payload:"OK" >
2018-10-07 08:52:47.195 UTC [main] main -> INFO 00e Exiting.....
===================== Chaincode is installed on remote peer PEER3 =====================
Querying chaincode on org2/peer3...
===================== Querying on PEER3 on channel 'mychannel'... =====================
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org2MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/[email protected]/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer1.org2.example.com:7051
Attempting to Query PEER3 ...3 secs
2018-10-07 08:52:50.344 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-10-07 08:52:50.344 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-10-07 08:52:50.344 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-10-07 08:52:50.344 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-10-07 08:52:50.344 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0A91070A6708031A0C08E292E7DD0510...6D7963631A0A0A0571756572790A0161
2018-10-07 08:52:50.344 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: 28B564E8B4E28322589E9713FF9C2CFEB59937B2481C389F8688602015D56893
Query Result: 90
2018-10-07 08:53:05.667 UTC [main] main -> INFO 007 Exiting.....
===================== Query on PEER3 on channel 'mychannel' is successful =====================
===================== All GOOD, End-2-End execution completed =====================
_____ _ _ ____ _____ ____ _____
| ____| | \ | | | _ \ | ____| |___ \ | ____|
| _| | \| | | | | | _____ | _| __) | | _|
| |___ | |\ | | |_| | |_____| | |___ / __/ | |___
|_____| |_| \_| |____/ |_____| |_____| |_____|
相關推薦
快速搭建一個Fabric 1.0的環境時的坑
在 執行到第六步時老是說連線不上: [email protected]:~/GoDownload/src/github.com/hyperledger/fabric/examples/e2e_cli$ source download-dockerim
快速搭建一個Fabric 1.0的環境
之前筆者寫了一篇Fabric1.0 Beta的部署和Fabric 1.0的多機部署。但是很多人在部署Fabric的時候還是很容易出問題,所以我就再把Fabric 1.0的單機環境搭建講一下。其實很多內容和前面部落格相同。下面開始我們的環境搭建工作: 1. 使用VirtualBox並在其中安裝好Ubuntu
hyperledger fabric 1.0環境搭建出錯記錄
cp: cannot stat 'build/docker/gotools/bin/protoc-gen-go': No such file or directory(找不到protoc-gen-go檔案) 編譯生成 protoc-gen-go #編譯生成 protoc-g
超級記賬本學習筆記:Hyperledger Fabric 1.0環境搭建,及執行e2e的問題
Cannot run peer because cannot init crypto, missing /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[ema
Linux新手安裝Ubuntu 16.04之後,如何快速搭建一個舒服的開發環境
然後將下面的程式碼新增多你的~/.bash_檔案中: export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}} export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64${LD_LIBRARY_PATH:+
在Ubuntu 16.04 上搭建Hyperledger Fabric 1.0
2017-05-16 17:08:01.366 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2017-05-16 17:08:01.366 UTC [msp] GetDefaultSigningIdentity ->
超級記賬本:快速搭建一個Hyperledger Fabric 1.0的環境 (親測有效)
下面開始我們的環境搭建工作: 1. 使用VirtualBox並在其中安裝好Ubuntu 這一步其實沒啥好說的,下載好最新版的VirtualBox,下載Ubuntu Server,我用的是Ubuntu16.04.2 X64 Server。在安裝完Ubuntu後,需要保證apt source是國內的,不然如
【區塊鏈】1 HyperLedger快速搭建一個Fabric1.0環境 執行測試e2e_cli專案
1 Ubuntu環境搭建(win7 64位 + VMWare14 + Ubuntu16.04) 2 Docker安裝 首先sudo apt install curl 使用阿里提供的映象進行Docker的安裝,輸入curl -fsSL https://
Hyperledger Fabric 1.0 快速搭建 -------- 多機部署 核心共識節點Orderer
前言 在這裡我推薦兩位大神的部落格,可以參考或者直接跟著這兩位大神學習,我是閱讀這兩位大神的部落格和《深度探索區塊鏈Hyperledger技術與應用》一書部署的 《深度探索區塊鏈Hyperledger技術與應用》作者:張增駿、董寧、朱軒彤、陳劍雄 著。 上一篇
ubuntu18.04搭建Hyperledger-fabric 1.1.0開發環境
Hyperledger-fabric 1.1.0更新已經兩三個月了,ubuntu18.04也更新了快一個月了。今天在ubuntu18. 04上進行了Hyperledger-fabric 1.1.0的環境搭建,現在把過程記錄下來。 Go語言環境 下載Go環
Hyperledger Fabric 1.0 實戰開發系列 第二課 Fabric環境搭建
一.安裝GO語言 下載最新版的go 開啟Terminal,輸入命令(以下命令都是以root管理員的角色進行的) su 輸入密碼:***** wget https://storage.googleapi
Hyperledger Fabric 1.0 快速搭建 -------- 多機部署準備篇
前言 在這裡我推薦兩位大神的部落格,可以參考或者直接跟著這兩位大神學習,我是閱讀這兩位大神的部落格和《深度探索區塊鏈Hyperledger技術與應用》一書部署的 《深度探索區塊鏈Hyperledger技術與應用》作者:張增駿、董寧、朱軒彤、陳劍雄 著。 在前兩
Hyperledger Fabric 1.0 從零開始(二)——公網環境構建
1.3 項目 htm move 自己 lvm2 fast 情況 tor 1:環境構建 在本文中用到的宿主機環境是Centos ,版本為Centos.x86_647.2,通過Docker 容器來運行Fabric的節點,版本為v1.0。因此,啟動Fabric網絡中的節點需要先安
windows下9款一鍵快速搭建PHP本地運行環境的好工具(含php7.0環境)
home sns web服務 sof web zend 服務 mysql php 推薦幾款一鍵快速搭建PHP本地運行環境的好工具(含php7.0及apache,nigix,mysql) 首推phpstudy2016和wampServer3.0.6 理由支持php7.
mac 搭建第一個區塊鏈網路 fabric 1.0-beta
花了快兩天才搭好第一個區塊鏈網路,踩過很多坑,有慢慢找到解決辦法的,也有推到重來的。現在進入正題。 1 安裝過程 1.1 安裝brew Linux不同版本的系統中有很多線上安裝工
VS2013+OpenCV3.1.0環境搭建
文章目錄 本人環境 1. 下載原始碼 2. 新增環境變數 3. 新建工程 4. 測試 處理警告資訊 本人環境 Win10+64位+VS2013+Opencv3.1.0(只要環境變數和庫目錄配
Hyperledger Fabric 1.0網路搭建
自己組建一個Fabric網路, 網路結構如下: 排序節點 1 個 組織個數 2 個, 分別為go和cpp, 每個組織分別有兩個peer節點, 使用者個數為3 機構名稱 組織識別符號 組織ID Go學科 org_go OrgGoMSP CP
快速搭建一個自己的伺服器詳解(java環境)
一. 伺服器的購買 1. 我選擇的是阿里雲的伺服器,學生價9.5元一個月,百度直接搜尋阿里雲,然後點選右上角登入,推薦大家用支付寶掃碼登入,方便快捷。阿里雲官網的東西比較多,登入後我找了很久也沒有找到學生伺服器在哪裡賣,最後在諮詢裡找到了這個網址,https://pro
在不到1G記憶體機器上快速搭建一個hadoop環境
摘要:我們在很多情況下只需要一個配置極簡但具備所有功能的hadoop來做一些探索或者調查性等工作,雖然這時候的hadoop不具有生產環境下的強大配置和工業級的可靠性和穩定性但是它的可工作和可執行性已經足夠。本文目的是在一個只有1核,cpu頻率不到 1.8G,記憶體1G的機器
在Linux環境下快速搭建一個javaweb專案網站(阿里雲ubuntu)
前言: 完成一個web專案或者完成了自己部落格的編輯之後,迫切想釋出都網際網路上,展示自己一下。 這裡主要介紹javaweb專案如何快速放在伺服器上,並且釋出至網際網路。 1、前期裝備。 主要是申請伺服器,配置ftp\ssh環境,配置tomcat伺服