Hyperledger Fabric Error Error getting myc orderer endpoint Error endorsing GetConfigBlock

0 votes

Output for command peer chaincode instantiate -n mycc -v 0 -c '{"Args":["a","10"]}' -C myc:

Error: Error getting (myc) orderer endpoint: Error endorsing GetConfigBlock: rpc error: code = Unknown desc = chaincode error (status: 500, message: "GetConfigBlock" request failed authorization check for channel [myc]: [Failed to get policy manager for channel [myc]])

Output for the command:

peer chaincode install -p chaincodedev/chaincode/sacc -n mycc -v 0

2017-08-23 15:10:21.852 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-08-23 15:10:21.852 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-08-23 15:10:21.852 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2017-08-23 15:10:21.852 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2017-08-23 15:10:21.904 UTC [golang-platform] getCodeFromFS -> DEBU 005 getCodeFromFS chaincodedev/chaincode/sacc 2017-08-23 15:10:22.080 UTC [golang-platform] func1 -> DEBU 006 Discarding GOROOT package fmt 2017-08-23 15:10:22.081 UTC [golang-platform] func1 -> DEBU 007 Discarding provided package github.com/hyperledger/fabric/core/chaincode/shim 2017-08-23 15:10:22.081 UTC [golang-platform] func1 -> DEBU 008 Discarding provided package github.com/hyperledger/fabric/protos/peer 2017-08-23 15:10:22.082 UTC [golang-platform] GetDeploymentPayload -> DEBU 009 done 2017-08-23 15:10:22.085 UTC [msp/identity] Sign -> DEBU 00a Sign: plaintext: 0AA3080A5B08031A0B08DEB5F6CC0510...DF65FC130000FFFFF65F638E00120000 2017-08-23 15:10:22.085 UTC [msp/identity] Sign -> DEBU 00b Sign: digest: 00E981BB0FC2A7D32706156C0F2E1521E5B62F58E231787D87B2CB57CD10C3FA 2017-08-23 15:10:22.089 UTC [chaincodeCmd] install -> DEBU 00c Installed remotely response: 2017-08-23 15:10:22.089 UTC [main] main -> INFO 00d Exiting.....

I had to comment out the line

command: /bin/bash -c './script.sh

in the file "docker-compose-simple.yaml to run the command

docker exec -it cli bash.

Can anyone tell me how to solve this?

Oct 31, 2018 in Blockchain by slayer
• 29,370 points
1,518 views

1 answer to this question.

0 votes

First of all please note, that during instantiate command:

peer chaincode instantiate -n mycc -v 0 -c '{"Args":["a","10"]}' -C myc

you are not pointing to the ordering service, it should be something like this:

peer chaincode instantiate -o ordererEndpoint:7050 -n mycc -v 0 -c '{"Args":["a","10"]}' -C myc

Make sure that myc is existing channel and you have correctly created it. You can simply do:

peer channel list

to retrieve a list of channels peer was joined to.

answered Oct 31, 2018 by Omkar
• 69,220 points

Related Questions In Blockchain

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,433 views
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,740 points
979 views
+1 vote
1 answer
0 votes
1 answer
0 votes
1 answer

Hyperledger Fabric: Error endorsing chaincode: rpc error

Run the following commands and try again: docker ...READ MORE

answered Oct 31, 2018 in Blockchain by Omkar
• 69,220 points
1,797 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP