docker - Chaincode for Developers Cli error terminal 3 -




i trying deploy chaincode using chain code developers tutorial "http://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html". able complete steps till terminal 2 error in command "docker exec -it cli bash" terminal 3.

output terminal 1:

[]received message register shim peer | 2017-08-22 23:29:26.025 utc [chaincode] handlemessage -> debu 1a9 []fabric side handling chaincodemessage of type: register in state created peer | 2017-08-22 23:29:26.025 utc [chaincode] beforeregisterevent -> debu 1aa received register in state created peer | 2017-08-22 23:29:26.025 utc [chaincode] registerhandler -> debu 1ab registered handler complete chaincode mycc:0 peer | 2017-08-22 23:29:26.025 utc [chaincode] beforeregisterevent -> debu 1ac got register chaincodeid = name:"mycc:0" , sending registered peer | 2017-08-22 23:29:26.025 utc [chaincode] notifyduringstartup -> debu 1ad nothing notify (dev mode ?) peer | 2017-08-22 23:29:26.025 utc [chaincode] notifyduringstartup -> debu 1ae sending ready peer | 2017-08-22 23:29:26.025 utc [chaincode] processstream -> debu 1af []move state message ready peer | 2017-08-22 23:29:26.025 utc [chaincode] handlemessage -> debu 1b0 []fabric side handling chaincodemessage of type: ready in state established peer | 2017-08-22 23:29:26.026 utc [chaincode] enterreadystate -> debu 1b1 []entered state ready peer | 2017-08-22 23:29:26.026 utc [chaincode] notify -> debu 1b2 notifier txid: not exist peer | 2017-08-22 23:29:26.026 utc [chaincode] processstream -> debu 1b3 []sending state message ready

output terminal 2:

core_peer_address=peer:7051 core_chaincode_id_name=mycc:0 ./sacc 2017-08-22 23:29:26.020 utc [shim] setupchaincodelogging -> info 001 chaincode log level not provided; defaulting to: info 2017-08-22 23:29:26.020 utc [shim] setupchaincodelogging -> info 002 chaincode (build level: ) starting ...

output terminal 3:

docker exec -it cli bash error response daemon: container 37efeab8d4930060c9de46d3bab9ab1ab034781be26b4a5176b80b54d6c1180b not running

i couldn't find resolution this. can me? using macos x.

i uncommented line "command: /bin/bash -c './script.sh'" in yaml file.

output docker ps after terminal 1:

docker ps container id image command created status ports names befcf58f4b59 hyperledger/fabric-ccenv "/bin/bash -c 'sle..." 21 seconds ago 20 seconds chaincode 3129dac3e13b hyperledger/fabric-peer "peer node start -..." 21 seconds ago 20 seconds 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer 56a92979e7cb hyperledger/fabric-orderer "orderer" 22 seconds ago 21 seconds 0.0.0.0:7050->7050/tcp orderer

output docker ps after terminal 2:

docker ps container id image command created status ports names befcf58f4b59 hyperledger/fabric-ccenv "/bin/bash -c 'sle..." 2 minutes ago 2 minutes chaincode 3129dac3e13b hyperledger/fabric-peer "peer node start -..." 2 minutes ago 2 minutes 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer 56a92979e7cb hyperledger/fabric-orderer "orderer" 2 minutes ago 2 minutes 0.0.0.0:7050->7050/tcp orderer

cli error while running .yaml file:

returning dummy reject policy because admins not found in /application/admins orderer | 2017-08-23 23:09:50.644 utc [policies] getpolicy -> debu 154 returning policy readers evaluation orderer | 2017-08-23 23:09:50.644 utc [policies] getpolicy -> debu 155 returning dummy reject policy because readers not found in /application/readers orderer | 2017-08-23 23:09:50.644 utc [policies] getpolicy -> debu 156 returning policy writers evaluation orderer | 2017-08-23 23:09:50.645 utc [policies] getpolicy -> debu 157 returning dummy reject policy because writers not found in /application/writers orderer | 2017-08-23 23:09:50.645 utc [common/configtx] addtomap -> debu 158 adding config map: [groups] /channel orderer | 2017-08-23 23:09:50.645 utc [common/configtx] addtomap -> debu 159 adding config map: [groups] /channel/application orderer | 2017-08-23 23:09:50.645 utc [common/configtx] addtomap -> debu 15a adding config map: [groups] /channel/application/sampleorg cli | error: got unexpected status: bad_request orderer | 2017-08-23 23:09:50.645 utc [common/configtx] addtomap -> debu 15b adding config map: [values] /channel/consortium orderer | 2017-08-23 23:09:50.645 utc [common/configtx] addtomap -> debu 15c adding config map: [groups] /channel cli | usage: cli | peer channel create [flags] cli | cli | flags: orderer | 2017-08-23 23:09:50.645 utc [common/configtx] addtomap -> debu 15d adding config map: [groups] /channel/application cli | -c, --channelid string in case of newchain command, channel id create. orderer | 2017-08-23 23:09:50.645 utc [common/configtx] addtomap -> debu 15e adding config map: [groups] /channel/application/sampleorg cli | -f, --file string configuration transaction file generated tool such configtxgen submitting orderer orderer | 2017-08-23 23:09:50.646 utc [common/configtx] addtomap -> debu 15f adding config map: [policy] /channel/application/admins cli | -t, --timeout int channel creation timeout (default 5) cli | cli | global flags: cli | --cafile string path file containing pem-encoded trusted certificate(s) ordering endpoint cli | --logging-level string default logging level , overrides, see core.yaml full syntax cli | -o, --orderer string ordering service endpoint orderer | 2017-08-23 23:09:50.646 utc [common/configtx] addtomap -> debu 160 adding config map: [policy] /channel/application/writers cli | --test.coverprofile string done (default "coverage.cov") cli | --tls use tls when communicating orderer endpoint cli | -v, --version display current version of fabric peer server cli | orderer | 2017-08-23 23:09:50.646 utc [common/configtx] addtomap -> debu 161 adding config map: [policy] /channel/application/readers orderer | 2017-08-23 23:09:50.646 utc [common/configtx] addtomap -> debu 162 adding config map: [values] /channel/consortium orderer | 2017-08-23 23:09:50.646 utc [orderer/common/broadcast] handle -> warn 163 rejecting config_update because: error authorizing update: error validating deltaset: invalid mod_policy element [policy] /channel/application/writers: mod_policy not set orderer | 2017-08-23 23:09:50.646 utc [orderer/main] func1 -> debu 164 closing broadcast stream orderer | 2017-08-23 23:09:50.648 utc [orderer/common/deliver] handle -> warn 165 error reading stream: rpc error: code = canceled desc = context canceled orderer | 2017-08-23 23:09:50.649 utc [orderer/main] func1 -> debu 166 closing deliver stream

i able solve commenting out line "command: /bin/bash -c './script.sh'" in "fabric-samples/chaincode-docker-devmode/docker-compose-simple.yaml" file.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -

python - Read npy file directly from S3 StreamingBody -