Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 - failed to invoke backing implementation of 'InstallChaincode' #247

Open
pssilva opened this issue Apr 18, 2023 · 2 comments
Open

500 - failed to invoke backing implementation of 'InstallChaincode' #247

pssilva opened this issue Apr 18, 2023 · 2 comments

Comments

@pssilva
Copy link

pssilva commented Apr 18, 2023

The error occurs when executing the implantation process described in: Contract deployment.

$ export GOPATH="/opt/go-fabric/go"
$ export GIT_USER_ID="pssilva"
$ mkdir -p $GOPATH/src/github.com/$GIT_USER_ID
$ cd $GOPATH/src/github.com/$GIT_USER_ID
$ git clone https://github.com/hyperledger/firefly-samples.git
$ cd $GOPATH/src/github.com/$GIT_USER_ID/firefly-samples
$ cd asset-transfer-basic/chaincode-go
$ go mod vendor
$ go build 
$ bin/peer lifecycle chaincode package -p . --label asset_transfer ./asset_transfer.zip 
$ ff deploy fabric acmecorp-erp asset_transfer.zip firefly asset_transfer 1.0
Error: docker run --platform linux/amd64 --rm --network=acmecorp-erp_default 

-e CORE_PEER_ADDRESS=fabric_peer:7051 
-e CORE_PEER_TLS_ENABLED=true 
-e CORE_PEER_TLS_ROOTCERT_FILE=/etc/firefly/organizations/peerOrganizations/org1.example.com/peers/fabric_peer.org1.example.com/tls/ca.crt 
-e CORE_PEER_LOCALMSPID=Org1MSP 
-e CORE_PEER_MSPCONFIGPATH=/etc/firefly/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp 
-v /opt/go-fabric/go/src/github.com/pssilva/fabric-samples/asset-transfer-basic/chaincode-go/asset_transfer.zip:/package.tar.gz 
-v acmecorp-erp_firefly_fabric:/etc/firefly hyperledger/fabric-tools:2.3 
peer lifecycle chaincode install /package.tar.gz 

[1] 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: 
        docker build failed: Error returned from build: 2 "google.golang.org/protobuf/internal/flags
@aleleo1998
Copy link

any solution? I have the same problem

@lutfi-haslab
Copy link

you don't have match version of golang between your machine and go.mod

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

No branches or pull requests

3 participants