【发布时间】:2018-12-20 19:30:23
【问题描述】:
这个问题与First network in hyperledger 类似,只是我尝试运行此处描述的自动化脚本:http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html,而不是手动执行步骤。
当我运行提供的脚本时,我得到以下输出:
Build your first network (BYFN) end-to-end test
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/Admin@org1.example.com/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
2017-08-14 16:41:43.613 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2017-08-14 16:41:43.613 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2017-08-14 16:41:43.620 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2017-08-14 16:41:43.622 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP
2017-08-14 16:41:43.622 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity
2017-08-14 16:41:43.622 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP
2017-08-14 16:41:43.622 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity
2017-08-14 16:41:43.622 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0A8C060A074F7267314D53501280062D...53616D706C65436F6E736F727469756D
2017-08-14 16:41:43.622 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: 19B305348F751FF3B0C1B71929C28A1C70F05748093E5A68E7DED43F7C3619ED
2017-08-14 16:41:43.622 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP
2017-08-14 16:41:43.622 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity
2017-08-14 16:41:43.622 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP
2017-08-14 16:41:43.622 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity
2017-08-14 16:41:43.622 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0AC3060A1508021A0608C7A5C7CC0522...E601917DB4E717688C2A98F6A85BB2C8
2017-08-14 16:41:43.622 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: 6C4EDDCB459279CFBB9D696D2179A95D00FE85F80E01375E94D4A66A50A9ABF5
Error: Got unexpected status: BAD_REQUEST
为了解决这个问题,我回到了开头,删除了所有 docker 容器和图像,并在下载平台特定的图像二进制文件步骤重新启动了该过程:
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap-1.0.1.sh | bash
===> Please note, google shortened URL (goo.gl/eYdRbX) ran afoul of the stackoverflow editor, so has been replaced with the URL to which it points
无论如何,在第一个网络设置过程的同一点,我仍然收到相同的 BAD_REQUEST 响应。在我能解决这个问题之前,我完全停滞不前。
我确实注意到,在这个脚本的顶部,正在创建不同的 docker 图像,create cli 出现了两次,稍后是“重新创建 cli”。不知道这是否与这个问题有关。
Creating network "net_byfn" with the default driver
Creating peer1.org2.example.com ...
Creating peer1.org1.example.com ...
Creating peer0.org2.example.com ...
Creating peer0.org1.example.com ...
Creating orderer.example.com ...
Creating peer1.org2.example.com
Creating peer0.org2.example.com
Creating peer1.org1.example.com
Creating orderer.example.com
Creating peer1.org1.example.com ... done
Creating cli ...
Creating cli ... done
WARNING: The DELAY variable is not set. Defaulting to a blank string.
peer1.org1.example.com is up-to-date
peer0.org2.example.com is up-to-date
orderer.example.com is up-to-date
peer1.org2.example.com is up-to-date
peer0.org1.example.com is up-to-date
Recreating cli ...
Recreating cli ... done
docker ps -a 执行 load from (goo.gl/eYdRbX) 后的结果 ):
===> List out hyperledger docker images
hyperledger/fabric-ca latest 5f30bda5f7ee 4 days ago 238MB
hyperledger/fabric-ca x86_64-1.0.1 5f30bda5f7ee 4 days ago 238MB
hyperledger/fabric-tools latest 259847d24868 4 days ago 1.34GB
hyperledger/fabric-tools x86_64-1.0.1 259847d24868 4 days ago 1.34GB
hyperledger/fabric-couchdb latest dd645e1e92c7 4 days ago 1.48GB
hyperledger/fabric-couchdb x86_64-1.0.1 dd645e1e92c7 4 days ago 1.48GB
hyperledger/fabric-kafka latest cbdc916590a0 4 days ago 1.3GB
hyperledger/fabric-kafka x86_64-1.0.1 cbdc916590a0 4 days ago 1.3GB
hyperledger/fabric-zookeeper latest eb07e5cc9674 4 days ago 1.31GB
hyperledger/fabric-zookeeper x86_64-1.0.1 eb07e5cc9674 4 days ago 1.31GB
hyperledger/fabric-orderer latest bbf2708c9487 4 days ago 179MB
hyperledger/fabric-orderer x86_64-1.0.1 bbf2708c9487 4 days ago 179MB
hyperledger/fabric-peer latest abb05def5cfb 4 days ago 182MB
hyperledger/fabric-peer x86_64-1.0.1 abb05def5cfb 4 days ago 182MB
hyperledger/fabric-javaenv latest 2bd60859415d 4 days ago 1.42GB
hyperledger/fabric-javaenv x86_64-1.0.1 2bd60859415d 4 days ago 1.42GB
hyperledger/fabric-ccenv latest 7e2019cf8174 4 days ago 1.29GB
hyperledger/fabric-ccenv x86_64-1.0.1 7e2019cf8174 4 days ago 1.29GB
docker ps 结果:
c6025a23ab46 hyperledger/fabric-tools "/bin/bash -c './s..." 13 seconds ago Up 11 seconds cli
a132bd2f4fed hyperledger/fabric-peer "peer node start" 27 seconds ago Up 25 seconds 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0.org1.example.com
a9e9078c381c hyperledger/fabric-orderer "orderer" 27 seconds ago Up 26 seconds 0.0.0.0:7050->7050/tcp orderer.example.com
48768f75bcb0 hyperledger/fabric-peer "peer node start" 27 seconds ago Up 26 seconds 0.0.0.0:9051->7051/tcp, 0.0.0.0:9053->7053/tcp peer0.org2.example.com
bb14fd33c8a2 hyperledger/fabric-peer "peer node start" 27 seconds ago Up 26 seconds 0.0.0.0:10051->7051/tcp, 0.0.0.0:10053->7053/tcp peer1.org2.example.com
f20582c065a0 hyperledger/fabric-peer "peer node start" 27 seconds ago Up 25 seconds 0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp peer1.org1.example.com
【问题讨论】:
-
你能分享一下“docker ps”的输出吗?