-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to launch chaincode spec(Error starting container: API error (500) #15
Comments
@kamraanki - how are you deploying the app / chaincode? |
i deployed app on my local environment. just clone the cp-web git repository and copy mycreds.json from IBM bluemix. previously it was working fine but its giving above error now. |
When I deployed the cp chaincode this morning, the ID that was returned started with 2450c95bc, but I can see that your demo is trying to use chaincode with a different ID (da54a965...). What chaincode are you attempting to deploy/invoke? |
Any updates on this issue, @kamraanki |
Hey @masterDev1985 I am not getting this error now. but did not found root cause for the same. I am trying to find out that. |
Getting the following error chaincode.query.read(['_marbleindex'] error: { name: 'query() error', |
I know this says that it's a query error, but the message indicates that something went wrong with the deployment of your chaincode. Could you try redeploying the demo and seeing what happens? |
hey, I'm getting the same error. I'm editing the asset_management example, the deployment and invoke are working, but when I run queryspec from swagger API, the get this error. Did you find out the cause for this ? |
@tortuga90 The "success" that comes back on a deploy or an invoke are really just indicators that the transaction was submitted to the peer and don't actually indicate that the deploy or invoke was finished. You'll notice that in the CP and marbles demos, our SDK waits about 90 seconds after deploying chaincode before querying or invoking. This delay gives the peers time to start up a container for the chaincode that we deploy. If you try to interact with chaincode before the container has started, it can put your chaincode in a weird state. My suggestion would be to increase the delay between when you deploy the chaincode and when you invoke or query on it. |
After running the peer and setting up the network , when i deploy the chaincode its working fine, invoke is also happening. But whenever i try to query it, i get this message, can you tell me what i am doing wrong |
@anmolhanda What the error means is the deploy was not successful to start chaincode container. There can be a few reasons why this might happen:
Can you post some details on if you are using a local infrastructure or bluemix? Also, if you are making any changes to the CP-Web demo chaincode. Hope I can be helpful. |
Hi, I do have the same problem today. Again no changes made on the original codes downloaded from github, also it is compiled successfully. I would assume the deployment was completed successfully because the 'invoke' works but not the 'query', again this is on bluemix. BTW, the program is BlueMix sample/tutorial program named learn-chaincode |
It seems the same problem for me with bluemix.
|
We were experiencing some issues with chaincode deployment, but they should be resolved. You mind trying again, @ethanpreneur ? |
@masterDev1985 tried deploying car-lease-demo today on bluemix. Logs say: "App/0INFO Startup Vehicle chaincode deployed on all peers" In blockchain instance info: "no chaincode found" Running any query results into: |
Try to deploy the chaincode again, but watch the peer logs for messages with the 'container' or 'docker' tags. Something probably failed in your deployment. BTW you can create new issues, you know ;) |
@masterDev1985 wen't throught the logs (i will create an issue in corresponding repo then): ERR - �[36m13:34:46.420 [chaincode] Launch -> DEBU 1b2a9�[0m launchAndWaitForRegister failed Error starting container: API error (500): Error: image library/da0f7000-1275-400e-932d-df081589d8cd-vp0-4d62ca88762ba66113aeddb273192ec54533817aee4b575defbb32dbe5facde00dd9a90df8edf4eab3314a9c7ea49bae36e6f7322d3ef49f3360f4350bed9754 not found |
Thanks for help. I retried. After checking out the "revert go protobuf beta3 to 3" #7c3a27d, the sendProducerBlockEvent -> ERRO 01e Error unmarshalling deployment This happens when I deploy the chain code: peer chaincode deploy -n mycc -c '{"Function":"init", "Args": ["a","100", attached Peer Log: peer node start --peer-chaincodedev 16:13:50.044 [nodeCmd] serve -> INFO 001 Running in chaincode development 16:13:50.045 [nodeCmd] serve -> INFO 002 Set consensus to NOOPS and user 16:13:50.045 [nodeCmd] serve -> INFO 003 Disable loading validity system 16:13:50.049 [eventhub_producer] start -> INFO 004 event processor started 16:13:50.050 [nodeCmd] serve -> INFO 005 Security enabled status: true 16:13:50.050 [nodeCmd] serve -> INFO 006 Privacy enabled status: true 16:13:50.070 [crypto] RegisterValidator -> INFO 007 Registering validator 16:13:50.074 [crypto] RegisterValidator -> INFO 008 Registering validator 16:13:50.075 [crypto] InitValidator -> INFO 009 Initializing validator 16:13:50.119 [crypto] InitValidator -> INFO 00a Initializing validator 16:13:50.119 [chaincode] NewChaincodeSupport -> INFO 00b Chaincode support 16:13:50.120 [sysccapi] RegisterSysCC -> WARN 00c Currently system 16:13:50.123 [state] loadConfig -> INFO 00d Loading configurations... 16:13:50.124 [state] loadConfig -> INFO 00e Configurations loaded. 16:13:50.124 [state] NewState -> INFO 00f Initializing state implementation 16:13:50.125 [buckettree] initConfig -> INFO 010 configs passed during 16:13:50.125 [buckettree] initConfig -> INFO 011 Initializing bucket tree 16:13:50.126 [buckettree] newBucketCache -> INFO 012 Constructing 16:13:50.127 [buckettree] loadAllBucketNodesFromDB -> INFO 013 Loaded 16:13:50.129 [consensus/controller] NewConsenter -> INFO 014 Creating 16:13:50.132 [consensus/statetransfer] blockThread -> INFO 015 Validated 16:13:50.134 [consensus/noops] newNoops -> INFO 016 NOOPS consensus type = 16:13:50.135 [consensus/noops] newNoops -> INFO 017 NOOPS block size = 500 16:13:50.135 [consensus/noops] newNoops -> INFO 018 NOOPS block wait = 1s 16:13:50.137 [nodeCmd] serve -> INFO 019 Starting peer with ID=name:"jdoe" 16:13:50.138 [rest] StartOpenchainRESTServer -> INFO 01a Initializing the 16:15:50.849 [crypto] InitClient -> INFO 01b Initializing client [jim]... 16:15:50.950 [crypto] InitClient -> INFO 01c Initializing client 16:15:50.956 [crypto] closeClientInternal -> INFO 01d Closing client 16:15:51.986 [ledger] sendProducerBlockEvent -> ERRO 01e Error Chain code log: CORE_CHAINCODE_ID_NAME=mycc CORE_PEER_ADDRESS=0.0.0.0:7051 16:04:33.465 [shim] DEBU : Peer address: 0.0.0.0:7051 16:04:33.470 [shim] DEBU : os.Args returns: [./chaincode_example02] 16:04:33.474 [shim] DEBU : Registering.. sending REGISTER 16:04:33.485 [shim] DEBU : []Received message REGISTERED from shim 16:04:33.486 [shim] DEBU : []Handling ChaincodeMessage of type: 16:04:33.486 [shim] DEBU : Received REGISTERED, ready for invocations 16:07:43.731 [shim] DEBU : [mycc]Received message INIT from shim 16:07:43.731 [shim] DEBU : [mycc]Handling ChaincodeMessage of type: 16:07:43.731 [shim] DEBU : Entered state init 16:07:43.732 [shim] DEBU : [mycc]Received INIT, initializing chaincode Aval = 100, Bval = 200 Regards, Ethan On Thu, Aug 25, 2016 at 11:28 AM, Dale Avery notifications@github.com
|
Got this error when trying to do deploy the chaincode usind node sdk data": "Error when querying chaincode: Error:Failed to launch chaincode spec(Error starting container: API error (500): Error: image library/72eaffaf-7ad5-4d8e-8ab3-4131c6a11d17-vp1-b07fe2bc5f79dbf4f1f38bb8272e98a2dc70340323e93892804f820c6d58a4c8 not found\n)" I tried to redeploy it but getting same error again. I see lot of people faced the same issue. Any fix?? |
I am also getting the following error while executing the query API. The invoke call works fine. I am using the following tutorial: https://github.com/IBM-Blockchain/learn-chaincode The response is as follows, anyone who has resolved the issue please help: { |
did anyone resolve this problem? |
hi i am getting following error while deploying chaincode
[ibc-js] query - failure: 400 {"Error": "Error:Failed to launch chaincode spec(Error starting container: API error (500): Error: image library/dev-b44bffa8-4752-4a99-93d9-cae3f4350947_vp1-da54a9650fe87e2fa433c70d1082328a6b9984bbe9d22dfc10513c254ee757aa36e97528613669df0204321d068b0ac0f8d57b8a2a99cde74d79b92fc6d15484 not found
)"}
papers error { name: 'query() error',
code: 400,
details: '{"Error": "Error:Failed to launch chaincode spec(Error starting container: API error (500): Error: image library/dev-b44bffa8-4752-4a99-93d9-cae3f4350947_vp1-da54a9650fe87e2fa433c70d1082328a6b9984bbe9d22dfc10513c254ee757aa36e97528613669df0204321d068b0ac0f8d57b8a2a99cde74d79b92fc6d15484 not found\n)"}' }
[ibc-js] query - failure: 400 {"Error": "Error:Failed to launch chaincode spec(Error starting container: API error (500): Error: image library/dev-b44bffa8-4752-4a99-93d9-cae3f4350947_vp1-da54a9650fe87e2fa433c70d1082328a6b9984bbe9d22dfc10513c254ee757aa36e97528613669df0204321d068b0ac0f8d57b8a2a99cde74d79b92fc6d15484 not found
)"}
papers error { name: 'query() error',
code: 400,
details: '{"Error": "Error:Failed to launch chaincode spec(Error starting container: API error (500): Error: image library/dev-b44bffa8-4752-4a99-93d9-cae3f4350947_vp1-da54a9650fe87e2fa433c70d1082328a6b9984bbe9d22dfc10513c254ee757aa36e97528613669df0204321d068b0ac0f8d57b8a2a99cde74d79b92fc6d15484 not found\n)"}' }
[ibc-js] Chain Stats - success
[ibc-js] query - failure: 400 {"Error": "Error:Failed to launch chaincode spec(Error starting container: API error (500): Error: image library/dev-b44bffa8-4752-4a99-93d9-cae3f4350947_vp1-da54a9650fe87e2fa433c70d1082328a6b9984bbe9d22dfc10513c254ee757aa36e97528613669df0204321d068b0ac0f8d57b8a2a99cde74d79b92fc6d15484 not found
)"}
company error { name: 'query() error',
code: 400,
details: '{"Error": "Error:Failed to launch chaincode spec(Error starting container: API error (500): Error: image library/dev-b44bffa8-4752-4a99-93d9-cae3f4350947_vp1-da54a9650fe87e2fa433c70d1082328a6b9984bbe9d22dfc10513c254ee757aa36e97528613669df0204321d068b0ac0f8d57b8a2a99cde74d79b92fc6d15484 not found\n)"}' }
The text was updated successfully, but these errors were encountered: