Composer runtime (0.19.13) is not compatible with client (0.20.0)

帅比萌擦擦* 提交于 2019-12-13 20:43:18

问题


composer network ping --card admin@blockchaingrades-network Error: Error trying to ping. Error: Composer runtime (0.19.13) is not compatible with client (0.20.0) Command failed


回答1:


either downgrade your composer-rest-server version to version 0.19.13 (npm install -g composer-cli@0.19.13) or update your composer-cli version to version 0.20.0 (npm install -g composer-rest-server@0.20)




回答2:


upgrading runtime to 0.20.0 may not be enough. I faced the same situation - i upgraded everything to 0.20.0 version but i still had this error. What worked for me was i had to delete all docker containers with command with command:

docker rmi $(docker images -q)

then i run startFabric.sh script, created archive, installed and started network, imported card and pinged network to check if it works. I recommend you to use stopFabric --> teardownFabric --> teardownAllDocker scripts then remove docker containers with command above, (you can also reset docker with systemctl restart docker command and then start everything again. In my case it helped.




回答3:


As your error says you are using the composer client version 0.20.0 that is incompatible with your composer runtime version 0.19.13.

If you run composer -v you will see v0.20.0

A solution is to uninstall the version 0.20.0 of your client and to reinstall the client 0.19.13. You can do this with the following commands:

  1. npm uninstall -g composer-cli
  2. npm install -g composer-cli@0.19.13

Worked for me (same error with client version 0.19.15 and runtime version 0.19.12)



来源:https://stackoverflow.com/questions/51850195/composer-runtime-0-19-13-is-not-compatible-with-client-0-20-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!