IBM-Blockchain-Archive / car-lease-demo

A demonstration using IBM Blockchain to show how the lifecycle of vehicles can be recorded on a blockchain
Other
169 stars 304 forks source link

Deploying to Bluemix Never Works for this demo #33

Closed techbm closed 7 years ago

techbm commented 7 years ago

Team,Not sure since last 1-2 month demo is not working even after intiating the Deploy on Bluemix as mentioned on : https://github.com/IBM-Blockchain/car-lease-demo/blob/master/Documentation/Installation%20Guide.md#deploying-locally the code is not getting deployed it says deployment failed. May I know by when the issue is going to closed

Message :

Could not bind to service car_lease_blockchain Error: Server error, status code: 502, error code: 10001, message: Service broker error: {"description"=>"Error 404 received from broker url https://obc-service-broker-prod.mybluemix.net/v2/service_instances/a0bedf13-970b-442f-8ce8-5717b871eb5c/service_bindings/58a3fbe4-8474-4a2a-bc45-6fcfd213a0b9"}

Finished: FAILED

Jakeeyturner commented 7 years ago

Hi @techbm I've just checked and the deploy to Bluemix button on the README was pointing to the wrong repo. This is now fixed and the deployment using that button now works.

Thanks for letting us know of this issue.

techbm commented 7 years ago

Just tried and same issue.

FAILED Could not bind to service car_lease_blockchain Error: Server error, status code: 502, error code: 10001, message: Service broker error: {"description"=>"Error 404 received from broker url https://obc-service-broker-prod.mybluemix.net/v2/service_instances/a0bedf13-970b-442f-8ce8-5717b871eb5c/service_bindings/333cef86-009b-43e9-8356-09be1d975caf"}

Finished: FAILED

Jakeeyturner commented 7 years ago

Hi @techbm On Bluemix have you tried deleting the service and application then redeploying the demo?

techbm commented 7 years ago

I tried in 2 ways. First redeployed by deleting the service and 2nd approach was recreated on a separate instance. In both approach it got failed.

Jakeeyturner commented 7 years ago

Hi @techbm In order for the demo to work, the service must be created first then the application must be created afterwards. This is all done automatically when pressing the 'Deploy to Bluemix' button on the README file.

However, before this can work, there must only be one instance of the service and application in your Bluemix account. So, any car-lease-demo applications must be deleted as well as any instances of the 'car_lease_blockchain' service before you 'Deploy to Bluemix'.

If this doesn't fix your problems then I'm unsure of what is causing you this issue. Deployment has been working correctly for myself and several others.

Let me know how this goes for you.

tayzlor commented 7 years ago

I get this error on initial deployment startup -

ERR ERROR   Startup OUTPUT: {"message":"Error deploying vehicle chaincode","body":{"jsonrpc":"2.0","error":{"code":-32000,"message":"Registration missing","data":"User not logged in. Use the '/registrar' endpoint to obtain a security token."},"id":12},"error":true}

As a result it looks like the initial chaincode does not get deployed and my app spins at "finalising setup"

liam-grace commented 7 years ago

We have updated the demo to work with bluemix with fabric 0.6, please recreate an issue if you have this problem again

Akshay-agarwal commented 7 years ago

404 Not Found: Requested route ('car-lease-demo-akshayagarwal-126.mybluemix.net') does not exist.

I am getting this error after i launch app and click on Admin