Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hyperledger Composer Incompatible versions error and the versions are the same

Executing:

composer network ping -n calma-network -p hlfv1 -i admin -s adminpw

I receive the following error:

Error: Error trying to ping. Error: Composer runtime (0.8.0) is not compatible with client (0.11.0)
Command failed

The versions look the same:

composer -v

composer-cli                   v0.11.0
composer-admin                 v0.11.0
composer-client                v0.11.0
composer-common                v0.11.0
composer-runtime-hlf           v0.11.0
composer-runtime-hlfv1         v0.11.0
like image 385
J.F. Avatar asked Dec 18 '22 05:12

J.F.


2 Answers

Rebooting Hyperledger Fabric (stopFabric.sh, teardownFabric.sh and startFabric.sh) solves the error.

like image 144
J.F. Avatar answered Jan 24 '23 16:01

J.F.


I encountered the same problem. The fix for me was to first find the location of composer by typing which composer in the terminal. Then I manually deleted the directory containing it rm -rf /PATH/OF/COMPOSER. Then run npm install -g composer-cli@latest. After type composer -v to verify new version.

like image 24
Nicholas Porter Avatar answered Jan 24 '23 14:01

Nicholas Porter