Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Deploying Chaincode Failed #366

Open
Kendaichi opened this issue Jan 5, 2023 · 0 comments
Open

Deploying Chaincode Failed #366

Kendaichi opened this issue Jan 5, 2023 · 0 comments

Comments

@Kendaichi
Copy link

I was following the tutorial of hyperledger fabric "Using the Fabric Test Network", ang upon deploying the chaincode to the channel I encountered errors that I don't know what's the problem with it. I tried everything I have searched so far but no luck on fixing it. I tried uninstalling everything, and starting from the beginning of the installation but again no luck. I am new to this blockchain platform and is an aspiring developer for it. Anyone Please help.

Here is the result upon running the chaincode deployment :

Using docker and docker-compose
deploying chaincode on channel 'mychannel'
executing with the following

  • CHANNEL_NAME: mychannel
  • CC_NAME: basic
  • CC_SRC_PATH: ../asset-transfer-basic/chaincode-go
  • CC_SRC_LANGUAGE: go
  • CC_VERSION: 1.0
  • CC_SEQUENCE: 1
  • CC_END_POLICY: NA
  • CC_COLL_CONFIG: NA
  • CC_INIT_FCN: NA
  • DELAY: 3
  • MAX_RETRY: 5
  • VERBOSE: false
    Vendoring Go dependencies at ../asset-transfer-basic/chaincode-go
    ~/fabric-samples/asset-transfer-basic/chaincode-go ~/fabric-samples/test-network
    scripts/deployCC.sh: line 59: go: command not found
    ~/fabric-samples/test-network
    Finished vendoring Go dependencies
  • peer lifecycle chaincode package basic.tar.gz --path ../asset-transfer-basic/chaincode-go --lang golang --label basic_1.0
  • res=1
    ++ peer lifecycle chaincode calculatepackageid basic.tar.gz
    Error: failed to read chaincode package at 'basic.tar.gz': open basic.tar.gz: no such file or directory
  • PACKAGE_ID=
    Error: failed to normalize chaincode path: failed to determine module root: exec: "go": executable file not found in $PATH
    Chaincode packaging has failed
    Deploying chaincode failed

Please do note that I tried installing golang (go1.13.x versions, go1.18.x and go1.19.x) anybody please help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant