title: In Hyperledger Fabric when I try to invoke, I'm getting the following error: chaincode definition for 'fabcar' exists, but chaincode is not installed
body: <p>I've followed 2 different tutorials </p>
  
  <p><a href="https://github.com/swetharepakula/Fabric101Workshop" rel="noreferrer">https://github.com/swetharepakula/Fabric101Workshop</a> and </p>
  
  <p><a href="https://hyperledger-fabric.readthedocs.io/en/release-2.0/deploy_chaincode.html" rel="noreferrer">https://hyperledger-fabric.readthedocs.io/en/release-2.0/deploy_chaincode.html</a>.</p>
  
  <p>Both times when I query installed it shows <strong>fabcar is installed and it commits successfully,</strong> but in both when I try to invoke I receive the following:</p>
  
  <blockquote>
    <p>Error: endorsement failure during invoke. response: status:500
    message:"make sure the chaincode fabcar has been successfully defined
    on channel mychannel and try again: chaincode definition for 'fabcar'
    exists, but chaincode is not installed".</p>
  </blockquote>
  
  <p>I've tried changing <code>CORE_PEER_GOSSIP_USELEADERELECTION=true</code>, but this stopped one of my peer nodes from starting up.</p>
  
  <p>I'm working on a Mac and the nodes are running in docker, any help would be greatly appreciated.</p>