Re: Peer instantiation error #fabric #fabric-sdk-node


indirajith
 

Hi Baohua, 
Me to encoutering problems during chaincode instantiation. I don't use any SDKs. Just using CLI command but I get "Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0" error. Could you please suggest me where should I look into to figure this out? The peer logs are in https://pastebin.com/gMPU8uyW. I am using 1.4.4 peer and orderers with Raft.

Thank you,
Indirajith.

On Thu, 12 Dec 2019 at 20:22, Baohua Yang <yangbaohua@...> wrote:
ankit,
Seems that's the policy issue, and have you joined the peer into the channel successfully? And what id are you using to do the installation?

Besides, I think this project might be helpful for you: https://github.com/yeasy/docker-compose-files/tree/master/hyperledger_fabric/

On Wed, Dec 11, 2019 at 12:31 AM <ankit.singh@...> wrote:
I am using fabric 1.4 with raft configuration. create channel, join channel, update anchor peers and install chaincode worked fine but facing this issue when trying to instantiate chaincode:

NodeJS logs:
(node:1463) UnhandledPromiseRejectionWarning: Error: Failed to instantiate the chaincode. cause:Error: instantiate proposal resulted in an error :: Error: failed to execute transaction 53450a9bb88694d82ab6c04f201f5016eecaf59140717d5ad2c4b4ba6710d48c: error sending: timeout expired while executing transaction

Blockchain logs:
Peer isn't eligible for channel mychannel : implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied
peer0.org1.example.com    | runtime.goexit
peer0.org1.example.com    | /opt/go/src/runtime/asm_amd64.s:1337



--
Best wishes!

Baohua Yang

Join fabric@lists.hyperledger.org to automatically receive all group messages.