Hyperledger Fabric/Composer: Error reading configuration: While parsing config: yaml: unknown anchor ‘OrdererDefaults’ referenced

Problem: While trying to start the Hyperledger Fabric or Hyperledger Composer network, you might get the following error: Generating orderer genesis block and channel config transaction with configtxgen 2018-08-22 11:28:37.034 UTC [common/tools/configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen is deprecated. Explicitly passing the channel ID will be required in the future, … Read more

Hyperledger Fabric: Error: Failed to load gRPC binary module because it was not installed for the current system

Problem I was following this Hyperledger Fabric tutorial: Writing your First Application This tutorial demonstrates a Hyperledger Fabric Sample Application named FabCar. Here’s the github repository of the fabcar sample app: https://github.com/hyperledger/fabric-samples/tree/master/fabcar I went inside the fabric-samples/fabcar directory and I was able to run the startFabric shell script: ./startFabric.sh After that, I tried to enroll … Read more

Hyperledger Fabric: Load -> CRIT 002 Error reading configuration: Unsupported Config Type “”

Problem I was following this Hyperledger Fabric tutorial: Building Your First Network It explains about two ways to build and start your network. One is via a shell script called byfn.sh which is simple to use and runs all the commands at once. The other approach is running each and every command manually. This way, … Read more

Hyperledger Fabric: Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded

Problem I was following this Hyperledger Fabric tutorial: Building Your First Network There’s a shell script called byfn.sh which stands for Build Your First Network. I ran the following command which generates the required certificates and genesis block: ./byfn.sh generate And then, ran this command which brings up the network with docker-compose up: ./byfn.sh up … Read more

Hyperledger Fabric: Unable to build Chaincode

Problem Scenario: You are working on Hyperledger Fabric and you are following this tutorial: Chaincode for Developers and when you try building your chaincode, it hungs up forever. You run the following command on your terminal to build the chaincode you wrote: go get -u –tags nopkcs11 github.com/hyperledger/fabric/core/chaincode/shim But, you get no result (either success … Read more

Hyperledger Fabric: sendPeersProposal – Promise is rejected: Error: 2 UNKNOWN: chaincode error (status: 500, message: Invalid Smart Contract function name.)

This is a solution to one problem scenario while working on Hyperledger Fabric. I was working on modifying a Hyperledger Fabric Sample Application called fabcar. You can face this issue with other sample apps as well. The issue occurred when I tried modifying the function name in the chaincode file of the sample app. Problem: … Read more