Not Able To Instantiate Chaincode, It Fails With "can't load package: package <ChainCodePachage>: cannot find package "<ChainCodePachage>"
(Doc ID 2524556.1)
Last updated on NOVEMBER 22, 2024
Applies to:
Blockchain Platform Cloud Service - Version N/A and laterInformation in this document applies to any platform.
Symptoms
Chaincode cannot be instantiated after it has been successfully created.
A zip file contains the package and chaincode. It needs to be .zip since .rar format seems not supported.
It gets installed correctly but when instantiating, following error is reported:
Errors:
Instantiate failed on <peer0> because of this error: error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package <ChainCodePachage>: cannot find package "<ChainCodePachage>" in any of:
/opt/go/src/<ChainCodePachage> (from $GOROOT)
/chaincode/input/src/<ChainCodePachage> (from $GOPATH)
/opt/gopath/src/<ChainCodePachage>
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |