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

Bluemix Car Demo Not working #17

Closed techbm closed 8 years ago

techbm commented 8 years ago

Team, This demo is no more working even the existing build and new builds are getting failed since last 3-4 days. Please help on fixing this.

Regards PC

jpayne23 commented 8 years ago

Hi PC,

The Car Lease Demo is to be used with the blockchain service on Bluemix. Unfortunately the service has been updated and the demo doesn't work on it anymore. In addition the service itself has been down since Friday.

We are currently working on fixing the demo and will let you know when it is ready.

Thanks

techbm commented 8 years ago

Thanks JP, Is there any timeline when it will up and running.

kobigurk commented 8 years ago

Thanks, @jpayne23, I am able to run the blockchain locally - can you give more details about which commit to run? I tried with several different commits (especially before Jun 9, when the Registrar struct was introduced), and failed.

jpayne23 commented 8 years ago

The latest I have heard is they are going to roll back the updates so that a stable bluemix service is available, I have just tried to create a service and it not available at the moment but I have been told it will be running again shortly.

When the service is up again the demo should run fine as it did last week, and I will post here when I am able to create a bluemix service again.

For running the demo locally, we are actively working on making the demo run with the same Hyperledger commit level that the blockchain bluemix service was going to use (3e0e80a898b259fe463295eabff80ee64f20695e) but we aren't there yet. Unfortunately we don't have any instructions for running locally as the bluemix blockchain and Hyperledger were very different but from the work we are doing now there should be some available next week.

kobigurk commented 8 years ago

Thanks! That clears things up and sounds awesome!

gregmisiorek commented 8 years ago

the issue seems to remain unresolved: App/0 designed for a production environment, as it will leak 2016-07-25T10:07:28.360-0400 App/0 Warning: connect.session() MemoryStore is not 2016-07-25T10:07:28.360-0400 App/0 memory, and will not scale past a single process. 2016-07-25T10:07:28.360-0400

awjh commented 8 years ago

Hello @gregmisiorek,

It seems that the Bluemix blockchain service is still down at the minute so the app is unable to start up. This is causing the errors you've encountered. I am unsure when the service will resume but will update the issue when it does. If the service is rolled back then the demo will be running as soon as it starts up otherwise we will have to update it to work with the new service which will take longer.

@jpayne23 is still working on getting it to run locally on the same commit level as we think an updated Bluemix service will be running.

techbm commented 8 years ago

Any updates on this track.

mrshah-at-ibm commented 8 years ago

Yes, a few updates.. The bluemix service is available now. With the new version of fabric, the user registration APIs have changed.. We are in the process of updating the car-lease demo to the SDK (aka HFC). It should be available in a day or two.

f00bar commented 8 years ago

Hello,

Any progress update on this ticket? It looks like the bluemix blockchain service is finally available now but the car lease demo still does not work.

Thanks.

jpayne23 commented 8 years ago

Hello,

The bluemix service is now available again, it has been updated and some of those changes have caused the demo to not work anymore. We have been working on addressing these issues while the service has been down and fixed most of them, however there were some issues we were only able to work on with a functioning bluemix service so haven't quite fixed them yet.

The demo will be available soon and using the node SDK (HFC), we will let you know when we push the fixes.

Thanks

awjh commented 8 years ago

Hello,

The demo has now been run on Bluemix successfully with the code that was pushed yesterday. Some changes have been made to the way that it works:

Chaincode: The new Bluemix service doesn't allow for chaincode to make https callouts. This means that the previous way of checking the user's ecert is no longer possible so chaincode now stores eCerts of all users passed to it during its deployment in the world state.

Creating Users: The old user creation was making use of the loopback connector code. Now that HFC is available on Bluemix the demo has changed to make users using this. User creation is the only part that has been changed to use HFC the REST API is still used for all other calls to the Blockchain network.

Running Locally The app has been modified to try and make it easier for users to run locally. It should now just require small changes to the configuration file. Instructions on how to do this will be added by the end of today.

kobigurk commented 8 years ago

@awjh @jpayne23 thanks for all your work! Waiting eagerly for the "Running Locally" section. Meanwhile, I'm still having trouble to deploy. The "Deploying to Bluemix..." stage take a lot of time and eventually fails. Did you notice anything similar?

This is the end of the deployment log:

0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 failing
FAILED
Start unsuccessful

I think this is the cause of the crash, from the logs:

Unable to use VCAP Services [TypeError: Cannot read property '0' of undefined]

Looking in the environment variable section, I think it's just I couldn't deploy a blockchain service:

Networks capacity reached, try again later
gregmisiorek commented 8 years ago

App/0 at IncomingMessage. (/home/vcap/app/node_modules/request/request.js:988:12)2016-08-10T09:01:22.297-0400 App/0 at Request.emit (events.js:129:20)2016-08-10T09:01:22.297-0400 App/0 at Request._callback (/home/vcap/app/Server_Side/blockchain/assets/vehicles/CRUD/create.js:73:17)2016-08-10T09:01:22.297-0400

awjh commented 8 years ago

The issues above I think relate to the Bluemix blockchain service not starting. We began noticing issues related to this last night and have been informed the service will be back up shortly.

I have now pushed the documentation with the installation guide for getting set up locally here.

kobigurk commented 8 years ago

@awjh thanks! I haven't tried it yet. FYI, it works perfectly on bluemix now.