I set up a network on several servers. On one of the servers, the compiled chaincode is consistently different from the chaincode on other servers, resulting in the message:
You need to have the exact copy of chaincode in all of your peers.
Try :
docker exec cli peer chaincode list --installed
(Note that the cli container name may be different in yours)
and check the Id in both the servers. If they do not match that means you have a different chaincode file.
Just try copying the whole chaincode folder to another machine at the same location.