{"action":"created","issue":{"url":"https://api.github.com/repos/hyperledger/fabric/issues/1706","repository_url":"https://api.github.com/repos/hyperledger/fabric","labels_url":"https://api.github.com/repos/hyperledger/fabric/issues/1706/labels{/name}","comments_url":"https://api.github.com/repos/hyperledger/fabric/issues/1706/comments","events_url":"https://api.github.com/repos/hyperledger/fabric/issues/1706/events","html_url":"https://github.com/hyperledger/fabric/issues/1706","id":158390704,"number":1706,"title":"Error querying chaincode: Failed to launch chaincode spec when running chaincode in dev environment ","user":{"login":"arjhunthiagarajan","id":19144163,"avatar_url":"https://avatars.githubusercontent.com/u/19144163?v=3","gravatar_id":"","url":"https://api.github.com/users/arjhunthiagarajan","html_url":"https://github.com/arjhunthiagarajan","followers_url":"https://api.github.com/users/arjhunthiagarajan/followers","following_url":"https://api.github.com/users/arjhunthiagarajan/following{/other_user}","gists_url":"https://api.github.com/users/arjhunthiagarajan/gists{/gist_id}","starred_url":"https://api.github.com/users/arjhunthiagarajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arjhunthiagarajan/subscriptions","organizations_url":"https://api.github.com/users/arjhunthiagarajan/orgs","repos_url":"https://api.github.com/users/arjhunthiagarajan/repos","events_url":"https://api.github.com/users/arjhunthiagarajan/events{/privacy}","received_events_url":"https://api.github.com/users/arjhunthiagarajan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-03T15:16:39Z","updated_at":"2016-07-10T13:00:45Z","closed_at":null,"body":"I was able to set up the development environment successfully based on the instructions provided here - https://github.com/hyperledger/fabric/blob/master/docs/dev-setup/devenv.md\r\n\r\nWhen I try to run the chaincode_example02 in the dev environment based on the instructions here - I get an error message - _Error: Error querying chaincode: rpc error: code = 2 desc = \"Error:Failed to launch chaincode spec(Failed to init chaincode(handler not found for chaincode mycc))\"_\r\n\r\n**Steps to replicate:**\r\n1. Vagrant terminal 1 - make and start peer node\r\n\r\n![screen shot 2016-06-04 at 1 03 13 am](https://cloud.githubusercontent.com/assets/19144163/15783131/3cc77a0c-29f0-11e6-8fc6-3620dcd62651.png)\r\n\r\n2. Vagrant terminal 2 - register chaincode with validating peer\r\n\r\n![screen shot 2016-06-04 at 1 05 43 am](https://cloud.githubusercontent.com/assets/19144163/15783187/7cd604c4-29f0-11e6-9e92-70ab7a28857e.png)\r\n\r\n3. Vagrant terminal 3 - Issue a deploy command via CLI\r\n\r\nWhen issuing a deploy command, I do get a response back on Vagrant terminal 1 but the console (terminal 3) does not update. \r\n\r\n![screen shot 2016-06-04 at 1 09 07 am](https://cloud.githubusercontent.com/assets/19144163/15783299/f4d6c2ce-29f0-11e6-9f3c-af77a4898662.png)\r\n\r\nThis occurs for the invoke function as well\r\n\r\n![screen shot 2016-06-04 at 1 11 42 am](https://cloud.githubusercontent.com/assets/19144163/15783397/52660d78-29f1-11e6-9a2f-69be949d26b7.png)\r\n\r\nWhen I issue a query function call, it throws an error. \r\n_Error: Error querying chaincode: rpc error: code = 2 desc = \"Error:Failed to launch chaincode spec(Failed to init chaincode(handler not found for chaincode mycc))\"_\r\n\r\nPlease note that this is just a simple dev environment set up and not the devnet set up.\r\n\r\n![screen shot 2016-06-04 at 1 14 04 am](https://cloud.githubusercontent.com/assets/19144163/15783473/a75a3642-29f1-11e6-8304-5741023c9bd2.png)\r\n\r\nAny clues on troubleshooting this issue will be very much appreciated.\r\n\r\nThanks!\r\nArjhun"},"comment":{"url":"https://api.github.com/repos/hyperledger/fabric/issues/comments/231587853","html_url":"https://github.com/hyperledger/fabric/issues/1706#issuecomment-231587853","issue_url":"https://api.github.com/repos/hyperledger/fabric/issues/1706","id":231587853,"user":{"login":"muralisrini","id":14361488,"avatar_url":"https://avatars.githubusercontent.com/u/14361488?v=3","gravatar_id":"","url":"https://api.github.com/users/muralisrini","html_url":"https://github.com/muralisrini","followers_url":"https://api.github.com/users/muralisrini/followers","following_url":"https://api.github.com/users/muralisrini/following{/other_user}","gists_url":"https://api.github.com/users/muralisrini/gists{/gist_id}","starred_url":"https://api.github.com/users/muralisrini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muralisrini/subscriptions","organizations_url":"https://api.github.com/users/muralisrini/orgs","repos_url":"https://api.github.com/users/muralisrini/repos","events_url":"https://api.github.com/users/muralisrini/events{/privacy}","received_events_url":"https://api.github.com/users/muralisrini/received_events","type":"User","site_admin":false},"created_at":"2016-07-10T13:00:44Z","updated_at":"2016-07-10T13:00:44Z","body":"@arjhunthiagarajan @tortuga90 typo in env variable... should be CORE_CHAINCODE_ID_NAME=mycc (not CODE_CHAINCODE_ID_NAME=mycc)"}}
{"actor":{"display_login":"muralisrini"}}