title: Hyperledger Fabric: failed to invoke chaincode name:"lscc"
body: <p>While trying to instantiate a chaincode, I always get a timeout error on lifecycle chaincode (lscc) as follows:</p>
  
  <pre><code>2018-04-06 12:36:50.210 UTC [chaincode] Launch -&gt; ERRO 031 launchAndWaitForRegister failed Timeout expired while starting chaincode mycc:1.0(networkid:dev,peerid:org1-peer1,tx:3fa17e226a26f624d4554f7b64572672370838ddb53bc6ae21f0614c61737a51)
  2018-04-06 12:36:50.211 UTC [endorser] simulateProposal -&gt; ERRO 032 failed to invoke chaincode name:"lscc"  on transaction 3fa17e226a26f624d4554f7b64572672370838ddb53bc6ae21f0614c61737a51, error: Timeout expired while starting chaincode mycc:1.0(networkid:dev,peerid:org1-peer1,tx:3fa17e226a26f624d4554f7b64572672370838ddb53bc6ae21f0614c61737a51)
  </code></pre>
  
  <p>And chaincode container is never created.</p>
  
  <p>EDIT: Timeout issue is solved when I changed the timeout parameters as follows:</p>
  
  <p><strong>Previously</strong> (not working):</p>
  
  <p><code>CORE_CHAINCODE_DEPLOYTIMEOUT=600000
   CORE_CHAINCODE_STARTUPTIMEOUT=600000</code></p>
  
  <p><strong>Correct</strong> (working):</p>
  
  <p><code>CORE_CHAINCODE_DEPLOYTIMEOUT=300s
   CORE_CHAINCODE_STARTUPTIMEOUT=300s</code></p>