hyperledger fabric - hyperledger_fabric first-network fails with BAD_REQUEST -


this question similar first network in hyperledger except attempting run automated scripts described here: http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html rather executing steps manually.

when run supplied scripts, following output:

build 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 , 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 

in attempt resolve this, have gone beginning, removed docker containers , images , restarted process @ download platform specific image binaries step:

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 stackoverflow editor, has been replaced url points 

regardless, still same bad_request response @ same point in first-network setup process. stalled until can resolve issue.

i note @ top of script, different docker images being created, create cli appears twice, do, later 'recreating cli'. don't know if related problem or not.

creating network "net_byfn" 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: delay variable not set. defaulting blank string. peer1.org1.example.com up-to-date peer0.org2.example.com up-to-date orderer.example.com up-to-date peer1.org2.example.com up-to-date peer0.org1.example.com up-to-date recreating cli ...  recreating cli ... done 

docker ps -a results after executing load (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 results:

c6025a23ab46        hyperledger/fabric-tools     "/bin/bash -c './s..."   13 seconds ago      11 seconds                                                          cli a132bd2f4fed        hyperledger/fabric-peer      "peer node start"        27 seconds ago      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      26 seconds       0.0.0.0:7050->7050/tcp                             orderer.example.com 48768f75bcb0        hyperledger/fabric-peer      "peer node start"        27 seconds ago      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      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      25 seconds       0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp     peer1.org1.example.com 

run configtxgen --version, output 1.0.0 or 1.0.1?

version 1.0.0 doesn't include mod_policy stuff required make 1.0.1 images work, you'll need redownload tools.

if output 1.0.1, can please re-run through manually, except when bringing containers up:

channel_name=$channel_name timeout=<pick_a_value> docker-compose -f docker-compose-cli.yaml -d

make sure run without -d argument @ end, command now:

channel_name=$channel_name timeout=<pick_a_value> docker-compose -f docker-compose-cli.yaml up

this display logs in terminal. open new terminal tab , set env variables again (i.e. channel_name , fabric_cfg_path) , continue manual setup. when run channel creation command:

peer channel create -o orderer.example.com:7050 -c $channel_name -f ./channel-artifacts/channel.tx --tls $core_peer_tls_enabled --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererorganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

look @ last few lines of log on other tab , post them here.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -