Card Trading Blockchain

Updated . Posted . Visible to the public.
d:\Work\Fabric>npm install -g composer-cli
C:\Users\kiat\AppData\Roaming\npm\composer -> C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-cli\cli.js

> dtrace-provider@0.8.7 install C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-cli\node_modules\dtrace-provider
> node-gyp rebuild || node suppress-error.js


C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-cli\node_modules\dtrace-provider>if not defined npm_config_node_gyp (node "C:\Users\kiat\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\kiat\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.

> node-report@2.2.1 install C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-cli\node_modules\node-report
> node-gyp rebuild


C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-cli\node_modules\node-report>if not defined npm_config_node_gyp (node "C:\Users\kiat\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\kiat\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  node_report.cc
  module.cc
  utilities.cc
  win_delay_load_hook.cc
     Creating library C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-cli\node_modules\node-report\build\Releas
  e\api.lib and object C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-cli\node_modules\node-report\build\Relea
  se\api.exp
  Generating code
  Finished generating code
  api.vcxproj -> C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-cli\node_modules\node-report\build\Release\\ap
  i.node
  Copying C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-cli\node_modules\node-report\build\Release\/api.node
  to C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-cli\node_modules\node-report\api.node
          1 file(s) copied.

> pkcs11js@1.0.16 install C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-cli\node_modules\pkcs11js
> node-gyp rebuild


C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-cli\node_modules\pkcs11js>if not defined npm_config_node_gyp (node "C:\Users\kiat\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\kiat\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  main.cpp
  dl.cpp
  const.cpp
  error.cpp
  v8_convert.cpp
  template.cpp
  mech.cpp
  param.cpp
  param_aes.cpp
  param_rsa.cpp
  param_ecdh.cpp
  pkcs11.cpp
  async.cpp
  node.cpp
  win_delay_load_hook.cc
     Creating library C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-cli\node_modules\pkcs11js\build\Release\p
  kcs11.lib and object C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-cli\node_modules\pkcs11js\build\Release\
  pkcs11.exp
  Generating code
  Finished generating code
  pkcs11.vcxproj -> C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-cli\node_modules\pkcs11js\build\Release\\pk
  cs11.node

> grpc@1.10.1 install C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-cli\node_modules\grpc
> node-pre-gyp install --fallback-to-build --library=static_library

[grpc] Success: "C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-cli\node_modules\grpc\src\node\extension_binary\node-v57-win32-x64-unknown\grpc_node.node" is installed via remote
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\composer-cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ composer-cli@0.20.1
added 706 packages from 599 contributors in 71.33s
d:\Work\Fabric>npm install -g composer-rest-server
npm WARN deprecated nodemailer@2.7.2: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated socks@1.1.9: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
npm WARN deprecated mailcomposer@4.0.1: This project is unmaintained
npm WARN deprecated buildmail@4.0.1: This project is unmaintained
npm WARN deprecated swagger-ui@2.2.10: No longer maintained, please upgrade to swagger-ui@3.
C:\Users\kiat\AppData\Roaming\npm\composer-rest-server -> C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-rest-server\cli.js

> dtrace-provider@0.8.7 install C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-rest-server\node_modules\dtrace-provider
> node-gyp rebuild || node suppress-error.js


C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-rest-server\node_modules\dtrace-provider>if not defined npm_config_node_gyp (node "C:\Users\kiat\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\kiat\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.

> pkcs11js@1.0.16 install C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-rest-server\node_modules\pkcs11js
> node-gyp rebuild


C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-rest-server\node_modules\pkcs11js>if not defined npm_config_node_gyp (node "C:\Users\kiat\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\kiat\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  main.cpp
  dl.cpp
  const.cpp
  error.cpp
  v8_convert.cpp
  template.cpp
  mech.cpp
  param.cpp
  param_aes.cpp
  param_rsa.cpp
  param_ecdh.cpp
  pkcs11.cpp
  async.cpp
  node.cpp
  win_delay_load_hook.cc
     Creating library C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-rest-server\node_modules\pkcs11js\build\R
  elease\pkcs11.lib and object C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-rest-server\node_modules\pkcs11j
  s\build\Release\pkcs11.exp
  Generating code
  Finished generating code
  pkcs11.vcxproj -> C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-rest-server\node_modules\pkcs11js\build\Rel
  ease\\pkcs11.node

> grpc@1.10.1 install C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-rest-server\node_modules\grpc
> node-pre-gyp install --fallback-to-build --library=static_library

[grpc] Success: "C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-rest-server\node_modules\grpc\src\node\extension_binary\node-v57-win32-x64-unknown\grpc_node.node" is installed via remote
+ composer-rest-server@0.20.1
added 880 packages from 768 contributors in 77.891s
d:\Work\Fabric>npm install -g composer-playground
C:\Users\kiat\AppData\Roaming\npm\composer-playground -> C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-playground\cli.js

> dtrace-provider@0.8.7 install C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-playground\node_modules\dtrace-provider
> node-gyp rebuild || node suppress-error.js


C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-playground\node_modules\dtrace-provider>if not defined npm_config_node_gyp (node "C:\Users\kiat\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\kiat\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.

> pkcs11js@1.0.16 install C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-playground\node_modules\pkcs11js
> node-gyp rebuild


C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-playground\node_modules\pkcs11js>if not defined npm_config_node_gyp (node "C:\Users\kiat\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\kiat\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  main.cpp
  dl.cpp
  const.cpp
  error.cpp
  v8_convert.cpp
  template.cpp
  mech.cpp
  param.cpp
  param_aes.cpp
  param_rsa.cpp
  param_ecdh.cpp
  pkcs11.cpp
  async.cpp
  node.cpp
  win_delay_load_hook.cc
     Creating library C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-playground\node_modules\pkcs11js\build\Re
  lease\pkcs11.lib and object C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-playground\node_modules\pkcs11js\
  build\Release\pkcs11.exp
  Generating code
  Finished generating code
  pkcs11.vcxproj -> C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-playground\node_modules\pkcs11js\build\Rele
  ase\\pkcs11.node

> grpc@1.10.1 install C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-playground\node_modules\grpc
> node-pre-gyp install --fallback-to-build --library=static_library

[grpc] Success: "C:\Users\kiat\AppData\Roaming\npm\node_modules\composer-playground\node_modules\grpc\src\node\extension_binary\node-v57-win32-x64-unknown\grpc_node.node" is installed via remote
+ composer-playground@0.20.1
added 755 packages from 591 contributors in 85.335s
d:\Work\Fabric>npm install -g yo generator-hyperledger-composer
npm WARN deprecated text-encoding@0.6.4: no longer maintained
C:\Users\kiat\AppData\Roaming\npm\yo-complete -> C:\Users\kiat\AppData\Roaming\npm\node_modules\yo\lib\completion\index.js
C:\Users\kiat\AppData\Roaming\npm\yo -> C:\Users\kiat\AppData\Roaming\npm\node_modules\yo\lib\cli.js

> dtrace-provider@0.8.7 install C:\Users\kiat\AppData\Roaming\npm\node_modules\generator-hyperledger-composer\node_modules\dtrace-provider
> node-gyp rebuild || node suppress-error.js


C:\Users\kiat\AppData\Roaming\npm\node_modules\generator-hyperledger-composer\node_modules\dtrace-provider>if not defined npm_config_node_gyp (node "C:\Users\kiat\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\kiat\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.

> pkcs11js@1.0.16 install C:\Users\kiat\AppData\Roaming\npm\node_modules\generator-hyperledger-composer\node_modules\pkcs11js
> node-gyp rebuild


C:\Users\kiat\AppData\Roaming\npm\node_modules\generator-hyperledger-composer\node_modules\pkcs11js>if not defined npm_config_node_gyp (node "C:\Users\kiat\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\kiat\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  main.cpp
  dl.cpp
  const.cpp
  error.cpp
  v8_convert.cpp
  template.cpp
  mech.cpp
  param.cpp
  param_aes.cpp
  param_rsa.cpp
  param_ecdh.cpp
  pkcs11.cpp
  async.cpp
  node.cpp
  win_delay_load_hook.cc
     Creating library C:\Users\kiat\AppData\Roaming\npm\node_modules\generator-hyperledger-composer\node_modules\pkcs11
  js\build\Release\pkcs11.lib and object C:\Users\kiat\AppData\Roaming\npm\node_modules\generator-hyperledger-composer\
  node_modules\pkcs11js\build\Release\pkcs11.exp
  Generating code
  Finished generating code
  pkcs11.vcxproj -> C:\Users\kiat\AppData\Roaming\npm\node_modules\generator-hyperledger-composer\node_modules\pkcs11js
  \build\Release\\pkcs11.node

> grpc@1.10.1 install C:\Users\kiat\AppData\Roaming\npm\node_modules\generator-hyperledger-composer\node_modules\grpc
> node-pre-gyp install --fallback-to-build --library=static_library

[grpc] Success: "C:\Users\kiat\AppData\Roaming\npm\node_modules\generator-hyperledger-composer\node_modules\grpc\src\node\extension_binary\node-v57-win32-x64-unknown\grpc_node.node" is installed via remote

> spawn-sync@1.0.15 postinstall C:\Users\kiat\AppData\Roaming\npm\node_modules\generator-hyperledger-composer\node_modules\spawn-sync
> node postinstall


> spawn-sync@1.0.15 postinstall C:\Users\kiat\AppData\Roaming\npm\node_modules\yo\node_modules\spawn-sync
> node postinstall


> yo@2.0.5 postinstall C:\Users\kiat\AppData\Roaming\npm\node_modules\yo
> yodoctor


Yeoman Doctor
Running sanity checks on your system

√ Global configuration file is valid
√ NODE_PATH matches the npm root
√ Node.js version
√ No .bowerrc file in home directory
√ No .yo-rc.json file in home directory
√ npm version
√ yo version

Everything looks all right!
+ yo@2.0.5
+ generator-hyperledger-composer@0.20.1
added 1358 packages from 997 contributors in 85.929s

Cannot use cmd, must use Git Bash to run the command.

Before Git Bash, insert a .env file:

COMPOSE_PROJECT_NAME=net
IMAGE_TAG=latest
COMPOSE_CONVERT_WINDOWS_PATHS=1

Then:

kiat@win10 MINGW64 /d/Work/Fabric/fabric-dev-servers
$ export FABRIC_VERSION=hlfv12

kiat@win10 MINGW64 /d/Work/Fabric/fabric-dev-servers
$ ./downloadFabric.sh
Development only script for Hyperledger Fabric control
Running 'downloadFabric.sh'
FABRIC_VERSION is set to 'hlfv12'
FABRIC_START_TIMEOUT is unset, assuming 15 (seconds)
amd64-1.2.1: Pulling from hyperledger/fabric-peer
b234f539f7a1: Pulling fs layer
55172d420b43: Pulling fs layer
5ba5bbeb6b91: Pulling fs layer
43ae2841ad7a: Pulling fs layer
f6c9c6de4190: Pulling fs layer
c6af77e36488: Pulling fs layer
964f7f4f22f3: Pulling fs layer
6c2a3b5ab78f: Pulling fs layer
56bf6b50282b: Pulling fs layer
aa6c5a3c5275: Pulling fs layer
43ae2841ad7a: Waiting
f6c9c6de4190: Waiting
c6af77e36488: Waiting
964f7f4f22f3: Waiting
6c2a3b5ab78f: Waiting
56bf6b50282b: Waiting
aa6c5a3c5275: Waiting
5ba5bbeb6b91: Download complete
55172d420b43: Download complete
f6c9c6de4190: Verifying Checksum
f6c9c6de4190: Download complete
43ae2841ad7a: Verifying Checksum
43ae2841ad7a: Download complete
b234f539f7a1: Download complete
c6af77e36488: Verifying Checksum
c6af77e36488: Download complete
964f7f4f22f3: Verifying Checksum
964f7f4f22f3: Download complete
6c2a3b5ab78f: Verifying Checksum
6c2a3b5ab78f: Download complete
b234f539f7a1: Pull complete
aa6c5a3c5275: Verifying Checksum
aa6c5a3c5275: Download complete
55172d420b43: Pull complete
56bf6b50282b: Download complete
5ba5bbeb6b91: Pull complete
43ae2841ad7a: Pull complete
f6c9c6de4190: Pull complete
c6af77e36488: Pull complete
964f7f4f22f3: Pull complete
6c2a3b5ab78f: Pull complete
56bf6b50282b: Pull complete
aa6c5a3c5275: Pull complete
Digest: sha256:318623d684703c302df0b9c5112b7ea00b7bc6e5fe1c7882c3711d143273870b
Status: Downloaded newer image for hyperledger/fabric-peer:amd64-1.2.1
amd64-1.2.1: Pulling from hyperledger/fabric-orderer
b234f539f7a1: Already exists
55172d420b43: Already exists
5ba5bbeb6b91: Already exists
43ae2841ad7a: Already exists
f6c9c6de4190: Already exists
c6af77e36488: Already exists
964f7f4f22f3: Already exists
6c2a3b5ab78f: Already exists
012160cf0ce3: Pulling fs layer
bf4731803a6d: Pulling fs layer
bf4731803a6d: Download complete
012160cf0ce3: Verifying Checksum
012160cf0ce3: Download complete
012160cf0ce3: Pull complete
bf4731803a6d: Pull complete
Digest: sha256:9ba0dd70705088f9b5df1b37da05f877045852a2ec065d497d3703347b7b05f6
Status: Downloaded newer image for hyperledger/fabric-orderer:amd64-1.2.1
amd64-1.2.1: Pulling from hyperledger/fabric-ccenv
b234f539f7a1: Already exists
55172d420b43: Already exists
5ba5bbeb6b91: Already exists
43ae2841ad7a: Already exists
f6c9c6de4190: Already exists
c6af77e36488: Already exists
964f7f4f22f3: Already exists
13cd31405e09: Pulling fs layer
e03b35c19d96: Pulling fs layer
96c2920985e3: Pulling fs layer
e91461be8304: Pulling fs layer
3200ac339879: Pulling fs layer
334803f65df7: Pulling fs layer
47eb0410a628: Pulling fs layer
e91461be8304: Waiting
3200ac339879: Waiting
334803f65df7: Waiting
47eb0410a628: Waiting
13cd31405e09: Download complete
96c2920985e3: Verifying Checksum
96c2920985e3: Download complete
13cd31405e09: Pull complete
e91461be8304: Verifying Checksum
e91461be8304: Download complete
3200ac339879: Verifying Checksum
3200ac339879: Download complete
334803f65df7: Verifying Checksum
334803f65df7: Download complete
47eb0410a628: Download complete
e03b35c19d96: Verifying Checksum
e03b35c19d96: Download complete
e03b35c19d96: Pull complete
96c2920985e3: Pull complete
e91461be8304: Pull complete
3200ac339879: Pull complete
334803f65df7: Pull complete
47eb0410a628: Pull complete
Digest: sha256:a5d1398da092eb9d9cd97c50df9c8947c755671a7ac52cbe329d6032bbef2d4b
Status: Downloaded newer image for hyperledger/fabric-ccenv:amd64-1.2.1
amd64-1.2.1: Pulling from hyperledger/fabric-ca
b234f539f7a1: Already exists
55172d420b43: Already exists
5ba5bbeb6b91: Already exists
43ae2841ad7a: Already exists
f6c9c6de4190: Already exists
c6af77e36488: Already exists
964f7f4f22f3: Already exists
18e16025f62a: Pulling fs layer
962c682480f9: Pulling fs layer
33239fc87e48: Pulling fs layer
afac665e7761: Pulling fs layer
4942a3a9a398: Pulling fs layer
33239fc87e48: Waiting
afac665e7761: Waiting
4942a3a9a398: Waiting
18e16025f62a: Verifying Checksum
18e16025f62a: Download complete
18e16025f62a: Pull complete
962c682480f9: Verifying Checksum
962c682480f9: Download complete
33239fc87e48: Verifying Checksum
33239fc87e48: Download complete
962c682480f9: Pull complete
33239fc87e48: Pull complete
4942a3a9a398: Verifying Checksum
4942a3a9a398: Download complete
afac665e7761: Verifying Checksum
afac665e7761: Download complete
afac665e7761: Pull complete
4942a3a9a398: Pull complete
Digest: sha256:103e818c8b0de09d07d1aaf20cf755db45365ae0e24fef8bb7a8123855e723bf
Status: Downloaded newer image for hyperledger/fabric-ca:amd64-1.2.1
0.4.10: Pulling from hyperledger/fabric-couchdb
b234f539f7a1: Already exists
55172d420b43: Already exists
5ba5bbeb6b91: Already exists
43ae2841ad7a: Already exists
f6c9c6de4190: Already exists
c6af77e36488: Already exists
964f7f4f22f3: Already exists
13cd31405e09: Already exists
e03b35c19d96: Already exists
96c2920985e3: Already exists
e91461be8304: Already exists
6a752ce8f7fe: Pulling fs layer
a49e2cb854b0: Pulling fs layer
493b25e70e6d: Pulling fs layer
2721753a3e7c: Pulling fs layer
adede0f2a5f1: Pulling fs layer
9eb593f76305: Pulling fs layer
bb49a3450e11: Pulling fs layer
929b9bb5d788: Pulling fs layer
2721753a3e7c: Waiting
adede0f2a5f1: Waiting
9eb593f76305: Waiting
bb49a3450e11: Waiting
929b9bb5d788: Waiting
6a752ce8f7fe: Verifying Checksum
6a752ce8f7fe: Download complete
493b25e70e6d: Verifying Checksum
493b25e70e6d: Download complete
6a752ce8f7fe: Pull complete
adede0f2a5f1: Verifying Checksum
adede0f2a5f1: Download complete
2721753a3e7c: Verifying Checksum
2721753a3e7c: Download complete
9eb593f76305: Verifying Checksum
9eb593f76305: Download complete
bb49a3450e11: Verifying Checksum
bb49a3450e11: Download complete
929b9bb5d788: Verifying Checksum
929b9bb5d788: Download complete
a49e2cb854b0: Verifying Checksum
a49e2cb854b0: Download complete
a49e2cb854b0: Pull complete
493b25e70e6d: Pull complete
2721753a3e7c: Pull complete
adede0f2a5f1: Pull complete
9eb593f76305: Pull complete
bb49a3450e11: Pull complete
929b9bb5d788: Pull complete
Digest: sha256:c65891b6c2374a06aff61dad8cd60e1f7a8dc2b72cc9f6f5c2f853f94509c1b1
Status: Downloaded newer image for hyperledger/fabric-couchdb:0.4.10

kiat@win10 MINGW64 /d/Work/Fabric/fabric-dev-servers
$ ./startFabric.sh
Development only script for Hyperledger Fabric control
Running 'startFabric.sh'
FABRIC_VERSION is set to 'hlfv12'
FABRIC_START_TIMEOUT is unset, assuming 15 (seconds)
Removing network net_default
Network net_default not found.
Creating network "net_default" with the default driver
Creating ca.org1.example.com ... done
Creating couchdb             ... done
Creating orderer.example.com ... done
Creating peer0.org1.example.com ... done
sleeping for 15 seconds to wait for fabric to complete start up
2018-10-03 13:22:01.620 UTC [viperutil] getKeysRecursively -> DEBU 001 Found map[string]interface{} value for peer.BCCSP
2018-10-03 13:22:01.620 UTC [viperutil] getKeysRecursively -> DEBU 002 Found map[string]interface{} value for peer.BCCSP.PKCS11
2018-10-03 13:22:01.620 UTC [viperutil] unmarshalJSON -> DEBU 003 Unmarshal JSON: value is not a string: <nil>
2018-10-03 13:22:01.620 UTC [viperutil] getKeysRecursively -> DEBU 004 Found real value for peer.BCCSP.PKCS11.Security setting to <nil> <nil>
2018-10-03 13:22:01.620 UTC [viperutil] getKeysRecursively -> DEBU 005 Found map[string]interface{} value for peer.BCCSP.PKCS11.FileKeyStore
2018-10-03 13:22:01.621 UTC [viperutil] unmarshalJSON -> DEBU 006 Unmarshal JSON: value is not a string: <nil>
2018-10-03 13:22:01.621 UTC [viperutil] getKeysRecursively -> DEBU 007 Found real value for peer.BCCSP.PKCS11.FileKeyStore.KeyStore setting to <nil> <nil>
2018-10-03 13:22:01.621 UTC [viperutil] unmarshalJSON -> DEBU 008 Unmarshal JSON: value is not a string: <nil>
2018-10-03 13:22:01.621 UTC [viperutil] getKeysRecursively -> DEBU 009 Found real value for peer.BCCSP.PKCS11.Library setting to <nil> <nil>
2018-10-03 13:22:01.622 UTC [viperutil] unmarshalJSON -> DEBU 00a Unmarshal JSON: value is not a string: <nil>
2018-10-03 13:22:01.622 UTC [viperutil] getKeysRecursively -> DEBU 00b Found real value for peer.BCCSP.PKCS11.Label setting to <nil> <nil>
2018-10-03 13:22:01.622 UTC [viperutil] unmarshalJSON -> DEBU 00c Unmarshal JSON: value is not a string: <nil>
2018-10-03 13:22:01.622 UTC [viperutil] getKeysRecursively -> DEBU 00d Found real value for peer.BCCSP.PKCS11.Pin setting to <nil> <nil>
2018-10-03 13:22:01.622 UTC [viperutil] unmarshalJSON -> DEBU 00e Unmarshal JSON: value is not a string: <nil>
2018-10-03 13:22:01.623 UTC [viperutil] getKeysRecursively -> DEBU 00f Found real value for peer.BCCSP.PKCS11.Hash setting to <nil> <nil>
2018-10-03 13:22:01.623 UTC [viperutil] unmarshalJSON -> DEBU 010 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value
2018-10-03 13:22:01.623 UTC [viperutil] getKeysRecursively -> DEBU 011 Found real value for peer.BCCSP.Default setting to string SW
2018-10-03 13:22:01.623 UTC [viperutil] getKeysRecursively -> DEBU 012 Found map[string]interface{} value for peer.BCCSP.SW
2018-10-03 13:22:01.623 UTC [viperutil] unmarshalJSON -> DEBU 013 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value
2018-10-03 13:22:01.623 UTC [viperutil] getKeysRecursively -> DEBU 014 Found real value for peer.BCCSP.SW.Hash setting to string SHA2
2018-10-03 13:22:01.624 UTC [viperutil] unmarshalJSON -> DEBU 015 Unmarshal JSON: value is not a string: 256
2018-10-03 13:22:01.624 UTC [viperutil] getKeysRecursively -> DEBU 016 Found real value for peer.BCCSP.SW.Security setting to int 256
2018-10-03 13:22:01.624 UTC [viperutil] getKeysRecursively -> DEBU 017 Found map[string]interface{} value for peer.BCCSP.SW.FileKeyStore
2018-10-03 13:22:01.624 UTC [viperutil] unmarshalJSON -> DEBU 018 Unmarshal JSON: value cannot be unmarshalled: unexpected end of JSON input
2018-10-03 13:22:01.624 UTC [viperutil] getKeysRecursively -> DEBU 019 Found real value for peer.BCCSP.SW.FileKeyStore.KeyStore setting to string
2018-10-03 13:22:01.624 UTC [viperutil] EnhancedExactUnmarshalKey -> DEBU 01a map[peer.BCCSP:map[PKCS11:map[Library:<nil> Label:<nil> Pin:<nil> Hash:<nil> Security:<nil> FileKeyStore:map[KeyStore:<nil>]] Default:SW SW:map[Hash:SHA2 Security:256 FileKeyStore:map[KeyStore:]]]]
2018-10-03 13:22:01.626 UTC [bccsp_sw] openKeyStore -> DEBU 01b KeyStore opened at [/etc/hyperledger/peer/msp/keystore]...done
2018-10-03 13:22:01.626 UTC [bccsp] initBCCSP -> DEBU 01c Initialize BCCSP [SW]
2018-10-03 13:22:01.626 UTC [msp] getPemMaterialFromDir -> DEBU 01d Reading directory /etc/hyperledger/peer/msp/signcerts
2018-10-03 13:22:01.627 UTC [msp] getPemMaterialFromDir -> DEBU 01e Inspecting file /etc/hyperledger/peer/msp/signcerts/peer0.org1.example.com-cert.pem
2018-10-03 13:22:01.628 UTC [msp] getPemMaterialFromDir -> DEBU 01f Reading directory /etc/hyperledger/peer/msp/cacerts
2018-10-03 13:22:01.628 UTC [msp] getPemMaterialFromDir -> DEBU 020 Inspecting file /etc/hyperledger/peer/msp/cacerts/ca.org1.example.com-cert.pem
2018-10-03 13:22:01.629 UTC [msp] getPemMaterialFromDir -> DEBU 021 Reading directory /etc/hyperledger/peer/msp/admincerts
2018-10-03 13:22:01.630 UTC [msp] getPemMaterialFromDir -> DEBU 022 Inspecting file /etc/hyperledger/peer/msp/admincerts/Admin@org1.example.com-cert.pem
2018-10-03 13:22:01.631 UTC [msp] getPemMaterialFromDir -> DEBU 023 Reading directory /etc/hyperledger/peer/msp/intermediatecerts
2018-10-03 13:22:01.631 UTC [msp] getMspConfig -> DEBU 024 Intermediate certs folder not found at [/etc/hyperledger/peer/msp/intermediatecerts]. Skipping. [stat /etc/hyperledger/peer/msp/intermediatecerts: no such file or directory]
2018-10-03 13:22:01.631 UTC [msp] getPemMaterialFromDir -> DEBU 025 Reading directory /etc/hyperledger/peer/msp/tlscacerts
2018-10-03 13:22:01.632 UTC [msp] getPemMaterialFromDir -> DEBU 026 Inspecting file /etc/hyperledger/peer/msp/tlscacerts/tlsca.org1.example.com-cert.pem
2018-10-03 13:22:01.632 UTC [msp] getPemMaterialFromDir -> DEBU 027 Reading directory /etc/hyperledger/peer/msp/tlsintermediatecerts
2018-10-03 13:22:01.633 UTC [msp] getMspConfig -> DEBU 028 TLS intermediate certs folder not found at [/etc/hyperledger/peer/msp/tlsintermediatecerts]. Skipping. [stat /etc/hyperledger/peer/msp/tlsintermediatecerts: no such file or directory]
2018-10-03 13:22:01.633 UTC [msp] getPemMaterialFromDir -> DEBU 029 Reading directory /etc/hyperledger/peer/msp/crls
2018-10-03 13:22:01.633 UTC [msp] getMspConfig -> DEBU 02a crls folder not found at [/etc/hyperledger/peer/msp/crls]. Skipping. [stat /etc/hyperledger/peer/msp/crls: no such file or directory]
2018-10-03 13:22:01.633 UTC [msp] getMspConfig -> DEBU 02b MSP configuration file not found at [/etc/hyperledger/peer/msp/config.yaml]: [stat /etc/hyperledger/peer/msp/config.yaml: no such file or directory]
2018-10-03 13:22:01.634 UTC [msp] newBccspMsp -> DEBU 02c Creating BCCSP-based MSP instance
2018-10-03 13:22:01.634 UTC [msp] New -> DEBU 02d Creating Cache-MSP instance
2018-10-03 13:22:01.634 UTC [msp] loadLocaMSP -> DEBU 02e Created new local MSP
2018-10-03 13:22:01.634 UTC [msp] Setup -> DEBU 02f Setting up MSP instance Org1MSP
2018-10-03 13:22:01.634 UTC [msp/identity] newIdentity -> DEBU 030 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICQjCCAemgAwIBAgIQDJbOh88U+tlJ9He5sjUwBDAKBggqhkjOPQQDAjBzMQsw
CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy
YW5jaXNjbzEZMBcGA1UEChMQb3JnMS5leGFtcGxlLmNvbTEcMBoGA1UEAxMTY2Eu
b3JnMS5leGFtcGxlLmNvbTAeFw0xNzA2MjYxMjQ5MjZaFw0yNzA2MjQxMjQ5MjZa
MHMxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1T
YW4gRnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMRwwGgYDVQQD
ExNjYS5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE
kQ216YBD8kks+IzKJyBmdLqh/L/sEZ5twTqYpsK1ztNhIUDplsletAFOJQWRH+kb
hzFFNvS1qwveGRU6ztN5haNfMF0wDgYDVR0PAQH/BAQDAgGmMA8GA1UdJQQIMAYG
BFUdJQAwDwYDVR0TAQH/BAUwAwEB/zApBgNVHQ4EIgQgGatlq7sEgH2tEuTAqaqm
ZJ5who46vQIXoyLYnkfhpq4wCgYIKoZIzj0EAwIDRwAwRAIgCyrj/lUjtBYaEgMt
x98l5z+iLU6r+gp4CsdcDYzKLugCIGXlcU56avWSUtRAGn8Avpb6TOxtkrKIpeTE
QfM8VsS/
-----END CERTIFICATE-----
2018-10-03 13:22:01.634 UTC [msp/identity] newIdentity -> DEBU 031 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICGjCCAcCgAwIBAgIRANuOnVN+yd/BGyoX7ioEklQwCgYIKoZIzj0EAwIwczEL
MAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG
cmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhhbXBsZS5jb20xHDAaBgNVBAMTE2Nh
Lm9yZzEuZXhhbXBsZS5jb20wHhcNMTcwNjI2MTI0OTI2WhcNMjcwNjI0MTI0OTI2
WjBbMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMN
U2FuIEZyYW5jaXNjbzEfMB0GA1UEAwwWQWRtaW5Ab3JnMS5leGFtcGxlLmNvbTBZ
MBMGByqGSM49AgEGCCqGSM49AwEHA0IABGu8KxBQ1GkxSTMVoLv7NXiYKWj5t6Dh
WRTJBHnLkWV7lRUfYaKAKFadSii5M7Z7ZpwD8NS7IsMdPR6Z4EyGgwKjTTBLMA4G
A1UdDwEB/wQEAwIHgDAMBgNVHRMBAf8EAjAAMCsGA1UdIwQkMCKAIBmrZau7BIB9
rRLkwKmqpmSecIaOOr0CF6Mi2J5H4aauMAoGCCqGSM49BAMCA0gAMEUCIQC4sKQ6
CEgqbTYe48az95W9/hnZ+7DI5eSnWUwV9vCd/gIgS5K6omNJydoFoEpaEIwM97uS
XVMHPa0iyC497vdNURA=
-----END CERTIFICATE-----
2018-10-03 13:22:01.657 UTC [msp/identity] newIdentity -> DEBU 032 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICGTCCAb+gAwIBAgIQTx2TvwYtAf62KKQliP6UoTAKBggqhkjOPQQDAjBzMQsw
CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy
YW5jaXNjbzEZMBcGA1UEChMQb3JnMS5leGFtcGxlLmNvbTEcMBoGA1UEAxMTY2Eu
b3JnMS5leGFtcGxlLmNvbTAeFw0xNzA2MjYxMjQ5MjZaFw0yNzA2MjQxMjQ5MjZa
MFsxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1T
YW4gRnJhbmNpc2NvMR8wHQYDVQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkw
EwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEPPHUp7+EYb2xIbleWfRClMgqbtQqRmIS
2a5F8T0L3J6IZp9wm7K+w4LIBIgw1Cz9D8nqHW6f4OYBrbp0cSGnR6NNMEswDgYD
VR0PAQH/BAQDAgeAMAwGA1UdEwEB/wQCMAAwKwYDVR0jBCQwIoAgGatlq7sEgH2t
EuTAqaqmZJ5who46vQIXoyLYnkfhpq4wCgYIKoZIzj0EAwIDSAAwRQIhAK4i2Hz2
K398TvjJk62neDoenYhkMY7rBN3BN/GI0G0SAiAOTx36wuy9/4BBV8NVBCZ9V+Iw
msdI9CyZ59oVMVmNYQ==
-----END CERTIFICATE-----
2018-10-03 13:22:01.658 UTC [bccsp_sw] loadPrivateKey -> DEBU 033 Loading private key [dfb17cf51dc061d585b4850599be0e4b8b7cc8cc363a67c23bc03c6c5393b0e0] at [/etc/hyperledger/peer/msp/keystore/dfb17cf51dc061d585b4850599be0e4b8b7cc8cc363a67c23bc03c6c5393b0e0_sk]...
2018-10-03 13:22:01.659 UTC [msp/identity] newIdentity -> DEBU 034 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICGTCCAb+gAwIBAgIQTx2TvwYtAf62KKQliP6UoTAKBggqhkjOPQQDAjBzMQsw
CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy
YW5jaXNjbzEZMBcGA1UEChMQb3JnMS5leGFtcGxlLmNvbTEcMBoGA1UEAxMTY2Eu
b3JnMS5leGFtcGxlLmNvbTAeFw0xNzA2MjYxMjQ5MjZaFw0yNzA2MjQxMjQ5MjZa
MFsxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1T
YW4gRnJhbmNpc2NvMR8wHQYDVQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkw
EwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEPPHUp7+EYb2xIbleWfRClMgqbtQqRmIS
2a5F8T0L3J6IZp9wm7K+w4LIBIgw1Cz9D8nqHW6f4OYBrbp0cSGnR6NNMEswDgYD
VR0PAQH/BAQDAgeAMAwGA1UdEwEB/wQCMAAwKwYDVR0jBCQwIoAgGatlq7sEgH2t
EuTAqaqmZJ5who46vQIXoyLYnkfhpq4wCgYIKoZIzj0EAwIDSAAwRQIhAK4i2Hz2
K398TvjJk62neDoenYhkMY7rBN3BN/GI0G0SAiAOTx36wuy9/4BBV8NVBCZ9V+Iw
msdI9CyZ59oVMVmNYQ==
-----END CERTIFICATE-----
2018-10-03 13:22:01.660 UTC [msp] setupSigningIdentity -> DEBU 035 Signing identity expires at 2027-06-24 12:49:26 +0000 UTC
2018-10-03 13:22:01.660 UTC [msp] Validate -> DEBU 036 MSP Org1MSP validating identity
2018-10-03 13:22:01.660 UTC [msp] GetDefaultSigningIdentity -> DEBU 037 Obtaining default signing identity
2018-10-03 13:22:01.660 UTC [grpc] Printf -> DEBU 038 parsed scheme: ""
2018-10-03 13:22:01.660 UTC [grpc] Printf -> DEBU 039 scheme "" not registered, fallback to default scheme
2018-10-03 13:22:01.660 UTC [grpc] Printf -> DEBU 03a ccResolverWrapper: sending new addresses to cc: [{orderer.example.com:7050 0  <nil>}]
2018-10-03 13:22:01.661 UTC [grpc] Printf -> DEBU 03b ClientConn switching balancer to "pick_first"
2018-10-03 13:22:01.661 UTC [grpc] Printf -> DEBU 03c pickfirstBalancer: HandleSubConnStateChange: 0xc4204964f0, CONNECTING
2018-10-03 13:22:01.663 UTC [grpc] Printf -> DEBU 03d pickfirstBalancer: HandleSubConnStateChange: 0xc4204964f0, READY
2018-10-03 13:22:01.663 UTC [channelCmd] InitCmdFactory -> INFO 03e Endorser and orderer connections initialized
Error: channel create configuration tx file not found open C:/Program Files/Git/etc/hyperledger/configtx/composer-channel.tx: no such file or directory

kiat@win10 MINGW64 /d/Work/Fabric/fabric-dev-servers
$ ./createPeerAdminCard.sh
Development only script for Hyperledger Fabric control
Running 'createPeerAdminCard.sh'
FABRIC_VERSION is set to 'hlfv12'
FABRIC_START_TIMEOUT is unset, assuming 15 (seconds)

Cannot use Composer version 1.5.2 2017-09-11 16:59:25 version of composer with fabric 1.2, v0.20 or higher is required

Conflict with PHP composer. In C:\ProgramData\ComposerSetup\bin rename composer.bat to pcomposer.bat

d:\Work\Fabric\fabric-samples\first-network>composer --version
v0.20.1

d:\Work\Fabric\fabric-samples\first-network>pcomposer --version
Composer version 1.5.2 2017-09-11 16:59:25

Creating a business network structure

kiat@win10 MINGW64 /d/Work/Fabric/fabric-dev-servers/cardtrading
$ yo hyperledger-composer:businessnetwork
Welcome to the business network generator
? Business network name: tutorial-network
? Business network name: tutorial-network
? Description:
? Description: Tutorial
? Author name:
? Author name:  kait
? Author email: kiatng@hotmail.com
? Author email: kiatng@hotmail.com
? License: (Apache-2.0)
? License: Apache-2.0
? Namespace: (org.example.biznet)
? Namespace: org.example.biznet
? Do you want to generate an empty template network? (Use arrow keys)
? Do you want to generate an empty template network? Yes: generate an empty temp
late network
   create package.json
   create README.md
   create models\org.example.biznet.cto
   create permissions.acl
   create .eslintrc.yml

Install and Deploy BNA file

composer network start --networkName cards-trading-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file cards-trading-admin.card

Error: Error trying to start business network. Error: No valid responses from any peers.

Try

  1. Edit line in D:\Work\Fabric\fabric-dev-servers\fabric-scripts\hlfv12\composer\docker-compose.yml: command: peer node start --peer-defaultchain=true
  2. [/d/Work/Fabric/fabric-dev-servers] .\teardownFabric.sh
  3. Restart docker from the whale hidden icon in task bar
  4. [/d/Work/Fabric/fabric-dev-servers] .\startFabric.sh
  5. [/d/Work/Fabric/fabric-dev-servers/kiat-samples/card-trading-network] composer network install --archiveFile cards-trading-network@0.0.1.bna --card PeerAdmin@hlfv1
  6. [/d/Work/Fabric/fabric-dev-servers/kiat-samples/card-trading-network] composer network start --networkName cards-trading-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file c ards-trading-admin.card
kiatng
Last edit
kiatng
Posted by kiatng to Fabric (2018-10-03 09:37)