ibm-blockchain-archive / car-lease-demo Goto Github PK
View Code? Open in Web Editor NEWA demonstration using IBM Blockchain to show how the lifecycle of vehicles can be recorded on a blockchain
License: Other
A demonstration using IBM Blockchain to show how the lifecycle of vehicles can be recorded on a blockchain
License: Other
Hi. Our team has been struggling with trying to run the demo. When creating an asset via web-UI, we get a 'nil' pointer error. We've debugged it and found the problem to be the following:
func (t *SimpleChaincode) get_caller_data(stub *shim.ChaincodeStub) (string, int, error){
user, err := t.get_username(stub) // here user is returned as 'Transaction Certificate' for some reason
if err != nil { return "", -1, err }
ecert, err := t.get_ecert(stub, user); // ecert is 'nil' because no certificate can be found for such user with name ''Transaction Certificate'
if err != nil { return "", -1, err }
affiliation, err := t.check_affiliation(stub,string(ecert));
if err != nil { return "", -1, err }
return user, affiliation, nil
}
Why is user passed as 'Transaction Certificate', when we're logged in inside web-UI as 'DVLA'? Furthermore, when we hardcode the value of the user as 'DVLA' the corresponding certificate is being found by "get_ecert" but we get a problem later on in "check_affiliation".
func (t *SimpleChaincode) check_affiliation(stub *shim.ChaincodeStub, cert string) (int, error) {
decodedCert, err := url.QueryUnescape(cert); // make % etc normal //
if err != nil { return -1, errors.New("Could not decode certificate") }
pem, _ := pem.Decode([]byte(decodedCert)) // Make Plain text //
x509Cert, err := x509.ParseCertificate(pem.Bytes); // Extract Certificate from argument //
if err != nil { return -1, errors.New("Couldn't parse certificate") }
cn := x509Cert.Subject.CommonName
res := strings.Split(cn,"\\")
affiliation, _ := strconv.Atoi(res[2]) // here res[2] results in 'an index out of bounds'
return affiliation, nil
It seems that the affiliation cannot be derived from the certificate Subject. We've parsed the certificate and it indeed doesn't have affiliation role inside the "CN". The CN inside the certificate looks as follows: "DVLA\group1". But the third part with the affiliation role is missing. According to the parsing code in your demo, the CN has to be of form "DVLA\group1\1". The sample certificates are produced by the demo code, we didn't touch the logic.
Could you point out the problem? PS. We're using the 'master' branch.
Best Regards, Isgandar
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
Raising as an enhancement request to make this optional at startup (as a suggested enhancement route) or simply improve the startup process in this regard.
Hello!
I tried to switch Bluemix's blockchain services from ibm-blockchain-5-prod to HSBN(ibm-blockchain-plan-z2-prod), but it seems it doesn't work with HSBN. Do I have to change hardcoded label in the code to 'ibm-blockchain-plan-z2-prod'?
Is there anything needs to be modified to work with HSBN?
Thanks in advance,
Alex
If you select either a vehicle or a recipient, but not both, and select "transfer assets", you'll get an error message and the UI will reset to having nothing selected, so you'll need to redo your initial selection.
This obviously isn't a huge deal, but is a bit annoying when you're first figuring out the UI.
Hi - when running node app.js....
`C:\Code\go_code\src\github.com\ibm-blockchain\car-lease-demo>node app.js
String 'http://127.0.0.1'
Updated config file.
------------------------------------------ Server Up - http://localhost:80 ------------------------------------------
ENV VARIABLES http://127.0.0.1 5000
ENTER Startup INPUT: {}
INFO Startup Locating initial participants
I0924 19:50:37.337000000 3928 subchannel.c:642] Connect failed: null
I0924 19:50:37.338000000 3928 subchannel.c:645] Retry immediately
I0924 19:50:37.339000000 3928 subchannel.c:609] Failed to connect to channel, retrying
INFO Startup Failed to register using HFC, user may have already been enrolled. Error
INITIAL LOGIN ATTEMPT undefined
ERROR Startup OUTPUT: "[object Object] Error: chain registrar is not set"`
After app deployed and chaincode deployed to peers (checked "Network" tab on corresponding service - hash is there), app fails to create simple scenario.
Error in peer logs:
ERR - �[31m13:07:48.501 [rest] processChaincodeInvokeOrQuery -> ERRO 3cf2d�[0m Error when querying chaincode: Error:Failed to launch chaincode spec(Timeout expired while starting chaincode 4d62ca88762ba66113aeddb273192ec54533817aee4b575defbb32dbe5facde00dd9a90df8edf4eab3314a9c7ea49bae36e6f7322d3ef49f3360f4350bed9754(networkid:da0f7000-1275-400e-932d-df081589d8cd,peerid:vp0,tx:ab70d55b-ffe6-49ad-9d9c-3185c0b4c792))
ERR - 13:07:48.501 [rest] ProcessChaincode -> INFO 3cf2e�[0m REST successfully query chaincode: {"jsonrpc":"2.0","error":{"code":-32003,"message":"Query failure","data":"Error when querying chaincode: Error:Failed to launch chaincode spec(Timeout expired while starting chaincode 4d62ca88762ba66113aeddb273192ec54533817aee4b575defbb32dbe5facde00dd9a90df8edf4eab3314a9c7ea49bae36e6f7322d3ef49f3360f4350bed9754(networkid:da0f7000-1275-400e-932d-df081589d8cd,peerid:vp0,tx:ab70d55b-ffe6-49ad-9d9c-3185c0b4c792))"},"id":123}
Hi,
I'm trying to get this demo running on a local HL fabric as per the local deployment option in the Installation Guide. Am able to get the membersrvc and peer node started all OK.
However when running npm install in the car-lease-demo directory I get the following error:
C:\Code\go_code\src\github.com\ibm-blockchain\car-lease-demo\node_modules\x509\build\x509.vcxproj(20,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. gyp ERR! build error gyp ERR! stack Error:
C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exefailed with exit code: 1
Please advise fix or suggestions - many thanks...
It used to work few days before. But It does not anymore
It seems to me that some things have changed with the membership service - it requires a registrar field and a signature field as well, which are not defined in the protobuf structures.
Even after defining them, I then need the enrollKey, which I can't get as I don't have the one-time token that was given when the "admin" user or "WebAppAdmin" user were created.
This causes every registerUser to fail.
What's the easiest way to deploy this to see it running?
Locally was not going smooth too.
Hey!
I have done local setup for Hyperledger Fabric.
Now I wish to deploy car-lease-demo on my local setup:
I have done the development Environment Setup of Fabric
My Server_Side/configurations/configuration.js file is changed for local setup as follows:
config.networkFile = /home/vagrant/car-lease-demo/mycreds.json; //Put filepath to network data here from bluemix if not using VCAP. e.g. __dirname+"/../../mycreds.json";
config.networkProtocol = 'https' // The protocol to be used for connecting via rest to the network data peers
//--------------------------------------------------------------------------------------------------------------------
// Defines the exported values to be used by other fields for connecting to peers or the app. These will be overwritten on app.js being run if Bluemix is being used or Network JSON is defined
//--------------------------------------------------------------------------------------------------------------------
//IP and port configuration
config.api_ip = 'http://172.17.0.3'; //IP of the peer attempting to be connected to. By default this is the first peer in the peers array.
//When using blockchain on bluemix, api_port_external and api_port_internal will be the same
config.api_port_external = '7051'; //port number used when calling api from outside of the vagrant environment
config.api_port_internal = '7051'; //port number used when calling api from inside vagrant environment - generally used for chaincode calling out to api
config.api_port_discovery = '50051' //port number used for HFC
//IP and port configuration for the Certificate Authority. This is used for enrolling WebAppAdmin and creating all the user via HFC. Default values are for running Hyperledger locally.
config.ca_ip = '172.17.0.1'; //IP of the CA attempting to be connected to
config.ca_port = '50051'; //Discovery port of the Certificate Authority. Used for HFC
//Settings for the nodeJS application server
config.app_url = 'http://172.32.68.52'; //Url of the NodeJS Server
config.app_port = 8080;
Please help me with local setup deployment for car-lease-demo aaplication
Receive the following error:
Creating Scenario
Creating vehicles ✔
ERROR: Unable to write vehicle ✔
Trying the latest version of app https://github.com/IBM-Blockchain/car-lease-demo
Deployment of app from the bluemix page https://console.ng.bluemix.net/docs/services/blockchain/ibmblockchain_tutorials.html#carlease works but any subsequent redeployment of the same app (locally cloned) using CLI results in the following message in the app logs.
Thereafter all calls to admin/identity service fails and everything falls apart.
App/0ERROR Startup OUTPUT: "Failed to enroll registrar with WebAppAdmin 2dc560a51d"06 Dec 2016 | 11:28 AM
App/0ERROR Startup OUTPUT: {"code":2,"metadata":{"_internal_repr":{}}}06 Dec 2016 | 11:28 AM
App/0 at /home/vcap/app/node_modules/grpc/src/node/src/client.js:417:17 code: 2, metadata: Metadata { _internal_repr: {} } }06 Dec 2016 | 11:28 AM
App/0{ Error: Identity or token does not match.06 Dec 2016 | 11:28 AM
App/0ENTER GET blockchain/blocks INPUT: ""
Any clues?
I run docker-compose up
on Windows 10 with Docker 1.13.0-rc3, build 4d92237 (w/Linux Containers).
It pulled and built images. But the images with app server exists on starts:
carleasedemo_car-lease-demo_1 exited with code 2
So only two images carleasedemo_vp0_1 and carleasedemo_membersrvc_1 runnung.
How can I find out what's happening?
https://car-lease-demo-XXXX.mybluemix.net
is stuck forever.
The final value of port is undefined after executing "port = process.env.VCAP_APP_PORT; " on line 318 of app.js.
I'd really appreciate a simple readme for Demo
folder.
I can run correctly docker-compose up
from that folder but only the landing page of the web UI looks healthy in my env (localhost:8080
)
Is it still a work-in-progress or am I missing something?
Thanks
I believe that the chaincode currently extracts the affiliation from the CN of the transaction certificate in order to map transactors to roles. I v0.6, CN will no longer work as this was an error in leaking identity.
A couple of changes will be needed:
When registering users, add an attribute (could be called role) with the correct value for each user
Modify the chaincode to extract the attribute(s) from the transaction certificates rather than parsing the CN
i am trying to add a new user using this library. But the CA code of fabric has changed and it acceps a registrar and its signature.. So i am trying to generate a signature of admin registrar inside the loopback-connector.js file. When i run the function getEnrollmentCertificateFromECA() from the loopback-connector file to obtain the enrollKey it returns an error "failed to retrieve enrollment certificate error" {[ERROR] code 14, metadata: {internal _repr}}
i have tried the app before it has worked fine, but for some reason today it's clocking:
App/0
Warning: connect.session() MemoryStore is not
2016-07-18T14:31:16.599-0400
App/0
designed for a production environment, as it will leak
2016-07-18T14:31:16.599-0400
App/0
memory, and will not scale past a single process.
2016-07-18T14:31:16.599-0400
is this a client, a server, or a network issue?
thank you,
greg
Currently the demo runs on fabric v0.5. v0.6 will be fomrally released shortly and we need to make sure that the demo will work with it as well
Hello!
I've deployed both car lease demo application and hyperledger fabric(v0.6) on local Linux(s390x) and the app was running fine.
Once I disconnect from internet and re-connect, then tried to click on 'live stats', the screen only shows greyed out and spinning wheel as shown below. I wonder if this is JavaScript issue or a connection issue to the fabric?
After deployment process, checked out "Newtork" for corresponding Blockchain service, it says:
"no chaincode found"
Looking through logs found this:
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
Please help :)
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
I recently downloaded this demo directly onto bluemix, however in bluemix it is constantly crashing.
I see there was recently an attempt to fix this... has it been resolved? Is there something wrong with my environment or this is a known issue with the demo that is being worked on?
Hello,
There used to be an extra chaincode in this project called vehicle_log.go which used to keep track of the history that a vehicle goes through. This file is no longer part of the project so I'm just curious what's the current way of obtaining the steps that a particular vehicle went through during its lifecycle.
Thanks.
On the main UI for the car lease demo, the last section is "Admin" with a link to the "Admin Console".
Once you're in here, there are 2 options for Demo Setup that create some default cars, etc:
I think this item should be moved up to the top and called "Demo Setup". Also, on the page, there should be some description as to what each option does (Simple vs Full).
In "Scrap Merchant → Scrap" page, if user change scrap merchant in toggle menu and do an asset scrap, the dialog "Transaction Complete" is showing the first scrap merchant, always.
Car lease demo doc ID input - sent details to @jpayne23 in email.
e.g. is this a "lease"?
and this is from mfg. to scrap?
The doc, at least, seems to only describe transfer of ownership. - sale.
Don't see doc on lease or mfg. to scrap sequence.
Lease company transfers the vehicle to a leasee. The vehicle is not leased instead the application is showing what would happen if the lease were to have come to an end and the leasee activated the purchase option.
Have no idea what this step #6 try to say.
When loading he URL https://car-lease-demo-XXXXXX-XXX.mybluemix.net/
(I rebuilt everything with the latest master branch, no issues at the build+deployement stage from the jazz log).
In "Manufacturer → Dealership" page, if user change manufacturer in toggle menu and do an asset transfer, the dialog "Transaction Complete" is showing the first manufacturer, always.
In the car lease demo if I fail to select either a vehicle or a recipient, the error I get is "You have not selected a recipient.". Oddly enough, last week when I deployed and tried this same app, the error I got was always "You have not selected a vehicle", no matter which side I left blank.
This is minor of course, but until you get familiar with the UI, it's a relatively easy thing to hit.
Hello!
It appears that the application is using the Sample application deployment tracking library cf-deployment-tracker-client
(https://github.com/IBM-Blockchain/car-lease-demo/blob/master/app.js#L306) but doesn't specify the repository
property in package.json
. Without this property no traceback information to your github repository is recorded. Please consider adding the following to package.json
...
"dependencies": {
...
"cf-deployment-tracker-client": "*"
},
...
"repository": {
"type": "git",
"url": "https://github.com/IBM-Blockchain/car-lease-demo.git"
}
as shown in this example: https://github.com/IBM-Bluemix/node-helloworld/blob/master/package.json#L9-18
Current polling mechanisms in car lease are detrimental to response times or at the very lease non-optimal. Capturing this as an enhancement request to car lease demo and make event driven.
Hi, trying to build the demo, at the deployment stage (Push to Cloud Foundry 1) it ends up with a failed status. Am new to CF, so I don't really understand what's going on. Below the logs from the build pipeline.
Downloading
artifacts...DOWNLOAD SUCCESSFUL
Target: https://api.ng.bluemix.net
Creating service instance car_lease_blockchain in org XXXX / space US Space as [email protected]...
OK
Service car_lease_blockchain already exists
Using manifest file /home/pipeline/f6bf48ba-859e-422a-b554-4fa645bc72de/manifest.yml
Creating app car-lease-demo-XXXXX-1614 in org XXXX / space US Space as [email protected]...
OK
Using route car-lease-demo-XXXX-1614.mybluemix.net
Binding car-lease-demo-XXXX-1614.mybluemix.net to car-lease-demo-XXXX-1614...
OK
Uploading car-lease-demo-XXXX-1614...
Uploading app files from: /home/pipeline/f6bf48ba-859e-422a-b554-4fa645bc72de
Uploading 14.7M, 3052 files
Done uploading
OK
Binding service car_lease_blockchain to app car-lease-demo-XXXX-1614 in org Nonya / space US Space as [email protected]...
OK
Starting app car-lease-demo-XXXX-1614 in org Nonya / space US Space as [email protected]...
Downloading noop-buildpack...
Downloading liberty-for-java...
Downloading dotnet-core...
Downloading sdk-for-nodejs...
Downloading swift_buildpack...
Downloaded sdk-for-nodejs
Downloading go_buildpack...
Downloaded dotnet-core
Downloading java_buildpack...
Downloaded liberty-for-java
Downloading ruby_buildpack...
Downloaded noop-buildpack
Downloading nodejs_buildpack...
Downloaded swift_buildpack
Downloading xpages_buildpack...
Downloaded go_buildpack
Downloading python_buildpack...
Downloaded java_buildpack
Downloading php_buildpack...
Downloaded ruby_buildpack
Downloading staticfile_buildpack...
Downloaded xpages_buildpack
Downloading binary_buildpack...
Downloaded nodejs_buildpack
Downloading swift_buildpack_v2_0_2-20161118-1326...
Downloaded python_buildpack
Downloading liberty-for-java_v3_4_1-20161030-2241...
Downloaded php_buildpack
Downloading sdk-for-nodejs_v3_8-20161006-1211...
Downloaded staticfile_buildpack
Downloading liberty-for-java_v3_5-20161114-1152...
Downloaded binary_buildpack
Downloading dotnet-core_v1_0_1-20161005-1225...
Downloaded liberty-for-java_v3_4_1-20161030-2241
Downloading xpages_buildpack_v1_2_1-20160913-103...
Downloaded swift_buildpack_v2_0_2-20161118-1326
Downloaded liberty-for-java_v3_5-20161114-1152
Downloaded xpages_buildpack_v1_2_1-20160913-103
Creating container
Downloaded sdk-for-nodejs_v3_8-20161006-1211
Downloaded dotnet-core_v1_0_1-20161005-1225
Successfully created container
Downloading app package...
Downloaded app package (29.3M)
Staging...
-----> IBM SDK for Node.js Buildpack v3.9-20161128-1327
Based on Cloud Foundry Node.js Buildpack v1.5.20
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NPM_CONFIG_PRODUCTION=true
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): ^6.9.1
engines.npm (package.json): ^3.10.8
Resolving node version ^6.9.1 via 'node-version-resolver'
Installing IBM SDK for Node.js (6.9.1) from cache
Resolving npm version ^3.10.8 via semver.io...
Downloading and installing npm 3.10.10 (replacing version 3.10.8)...
-----> Restoring cache
Skipping cache restore (new runtime signature)
-----> Checking and configuring service extensions before installing dependencies
-----> Building dependencies
Installing node modules (package.json)
> [email protected] install /tmp/app/node_modules/hashtable
> node-gyp configure build
make: Entering directory `/tmp/app/node_modules/hashtable/build'
CXX(target) Release/obj.target/native/src/hashtable.o
SOLINK_MODULE(target) Release/obj.target/native.node
COPY Release/native.node
> [email protected] install /tmp/app/node_modules/sleep
> node-gyp rebuild
make: Entering directory `/tmp/app/node_modules/sleep/build'
CXX(target) Release/obj.target/node_sleep/sleep.o
SOLINK_MODULE(target) Release/obj.target/node_sleep.node
COPY Release/node_sleep.node
make: Leaving directory `/tmp/app/node_modules/sleep/build'
> [email protected] install /tmp/app/node_modules/grpc
> node-pre-gyp install --fallback-to-build
[grpc] Success: "/tmp/app/node_modules/grpc/src/node/extension_binary/grpc_node.node" is installed via remote
> [email protected] install /tmp/app/node_modules/x509
> node-gyp rebuild
make: Entering directory `/tmp/app/node_modules/x509/build'
CXX(target) Release/obj.target/x509/src/addon.o
In file included from ../node_modules/nan/nan.h:194:0,
from ../include/x509.h:7,
from ../src/addon.cc:5:
../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::MaybeLocal<v8::Object> Nan::CloneElementAt(v8::Local<v8::Array>, uint32_t)’:
../node_modules/nan/nan_maybe_43_inl.h:220:58: warning: ‘v8::MaybeLocal<v8::Object> v8::Array::CloneElementAt(v8::Local<v8::Context>, uint32_t)’ is deprecated (declared at /home/vcap/.node-gyp/6.9.1/include/node/v8.h:3031): Cloning is not supported. [-Wdeprecated-declarations]
return array->CloneElementAt(GetCurrentContext(), index);
^
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:200,
from ../include/x509.h:7,
from ../src/addon.cc:5:
../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::BooleanObject>::return_t Nan::imp::Factory<v8::BooleanObject>::New(bool)’:
../node_modules/nan/nan_implementation_12_inl.h:40:38: warning: ‘static v8::Local<v8::Value> v8::BooleanObject::New(bool)’ is deprecated (declared at /home/vcap/.node-gyp/6.9.1/include/node/v8.h:4007): Pass an isolate [-Wdeprecated-declarations]
return v8::BooleanObject::New(value).As<v8::BooleanObject>();
^
In file included from ../include/x509.h:7:0,
from ../src/addon.cc:5:
../node_modules/nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’:
../node_modules/nan/nan.h:1969:16: warning: ‘bool v8::Object::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’ is deprecated (declared at /home/vcap/.node-gyp/6.9.1/include/node/v8.h:2750): Use maybe version [-Wdeprecated-declarations]
, attribute);
^
CXX(target) Release/obj.target/x509/src/x509.o
In file included from ../node_modules/nan/nan.h:194:0,
from ../include/x509.h:7,
../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::MaybeLocal<v8::Object> Nan::CloneElementAt(v8::Local<v8::Array>, uint32_t)’:
../node_modules/nan/nan_maybe_43_inl.h:220:58: warning: ‘v8::MaybeLocal<v8::Object> v8::Array::CloneElementAt(v8::Local<v8::Context>, uint32_t)’ is deprecated (declared at /home/vcap/.node-gyp/6.9.1/include/node/v8.h:3031): Cloning is not supported. [-Wdeprecated-declarations]
return array->CloneElementAt(GetCurrentContext(), index);
^
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:200,
from ../include/x509.h:7,
from ../src/x509.cc:2:
../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::BooleanObject>::return_t Nan::imp::Factory<v8::BooleanObject>::New(bool)’:
../node_modules/nan/nan_implementation_12_inl.h:40:38: warning: ‘static v8::Local<v8::Value> v8::BooleanObject::New(bool)’ is deprecated (declared at /home/vcap/.node-gyp/6.9.1/include/node/v8.h:4007): Pass an isolate [-Wdeprecated-declarations]
return v8::BooleanObject::New(value).As<v8::BooleanObject>();
^
In file included from ../include/x509.h:7:0,
from ../src/x509.cc:2:
../node_modules/nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’:
../node_modules/nan/nan.h:1969:16: warning: ‘bool v8::Object::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’ is deprecated (declared at /home/vcap/.node-gyp/6.9.1/include/node/v8.h:2750): Use maybe version [-Wdeprecated-declarations]
, attribute);
^
../src/x509.cc: In function ‘v8::Local<v8::Value> try_parse(const string&)’:
../src/x509.cc:357:38: warning: value computed is not used [-Wunused-value]
^
../src/x509.cc: In function ‘v8::Local<v8::Value> parse_date(ASN1_TIME*)’:
../src/x509.cc:420:60: warning: ‘v8::Local<v8::Value> v8::Object::CallAsConstructor(int, v8::Local<v8::Value>*)’ is deprecated (declared at /home/vcap/.node-gyp/6.9.1/include/node/v8.h:2996): Use maybe version [-Wdeprecated-declarations]
return scope.Escape(DateObject->CallAsConstructor(1, args));
^
SOLINK_MODULE(target) Release/obj.target/x509.node
COPY Release/x509.node
make: Leaving directory `/tmp/app/node_modules/x509/build'
[email protected] /tmp/app
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected] (git+https://github.com/mcavage/node-asn1.git#2c2a19e285a609adfca36a0114bb5b86cf4ac61b)
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ └─┬ [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├─┬ [email protected]
│ │ │ │ │ │ ├─┬ [email protected]
│ │ │ │ │ │ │ └── [email protected]
│ │ │ │ │ │ └─┬ [email protected]
│ │ │ │ │ │ └── [email protected]
│ │ │ │ │ ├─┬ [email protected]
│ │ │ │ │ │ └── [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ └─┬ [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ ├─┬ [email protected]
│ │ │ │ │ │ ├── [email protected]
│ │ │ │ │ │ ├── [email protected]
│ │ │ │ │ │ ├─┬ [email protected]
│ │ │ │ │ │ │ └── [email protected]
│ │ │ │ │ │ ├─┬ [email protected]
│ │ │ │ │ │ │ └── [email protected]
│ │ │ │ │ │ └── [email protected]
│ │ │ │ │ ├─┬ [email protected]
│ │ │ │ │ │ └── [email protected]
│ │ │ │ │ ├─┬ [email protected]
│ │ │ │ │ │ ├── [email protected]
│ │ │ │ │ │ ├─┬ [email protected]
│ │ │ │ │ │ │ └── [email protected]
│ │ │ │ │ │ ├── [email protected]
│ │ │ │ │ │ └── [email protected]
│ │ │ │ │ └─┬ [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├─┬ [email protected]
│ │ │ │ │ │ ├── [email protected]
│ │ │ │ │ │ ├── [email protected]
│ │ │ │ │ │ └── [email protected]
│ │ │ │ │ └─┬ [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ └─┬ [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ └── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └─┬ [email protected]
│ │ │ │ └─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ ├─┬ [email protected]
│ │ │ │ │ │ ├─┬ [email protected]
│ │ │ │ │ │ │ └── [email protected]
│ │ │ │ │ │ ├── [email protected]
│ │ │ │ │ │ └── [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
└─┬ [email protected]
└── [email protected]
-----> Checking and configuring service extensions after installing dependencies
-----> Installing App Management
-----> Caching build
Clearing previous node cache
Saving 2 cacheDirectories (default):
- node_modules
- bower_components (nothing to cache)
-----> Build succeeded!
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
Exit status 0
Staging complete
Uploading droplet, build artifacts cache...
Uploading build artifacts cache...
Uploading droplet...
Uploaded build artifacts cache (24.2M)
Uploaded droplet (69.6M)
Uploading complete
Destroying container
Successfully destroyed container
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 crashed
FAILED
Error restarting application: Start unsuccessful
TIP: use 'cf logs car-lease-demo-XXXX-1614 --recent' for more information
Finished: FAILED
Given that there are multiple phases to the car lease demo, multiple recipients, and each step depends on the previous step (template -> car -> dealer, etc), it seems that two things would help:
1 - Text on each page of the UI explaining how to use the various UI widgets. Most of these are the same I think.
It's not too bad to figure out, but a bit confusing the first time.
2 - Perhaps a walkthrough explaining specific steps and what the user can expect based on doing the demo setup option that creates some default cars, etc.
I was wondering is it possible to deploy my own chaincode on the bluemix trial account. I noticed that only 3 proposed samples are allowed. if it is not allowed to run my chaincode is there any solution to try it online?
App/0
designed for a production environment, as it will leak
2016-08-11T10:12:07.402-0400
App/0
memory, and will not scale past a single process.
2016-08-11T10:12:07.402-0400
App/0
Warning: connect.session() MemoryStore is not
2016-08-11T10:12:07.402-0400
This demo is not working.
Getting the below error.
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"}
after running the containers (membersrvc and vp0) i've got the following error :
transport: http2Server.HandleStreams failed to receive the preface from client: EOF
in the membersrvc. what is the problem behind?
I'm getting errors when using button "Deploy to Bluemix". I've tried different regions and spaces, but I keep getting the same error:
The application is deployed and the repo are created successfully. However the application never starts. I've read posts with similar errors, but I'm not sure this is the same thing. Here are the error messages:
ERROR Startup OUTPUT: "Failed to enroll registrar with WebAppAdmin 828183e76b"
at /home/vcap/app/node_modules/grpc/src/node/src/client.js:417:17 code: 2, metadata: Metadata { _internal_repr: {} } }
{ Error: Identity or token does not match.
ERROR Startup OUTPUT: {"code":2,"metadata":{"_internal_repr":{}}}
Uploaded stats { ok: true }
events.js:160
at ClientDuplexStream._emitStatusIfDone (/home/vcap/app/node_modules/grpc/src/node/src/client.js:189:19)
throw er; // Unhandled 'error' event
at ClientDuplexStream._readsDone (/home/vcap/app/node_modules/grpc/src/node/src/client.js:158:8)
at readCallback (/home/vcap/app/node_modules/grpc/src/node/src/client.js:217:12)
App instance exited with guid 4f70087a-222d-4540-b50b-b8e1affd008d payload: {"cc_partition"=>"default", "droplet"=>"4f70087a-222d-4540-b50b-b8e1affd008d", "version"=>"f6ff9b7a-54d6-4e7d-9aeb-53749b470a0b", "instance"=>"62bd27fbe5904526b6479702f218200b", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"app instance exited", "crash_timestamp"=>1482256260}
Can someone help figure out what's wrong here?
Recipient roles in Invoke
function are hard-coded in v0.6
. ECerts saved in Init
functions are not used to check recipient's affiliation. This means that I can assign an asset to any username because the certificate will not be checked.
Maybe it is ok for the demo, but in v0.5
certificates were used in assign operations. It was more secure.
I just pulled the code,
when launching : node app.js
after a "npm i"
I got this error :
/Users/benjaminfuentes/git/car-lease-demo/node_modules/require-reload/reload.js:16
throw e;
^
SyntaxError: Unexpected token u
at Object.parse (native)
at Object. (/Users/benjaminfuentes/git/car-lease-demo/Server_Side/configurations/configuration.js:10:32)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at reloadCtx (/Users/benjaminfuentes/git/car-lease-demo/node_modules/require-reload/reload.js:11:16)
at Object. (/Users/benjaminfuentes/git/car-lease-demo/Server_Side/blockchain/blocks/CRUD/read.js:5:18)
beyond (see issue #39 ) using the latest HFC compatibility with 0.6 Fabric,, modify to replace REST calls in Car Lease.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.