title: "channel [{channel-name}]: MSP error: channel doesn't exist" warning fails the instantiation of chaincode on Hyperledger Fabric
body: <p>I'm trying to run the Hyperledger Fabric network, which consists of a single orderer, a single peer, and a cli. To learn the procedure of launching Hyperledger Fabric network, from creating crypto-related artifacts to running cli as a docker container, I execute them one by one.</p>
  
  <p>Everything is okay, but when I try to instantiate the installed chaincode, the peer produces <code>channel [reputationch]: MSP error: channel doesn't exist</code> (<code>reputationch</code> is my channel name) and the instantiation has been failed.</p>
  
  <p>(Check the below screenshot)
  <a href="https://i.stack.imgur.com/7jY70.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7jY70.png" alt="enter image description here"></a></p>
  
  <p>I'm not sure that this warning on the peer node causes the failure of the instantiation of chaincode, but I guess it is the reason.</p>
  
  <p>My <code>crypto-config.yaml</code> and <code>configtx.yaml</code> are like below. They are nothing special because I just modified some names based on the official example.</p>
  
  <p><a href="https://gist.github.com/byron1st/1755f38698338256ff5465ef13c2ed51" rel="nofollow noreferrer"><code>crytp-config.yaml</code> and <code>configtx.yaml</code></a></p>
  
  <p>And the script to create crypto-related artifacts based on the above yaml files is:</p>
  
  <p><a href="https://gist.github.com/byron1st/54f07e0d5afd4f4080286b874660ef30" rel="nofollow noreferrer">script to create crypto-related artifacts</a></p>
  
  <p>My running scripts to launch an orderer, a peer, and a cli are like below. It calls docker commands.</p>
  
  <p><a href="https://gist.github.com/byron1st/179a4f5920f9ae28291d698fc0e58c04" rel="nofollow noreferrer">running scripts to launch an orderer, a peer, and a cli</a></p>
  
  <p>After I launch a cli, I connect the cli using <code>docker exec -it cli bash</code>. Then, I run three commands, which work well without an error or a warning:</p>
  
  <pre><code>peer channel create -o orderer.operator.com:7050 -c reputationch -f ./channel-artifacts/reputation-channel.tx
  peer channel update -o orderer.operator.com:7050 -c reputationch -f ./channel-artifacts/Company1anchors.tx
  peer chaincode install -n mycc -v 1.0 -p github.com/hyperledger/fabric/examples/chaincode/go/
  </code></pre>
  
  <p>Then, the following command is failed.</p>
  
  <pre><code>peer chaincode instantiate -o orderer.operator.com:7050 -C reputationch -n mycc -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "OR ('Company1MSP.peer')"
  </code></pre>
  
  <p>My version information is:</p>
  
  <ul>
  <li>macOS: macOS High Sierra 10.13.3</li>
  <li>Go: 1.10</li>
  <li>Docker: Version 18.03.0-ce-mac59 (23608)</li>
  <li>Hyperledger Fabric: 1.1
  
  <ul>
  <li><code>cryptogen</code>: 1.1.0</li>
  <li><code>configtxgen</code>: 1.1.0</li>
  </ul></li>
  </ul>
  
  <p>Any kind of comment or help will be very great for me. Thanks.</p>