hyperledger-archives / caliper

A blockchain benchmark framework to measure performance of multiple blockchain solutions
Apache License 2.0
74 stars 24 forks source link

First round test failing and hanging up #39

Open l4l opened 6 years ago

l4l commented 6 years ago

Hey! I've tried to check fabric benchmarks but something went wrong

Run via:

npm install && npm install fabric{,-ca}-client
node benchmark/simple/main.js
**** End-to-end flow: testing 'open' ****
----test round 0----
started monitor successfully
info: [EventHub.js]: _connect - options {"grpc.ssl_target_name_override":"peer0.org1.example.com","grpc.default_authority":"peer0.org1.example.com","request-timeout":120000}
info: [EventHub.js]: _connect - options {"grpc.ssl_target_name_override":"peer1.org2.example.com","grpc.default_authority":"peer1.org2.example.com","request-timeout":120000}
start client 22613:opening accounts
Client 22613: error Error: "admin" parameter must be of type boolean
    at Client.newTransactionID (/home/kitsu/dev/caliper/node_modules/fabric-client/lib/Client.js:463:11)
    at Object.invokebycontext (/home/kitsu/dev/caliper/src/fabric/e2eUtils.js:508:28)
    at Fabric.invokeSmartContract (/home/kitsu/dev/caliper/src/fabric/fabric.js:84:25)
    at Blockchain.invokeSmartContract (/home/kitsu/dev/caliper/src/comm/blockchain.js:100:31)
    at Object.module.exports.run (/home/kitsu/dev/caliper/benchmark/simple/open.js:29:15)
    at prev.then (/home/kitsu/dev/caliper/src/comm/bench-client.js:91:34)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
(node:22613) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: "admin" parameter must be of type boolean
(node:22613) [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.
info: [EventHub.js]: _connect - options {"grpc.ssl_target_name_override":"peer1.org2.example.com","grpc.default_authority":"peer1.org2.example.com","request-timeout":120000}
start client 22618:opening accounts
Client 22618: error Error: "admin" parameter must be of type boolean
    at Client.newTransactionID (/home/kitsu/dev/caliper/node_modules/fabric-client/lib/Client.js:463:11)
    at Object.invokebycontext (/home/kitsu/dev/caliper/src/fabric/e2eUtils.js:508:28)
    at Fabric.invokeSmartContract (/home/kitsu/dev/caliper/src/fabric/fabric.js:84:25)
    at Blockchain.invokeSmartContract (/home/kitsu/dev/caliper/src/comm/blockchain.js:100:31)
    at Object.module.exports.run (/home/kitsu/dev/caliper/benchmark/simple/open.js:29:15)
    at prev.then (/home/kitsu/dev/caliper/src/comm/bench-client.js:91:34)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
(node:22618) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: "admin" parameter must be of type boolean
(node:22618) [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.
info: [EventHub.js]: _connect - options {"grpc.ssl_target_name_override":"peer1.org2.example.com","grpc.default_authority":"peer1.org2.example.com","request-timeout":120000}
start client 22612:opening accounts
Client 22612: error Error: "admin" parameter must be of type boolean
    at Client.newTransactionID (/home/kitsu/dev/caliper/node_modules/fabric-client/lib/Client.js:463:11)
    at Object.invokebycontext (/home/kitsu/dev/caliper/src/fabric/e2eUtils.js:508:28)
    at Fabric.invokeSmartContract (/home/kitsu/dev/caliper/src/fabric/fabric.js:84:25)
    at Blockchain.invokeSmartContract (/home/kitsu/dev/caliper/src/comm/blockchain.js:100:31)
    at Object.module.exports.run (/home/kitsu/dev/caliper/benchmark/simple/open.js:29:15)
    at prev.then (/home/kitsu/dev/caliper/src/comm/bench-client.js:91:34)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
(node:22612) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: "admin" parameter must be of type boolean
(node:22612) [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.
start client 22624:opening accounts
Client 22624: error Error: "admin" parameter must be of type boolean
    at Client.newTransactionID (/home/kitsu/dev/caliper/node_modules/fabric-client/lib/Client.js:463:11)
    at Object.invokebycontext (/home/kitsu/dev/caliper/src/fabric/e2eUtils.js:508:28)
    at Fabric.invokeSmartContract (/home/kitsu/dev/caliper/src/fabric/fabric.js:84:25)
    at Blockchain.invokeSmartContract (/home/kitsu/dev/caliper/src/comm/blockchain.js:100:31)
    at Object.module.exports.run (/home/kitsu/dev/caliper/benchmark/simple/open.js:29:15)
    at prev.then (/home/kitsu/dev/caliper/src/comm/bench-client.js:91:34)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
(node:22624) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: "admin" parameter must be of type boolean
(node:22624) [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.
info: [EventHub.js]: _connect - options {"grpc.ssl_target_name_override":"peer1.org2.example.com","grpc.default_authority":"peer1.org2.example.com","request-timeout":120000}
start client 22630:opening accounts
Client 22630: error Error: "admin" parameter must be of type boolean
    at Client.newTransactionID (/home/kitsu/dev/caliper/node_modules/fabric-client/lib/Client.js:463:11)
    at Object.invokebycontext (/home/kitsu/dev/caliper/src/fabric/e2eUtils.js:508:28)
    at Fabric.invokeSmartContract (/home/kitsu/dev/caliper/src/fabric/fabric.js:84:25)
    at Blockchain.invokeSmartContract (/home/kitsu/dev/caliper/src/comm/blockchain.js:100:31)
    at Object.module.exports.run (/home/kitsu/dev/caliper/benchmark/simple/open.js:29:15)
    at prev.then (/home/kitsu/dev/caliper/src/comm/bench-client.js:91:34)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
(node:22630) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: "admin" parameter must be of type boolean
(node:22630) [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.
haojun commented 6 years ago

Can you try fabric-sdk-node-1.0.0 or commit 509b86a0b37fdb8e0d84847428494bd3660b43eb that's the version we are using now. Not sure if the error is caused by the update of fabric-sdk-node, we may update caliper later when fabric v1.1 is officially released.

l4l commented 6 years ago

Ah, I see. Works fine with the 1.0.0

I leave issue open until fix for newer version is ready, if you don't mind