Welcome to the Linux Foundation Forum!

Issue with section: "Installing and Testing a Hyperledger Fabric Network"

Getting error: "Chaincode installation on peer0.org1 has failed"

Error: failed to normalize chaincode path: 'go list' failed with: go: errors parsing go.mod:
/Users/ronald/Desktop/hyperledger/fabric-samples/asset-transfer-basic/chaincode-go/go.mod:3: invalid go version '1.22.0': must match format 1.23: exit status 1

In the previous section, it said to specifically install "go@1.20".

What should I do to resolve this?

Comments

  • As a temporary workaround I installed the javascript chaincode version instead using:
    ./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-javascript -ccl javascript

  • “Go@1.20”

  • @universallybalanced1976 said:
    “Go@1.20”

    Should I not install this version anymore? I am not sure if other parts of the class may depend on this version of go.

  • Tested with go1.25.1 - works fine.

  • khudary
    khudary Posts: 1

    Hello

    I'm getting error when deploying the chaincode:
    "Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: write unix @->/run/docker.sock: write: broken pipe
    Chaincode installation on peer0.org1 has failed
    Deploying chaincode failed
    "

    How to solve this problem please ?

Categories

Upcoming Training