We have internally set up a Hyperledger network to run some tests. The version of Hyperledger Fabric being used is 1.1.
We have a network of 5 machines, each representing an organization, and all of them have - running over Docker - two peers, a CA, as well as a Command-line Interface. We also have an Orderer node that is running on a standalone machine.
We can install Golang chaincodes and make the organizations communicate just fine. The problem arises when we try to install business network logic via BNAs. We are using Hyperledger Composer 0.19.7. to do that and here is what happens:
I generate the BNA by using npm install.
I install it successfully on my local peers and start the network via the composer install and composer start commands.
I send the very same BNA file over to other members of the network, and they also successfully install it on their peers with the composer install command.
However, when they try to communicate with the network (composer network ping) with the appropriate admin card the following message is shown:
Error: Error trying to ping. Error: 2 UNKNOWN: error executing chaincode: could not get ChaincodeDeploymentSpec for todo-poc5-network:0.0.1: get ChaincodeDeploymentSpec for todo-poc5-network/default from LSCC error: chaincode fingerprint mismatch data mismatch Command failed
The really weird part is that if I - instead of the BNA - distribute the bin file that is installed on my peers (which is found in the /var/hyperledger/peer0/chaincodes folder) the ping command works perfectly and the organizations can communicate. But distributing bin files rather than the BNA itself does not seem like the ideal solution.
Has anyone experienced anything that is similar to that?
Thanks in advance.
EDIT:
Ok, sorry for the long absence.
It turns out we had different versions of CLI running, but even after normalizing them the error still appears. Any other suggestions?
You mentioned that following an install a path, ID, and version are provided. Is there anywhere I can see them?
Over the command line, by doing a composer install all I see is:
✔ Installing business network. This may take a minute... Successfully installed business network predic-poc, version 1.0.2 Command succeeded