hyperledger / fabric

Hyperledger Fabric is an enterprise-grade permissioned distributed ledger framework for developing solutions and applications. Its modular and versatile design satisfies a broad range of industry use cases. It offers a unique approach to consensus that enables performance at scale while preserving privacy.
https://wiki.hyperledger.org/display/fabric
Apache License 2.0
15.79k stars 8.86k forks source link

Hyperledger Fabric - Chaincode sample with Javascript #3438

Closed gunshukla closed 2 years ago

gunshukla commented 2 years ago

Hello, I was trying to run Javascript Chaincode on my Macbook and came up with below error. Any direction or guidance will be great.

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: Failed to pull hyperledger/fabric-nodeenv:2.4: no matching manifest for linux/arm64/v8 in the manifest list entries Chaincode installation on peer0.org1 has failed Deploying chaincode failed

jt-nti commented 2 years ago

Hi @gunshukla, unfortunately arm64 support is not complete in Fabric, and there's an open issue #2994. You might be able to get further by using the chaincode as an external service approach instead of the built-in Node.js chaincode builder.

davidkel commented 2 years ago

@gunshukla another thing you could try is to pull down the the amd64 version manually docker pull hyperledger/fabric-nodeenv:amd64-2.4.2 and retag it as 2.4

stinct9 commented 2 years ago

@gunshukla another thing you could try is to pull down the the amd64 version manually docker pull hyperledger/fabric-nodeenv:amd64-2.4.2 and retag it as 2.4

I was facing the same issue and this solution worked for me. Thanks!

rafaelferr88 commented 2 years ago

@gunshukla another thing you could try is to pull down the the amd64 version manually docker pull hyperledger/fabric-nodeenv:amd64-2.4.2 and retag it as 2.4

I was facing the same issue and this solution worked for me. Thanks!

How do you do this retag?

Huyenhuynhh commented 2 years ago

same question. how do you retag it?

bestbeforetoday commented 2 years ago

You would re-tag an image using the docker tag command. You might find it easier to just pull the correctly tagged version directly by telling Docker you want an amd64 image, as described in this issue: https://github.com/hyperledger/fabric/issues/2994#issuecomment-1170102505