Peer instantiation error #fabric #fabric-sdk-node


ankit.singh@...
 

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    | github.com/hyperledger/fabric/gossip/gossip/channel.NewGossipChannel.func5
peer0.org1.example.com    | /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/channel/channel.go:262
peer0.org1.example.com    | github.com/hyperledger/fabric/gossip/gossip/channel.(*stateInfoCache).Add
peer0.org1.example.com    | /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/channel/channel.go:998
peer0.org1.example.com    | github.com/hyperledger/fabric/gossip/gossip/channel.(*gossipChannel).handleStateInfSnapshot
peer0.org1.example.com    | /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/channel/channel.go:758
peer0.org1.example.com    | github.com/hyperledger/fabric/gossip/gossip/channel.(*gossipChannel).HandleMessage
peer0.org1.example.com    | /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/channel/channel.go:588
peer0.org1.example.com    | github.com/hyperledger/fabric/gossip/gossip.(*gossipServiceImpl).handleMessage
peer0.org1.example.com    | /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/gossip_impl.go:378
peer0.org1.example.com    | github.com/hyperledger/fabric/gossip/gossip.(*gossipServiceImpl).acceptMessages
peer0.org1.example.com    | /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/gossip_impl.go:332
peer0.org1.example.com    | runtime.goexit
peer0.org1.example.com    | /opt/go/src/runtime/asm_amd64.s:1337

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