As you can see network is running
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b33ee58cff04 hyperledger/fabric-peer:1.4.0 "peer node start --p…" 2 minutes ago Up 2 minutes 0.0.0.0:7151->7051/tcp, 0.0.0.0:7152->7052/tcp, 0.0.0.0:7153->7053/tcp peer0.org2.hurley.lab
4e5f88113b8c hyperledger/fabric-peer:1.4.0 "peer node start --p…" 2 minutes ago Up 2 minutes 0.0.0.0:7051-7053->7051-7053/tcp peer0.org1.hurley.lab
e486d8bb7d29 hyperledger/fabric-couchdb:0.4.14 "tini -- /docker-ent…" 2 minutes ago Up 2 minutes 4369/tcp, 9100/tcp, 0.0.0.0:5184->5984/tcp couchdb.peer0.org2.hurley.lab
cb3d0de40305 hyperledger/fabric-ca:1.4.0 "fabric-ca-server st…" 2 minutes ago Up 2 minutes 0.0.0.0:7054->7054/tcp ca.org1.hurley.lab
4b38dd90f868 hyperledger/fabric-couchdb:0.4.14 "tini -- /docker-ent…" 2 minutes ago Up 2 minutes 4369/tcp, 9100/tcp, 0.0.0.0:5084->5984/tcp couchdb.peer0.org1.hurley.lab
7a3ee55e179f hyperledger/fabric-orderer:1.4.0 "orderer" 2 minutes ago Up 2 minutes 0.0.0.0:7050->7050/tcp orderer.hurley.lab
18597c61f5d3 hyperledger/fabric-ca:1.4.0 "fabric-ca-server st…" 2 minutes ago Up 2 minutes 0.0.0.0:7154->7054/tcp ca.org2.hurley.lab
Edit: I was running from incorrect folder..I think.
[hurley] - installing smart contract located at /home/vishswasb/work/learn/fabric-samples/chaincode/fabcar/javascript/lib
Installing Chaincode fabcar version 1.0 at org1
2019-04-08 08:01:07.541 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc
2019-04-08 08:01:07.542 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc
Error: Bad response: 500 - error installing chaincode code fabcar:1.0(chaincode /var/hyperledger/production/chaincodes/fabcar.1.0 exists)
Installed Chaincode fabcar version 1.0 at org1
Installing Chaincode fabcar version 1.0 at org2
2019-04-08 08:01:07.608 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc
2019-04-08 08:01:07.608 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc
Error: Bad response: 500 - error installing chaincode code fabcar:1.0(chaincode /var/hyperledger/production/chaincodes/fabcar.1.0 exists)
Installed Chaincode fabcar version 1.0 at org2
Instantiating Chaincode at org1 for channel ch1
It may take a few minutes depending on the chaincode dependencies
2019-04-08 08:01:17.699 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc
2019-04-08 08:01:17.699 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg transaction returned with failure: Error: You've asked to invoke a function that does not exist: init
[hurley] - Found error while running script!
(node:16823) UnhandledPromiseRejectionWarning: Error: Errors found in script, stopping execution
at Object.<anonymous> (/usr/lib/node_modules/@worldsibu/hurley/dist/utils/sysWrapper.js:116:27)
at step (/usr/lib/node_modules/@worldsibu/hurley/node_modules/tslib/tslib.js:133:27)
at Object.next (/usr/lib/node_modules/@worldsibu/hurley/node_modules/tslib/tslib.js:114:57)
at /usr/lib/node_modules/@worldsibu/hurley/node_modules/tslib/tslib.js:107:75
at new Promise (<anonymous>)
at Object.__awaiter (/usr/lib/node_modules/@worldsibu/hurley/node_modules/tslib/tslib.js:103:16)
at Object.execContent (/usr/lib/node_modules/@worldsibu/hurley/dist/utils/sysWrapper.js:112:24)
at InstallChaincodeShGenerator.BaseGenerator.run (/usr/lib/node_modules/@worldsibu/hurley/dist/generators/base.js:18:40)
at ChaincodeGenerator.install (/usr/lib/node_modules/@worldsibu/hurley/dist/generators/chaincodeGenerator.js:58:35)
at ChaincodeCLI.<anonymous> (/usr/lib/node_modules/@worldsibu/hurley/dist/cli.js:351:55)
(node:16823) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:16823) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I am trying to install fabcar javascript
chaincode from fabric-samples/chaincode/fabcar/javascript
folder using this command hurl install fabcar node 1
. Here is the log:
[hurley] - installing smart contract located at /home/vishswasb/work/learn/fabric-samples/chaincode/fabcar/go
Installing Chaincode fabcar version 1.0 at org1
2019-04-08 07:54:57.638 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc
2019-04-08 07:54:57.638 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc
Error: error getting chaincode code fabcar: Unknown chaincodeType: UNDEFINED
Installed Chaincode fabcar version 1.0 at org1
Installing Chaincode fabcar version 1.0 at org2
2019-04-08 07:54:57.701 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc
2019-04-08 07:54:57.701 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc
Error: error getting chaincode code fabcar: Unknown chaincodeType: UNDEFINED
Installed Chaincode fabcar version 1.0 at org2
Instantiating Chaincode at org1 for channel ch1
It may take a few minutes depending on the chaincode dependencies
2019-04-08 07:55:07.777 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc
2019-04-08 07:55:07.777 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg cannot get package for chaincode (fabcar:1.0)
[hurley] - Found error while running script!
(node:15538) UnhandledPromiseRejectionWarning: Error: Errors found in script, stopping execution
at Object.<anonymous> (/usr/lib/node_modules/@worldsibu/hurley/dist/utils/sysWrapper.js:116:27)
at step (/usr/lib/node_modules/@worldsibu/hurley/node_modules/tslib/tslib.js:133:27)
at Object.next (/usr/lib/node_modules/@worldsibu/hurley/node_modules/tslib/tslib.js:114:57)
at /usr/lib/node_modules/@worldsibu/hurley/node_modules/tslib/tslib.js:107:75
at new Promise (<anonymous>)
at Object.__awaiter (/usr/lib/node_modules/@worldsibu/hurley/node_modules/tslib/tslib.js:103:16)
at Object.execContent (/usr/lib/node_modules/@worldsibu/hurley/dist/utils/sysWrapper.js:112:24)
at InstallChaincodeShGenerator.BaseGenerator.run (/usr/lib/node_modules/@worldsibu/hurley/dist/generators/base.js:18:40)
at ChaincodeGenerator.install (/usr/lib/node_modules/@worldsibu/hurley/dist/generators/chaincodeGenerator.js:58:35)
at ChaincodeCLI.<anonymous> (/usr/lib/node_modules/@worldsibu/hurley/dist/cli.js:351:55)
(node:15538) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:15538) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
vishswasb@IMCHLT263:~/work/learn/fabric-samples/chaincode/fabcar/go$ cd ..
vishswasb@IMCHLT263:~/work/learn/fabric-samples/chaincode/fabcar$ cd javascript
vishswasb@IMCHLT263:~/work/learn/fabric-samples/chaincode/fabcar/javascript$ hurl install fabcar node 1
[hurley] - installing smart contract located at /home/vishswasb/work/learn/fabric-samples/chaincode/fabcar/javascript
Installing Chaincode fabcar version 1.0 at org1
2019-04-08 07:55:17.748 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc
2019-04-08 07:55:17.748 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc
2019-04-08 07:55:17.935 IST [chaincodeCmd] install -> INFO 003 Installed remotely response:<status:200 payload:"OK" >
Installed Chaincode fabcar version 1.0 at org1
Installing Chaincode fabcar version 1.0 at org2
2019-04-08 07:55:18.005 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc
2019-04-08 07:55:18.005 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc
2019-04-08 07:55:18.512 IST [chaincodeCmd] install -> INFO 003 Installed remotely response:<status:200 payload:"OK" >
Installed Chaincode fabcar version 1.0 at org2
Instantiating Chaincode at org1 for channel ch1
It may take a few minutes depending on the chaincode dependencies
2019-04-08 07:55:28.605 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc
2019-04-08 07:55:28.605 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg transaction returned with failure: Error: You've asked to invoke a function that does not exist: init
[hurley] - Found error while running script!
(node:15637) UnhandledPromiseRejectionWarning: Error: Errors found in script, stopping execution
at Object.<anonymous> (/usr/lib/node_modules/@worldsibu/hurley/dist/utils/sysWrapper.js:116:27)
at step (/usr/lib/node_modules/@worldsibu/hurley/node_modules/tslib/tslib.js:133:27)
at Object.next (/usr/lib/node_modules/@worldsibu/hurley/node_modules/tslib/tslib.js:114:57)
at /usr/lib/node_modules/@worldsibu/hurley/node_modules/tslib/tslib.js:107:75
at new Promise (<anonymous>)
at Object.__awaiter (/usr/lib/node_modules/@worldsibu/hurley/node_modules/tslib/tslib.js:103:16)
at Object.execContent (/usr/lib/node_modules/@worldsibu/hurley/dist/utils/sysWrapper.js:112:24)
at InstallChaincodeShGenerator.BaseGenerator.run (/usr/lib/node_modules/@worldsibu/hurley/dist/generators/base.js:18:40)
at ChaincodeGenerator.install (/usr/lib/node_modules/@worldsibu/hurley/dist/generators/chaincodeGenerator.js:58:35)
at ChaincodeCLI.<anonymous> (/usr/lib/node_modules/@worldsibu/hurley/dist/cli.js:351:55)
(node:15637) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:15637) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.