hyperledger-labs / minifabric

Do fabric network the right and easy way.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: chaincode install failed with status: 500

Quintanaaalberto opened this issue · comments

Hi guys,

i am following the tutorial at https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html, to learn to develop a hyperledger fabric network through fabric-samples. When i tried to install the chaincode and deploy it on the few peers i have available it returns an inconsistent vendoring error i cannot seem to fix...

Should result in: Installation completed on peers
Current result: Chaincode installation on has failed. Deploying chaincode failed.
I have installed the latest version of fabric and fabric-samples as of today, 23rd of June 2022

ERROR ->
" 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: 1 "go: inconsistent vendoring in /chaincode/input/src:
github.com/golang/protobuf@v1.3.2: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
github.com/hyperledger/fabric-chaincode-go@v0.0.0-20200424173110-d7076418f212: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
github.com/hyperledger/fabric-contract-api-go@v1.1.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
github.com/hyperledger/fabric-protos-go@v0.0.0-20200424173316-dd554ba3746e: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
github.com/stretchr/testify@v1.5.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt "

I have tried to fix this by running go mod vendor and tidy directly on the chaincode directory. But i cannot seem to fix it.

Any ideas?

No. I have used minifabric and i had no issue. Im posting this here but I'm working with fabric-samples

你没有使用 minifabric,对吧?或者你在这个过程中使用了 minifabric?如果是,请尝试安装 minifabric 附带的链代码,如果它有效,那么很可能您拥有的链代码可能存在一些问题。
……
Quintanaaalberto @.> 于 2022 年 6 月 23 日上午 7:57 从我的 iPhone 发送: 大家好,我正在关注https://hyperledger-fabric.readthedocs上的教程.io/en/latest/test_network.html,学习通过 fabric-samples 开发 hyperledger fabric 网络。当我尝试安装链代码并将其部署在 ZjQcmQRYFpfptBannerStart 上时,此消息来自外部发件人此消息来自您的组织外部。ZjQcmQRYFpfptBannerEnd 大家好,我正在学习https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html<https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html上的教程>,通过 fabric-samples 学习开发 hyperledger fabric 网络。当我尝试安装链代码并将其部署在我可用的几个对等节点上时,它返回一个我似乎无法修复的不一致供应商错误...应该导致:在对等节点上完成安装当前结果:链代码安装失败。部署链代码失败。截至今天,2022 年 6 月 23 日,我已经安装了最新版本的 fabric 和 fabric-samples 错误 -> “错误:链码安装失败,状态:500 - 无法调用‘InstallChaincode’的支持实现:无法构建链码:docker构建失败:docker 镜像构建失败:docker 构建失败:构建返回错误:1“go:/chaincode/input/src 中的供应商不一致:@.:go.mod 中明确要求,#344 >,或取消订阅 < https://github.com/notifications/unsubscribe-auth/AAO2NS3RXWU4UYSVVZGPQQTVQRGK5ANCNFSM5ZUC3QJA >。您收到此消息是因为您订阅了此线程。消息 ID:@.***>

image
As you can see, the installation of node chain code timed out, but java can, why..