Help Center/ Blockchain Service/ User Guide (ME-Abu Dhabi Region)/ FAQs/ BCS FAQs/ Chaincode Management/ What Can I Do If "context deadline exceed" Is Displayed During Chaincode Instantiation?
Updated on 2023-03-02 GMT+08:00

What Can I Do If "context deadline exceed" Is Displayed During Chaincode Instantiation?

Symptom

The chaincode fails to be instantiated, and the following message is displayed: gRPC Transport Status Code: (4) DeadlineExceed. Description: context deadline exceed.

Figure 1 Error details

Possible Causes

Chaincode compilation consumes resources. Each peer takes up 200 MB memory to compile a Go chaincode and 500–600 MB memory to compile a Java chaincode. If your VM flavor is insufficient, for example, less than 4 vCPUs and 8 GB memory, the compilation may time out.

Solution

  1. Install and instantiate only one chaincode at a time.
  2. Upgrade the VM flavor.
  3. Instantiate the chaincode again. If the fault persists, contact technical support.