无法在对等点上实现链码

发布于 2025-01-15 09:04:57 字数 188 浏览 1 评论 0原文

错误:链代码安装失败,状态:500 - 无法调用“InstallChaincode”的支持实现:链代码已成功安装(包 ID“mychaincode_1.0:39889cf0623cce2500261b22914a7aa9037a897bc7f6c5b36df7a922f29b05e0”)。

抛出这个错误。告诉已成功安装但未在同行上实施。该怎么办?

Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': chaincode already successfully installed (package ID 'mychaincode_1.0:39889cf0623cce2500261b22914a7aa9037a897bc7f6c5b36df7a922f29b05e0').

Throwing this error. Telling Successfully installed but not implementing on peers. What to do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

悲凉≈ 2025-01-22 09:04:57

如果链码已安装,则在尝试安装较新版本时可能需要增加序列号。如果您从命令行安装合约,则可能需要将这些值增加一个

export CC_PACKAGE_VERSION=1

export CC_PACKAGE_SEQUENCE=1

如果您使用deployCC.sh 脚本安装合约,则应在运行脚本时的参数列表,或者通过增加以下变量在内部进行更改,这些变量采用参数值(如果提供)

CC_VERSION=${5:-"1.0"}

CC_SEQUENCE=${6:-"1"}

...更改为

CC_VERSION=${5:-"2"}

CC_SEQUENCE=${6:-"2"}

这是我对你的代码的第一个怀疑不会安装。如果这没有帮助,请查看对等方的 docker 日志,看看是否有任何提示。

If the chaincode is already installed, it may be that you need to increment the sequence number when trying to install a newer version. If you install the contract from the command line, you may need to increment these values by one

export CC_PACKAGE_VERSION=1

export CC_PACKAGE_SEQUENCE=1

If you are using the deployCC.sh script to install the contract, you should increment the sequence number either on the parameter list when running the script, or else make the change internally by incrementing the following variables which take the parameter values if supplied

CC_VERSION=${5:-"1.0"}

CC_SEQUENCE=${6:-"1"}

... change to

CC_VERSION=${5:-"2"}

CC_SEQUENCE=${6:-"2"}

This is my first suspicion as to the reason why your code will not install. If this doesn't help, have a look at the docker logs for the peer to see if there are any hints.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文