无法在对等点上实现链码
错误:链代码安装失败,状态: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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果链码已安装,则在尝试安装较新版本时可能需要增加序列号。如果您从命令行安装合约,则可能需要将这些值增加一个
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.