minifabric icon indicating copy to clipboard operation
minifabric copied to clipboard

Error: chaincode install failed with status: 500

Open aqc-github opened this issue 2 years ago • 3 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/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt github.com/hyperledger/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt github.com/hyperledger/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt github.com/hyperledger/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt github.com/stretchr/[email protected]: 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?

aqc-github avatar Jun 23 '22 11:06 aqc-github

You were not using minifabric, right? Or you were using minifabric for the process? If you were, try to install the chaincode comes with minifabric, if it works then most likely the chaincode you have may have some issues.

Sent from my iPhone

On Jun 23, 2022, at 7:57 AM, Quintanaaalberto @.***> wrote:

 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 ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization.

ZjQcmQRYFpfptBannerEnd

Hi guys,

i am following the tutorial at https://hyperledger-fabric.readthedocs.io/en/latest/test_network.htmlhttps://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: @.: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt @.: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt @.: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt @.: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt @.***: 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?

— Reply to this email directly, view it on GitHubhttps://github.com/hyperledger-labs/minifabric/issues/344, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAO2NS3RXWU4UYSVVZGPQQTVQRGK5ANCNFSM5ZUC3QJA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

litong01 avatar Jun 23 '22 12:06 litong01

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

aqc-github avatar Jun 24 '22 07:06 aqc-github

你没有使用 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..

artz001 avatar Nov 16 '22 05:11 artz001