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
170 stars 304 forks source link

There was an error starting the demo #94

Open Vovchikus opened 7 years ago

Vovchikus commented 7 years ago

Can anyone please help me with demo?

On main page in a red info block I am seeing message "There was an error starting the demo. Please try again. Ensure you delete both the demo and the blockchain service Identity or token does not match."

Trying to add certs to car_blockchain_service - no working Trying to create new Blockchain service, unbind old one, bind new, restage application - still not working

liam-grace commented 7 years ago

In this case, it is best to remove all instances of the application and service and then redeploy.

sachinjha commented 7 years ago

If you have a file based keystore and running the app on bluemix, the keystore data is lost after application is restarted or redeployed as file system is not persistent.

I have forked this project and made changes to use Cloudant based KeyStore. You can refer to the code here: https://github.com/sachinjha/car-lease-demo-1486642013191.

alacrity26 commented 7 years ago

@Vovchikus I am facing the same issue. Have you resolved this? If so, how? Thanks

sachinjha commented 7 years ago

Hi Adam, The way to solve it is to provide a different implementation of KeyStore. In the forked project - https://github.com/sachinjha/car-lease-demo-1486642013191 , you will find CloudantKeyStore file. During application startup , when chain is initialized an instance of this keystore implementation is provided instead of file based keystore. You could use any db. I chose cloudant cause it had a free plan.

On Tue, Apr 4, 2017 at 9:53 AM, Adam notifications@github.com wrote:

@Vovchikus https://github.com/Vovchikus I am facing the same issue. Have you resolved this? If so, how? Thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/IBM-Blockchain/car-lease-demo/issues/94#issuecomment-291389766, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2a9WKnyiXC8v1JXMAZIzK9XU0OcCHiks5rscXYgaJpZM4LzsWR .