Skip to content

Latest commit

 

History

History
261 lines (213 loc) · 25.6 KB

File metadata and controls

261 lines (213 loc) · 25.6 KB

Caliper FAQ

I. Closed issues

  1. Q: cannot read property ‘getConnectivityState’
    A: first executive the command npm ls gRPC to check wether the gRPC version is 1.10.1, if not, please executive npm install grpc@1.10.1 at the root directory of caliper.
    Corresponding Issue or questions in rocket channel: Issue#206/155/91/56 *********************************************************************

  2. Q: instantiate chaincode error: sendPeersProposal –Promise is rejected: chaincode error (status: 500 message: is not a valid endorsement system chaincode )
    A: this is a sdk compatibility problem. Check the grpc and fabric version,if the version is wrong, please executive npm install grpc@1.10.1 fabric-ca-client@1.1.0 fabric-client@1.1.0 to make sure you install the right version.
    Corresponding Issue or questions in rocket channel: Issue#149/175/169/118 *********************************************************************

  3. Q: sendPeersProposal – Promise is rejected: Error: unavailable: connect failed at new createStatusError, SSL_ERROR_SSL: handshake failed with fatal error SSL_ERROR_SSL, SSL routines: ssl3_get_server_certificate: certificate verify failed
    A: make usre grpc request ports is right, json config same to yaml config.
    Corresponding Issue or questions in rocket channel: Issue#102 *********************************************************************

  4. Q: network 2org1peer_default not found
    A: modify CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=2-org-1-peer_default at the docker-composer.yaml file.
    Corresponding Issue or questions in rocket channel: Issue#145 *********************************************************************

  5. Q: failed to read monitoring data
    A: there is a lack of systeminformation and dockerode package. Please executive npm install ststeminformation dockerode mustache ps-node pidusage.
    Corresponding Issue or questions in rocket channel: Issue#4 *********************************************************************

  6. Q: failed to run composer test: ‘SIGSEGV: segmentation violation’
    A: add the environment variable GODEBUG=netdns=cgo to the containers at the docker-compose file
    Corresponding Issue or questions in rocket channel: Issue#15 *********************************************************************

  7. Q: cannot find module ’./api.js’
    A: install 1.1 libs,npm install fabric-ca-client@1.1.0 fabric-client@1.1.0
    Corresponding Issue or questions in rocket channel: Issue#65 *********************************************************************

  8. Q: instantiate chaincode error sendProposal – timeout after: 120000, sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT
    A: increase timeout value,at the /src/fabric/e2eUtils.js line214 : client.setConfigSetting(‘request-timeout’, 120000);
    Corresponding Issue or questions in rocket channel: Issue #137 *********************************************************************

  9. Q: sendPeersProposal – Promise is rejected: Error: unavailable: connect failed at new createStatusError, TypeSError: cannot read property ‘stack’ of undefined.
    A: One solution:
    a. ker-compose -f network/fabric-v11/2-org-2-peer/docker-compose.yaml up -d in another shell
    b. ove "start": "docker-compose -f network/fabric-v11/2-org-2-peer/docker-compose.yaml up -d", from config.json
    c. e benchmark/simple/main.js
    another solution:
    user the root user to executive the command.
    Corresponding Issue or questions in rocket channel: Issue#112 *********************************************************************

  10. Q: sendBroadcast – reject with BAD_REQUEST failed to create channels, cannot read property ‘getUpdates’ of undefined.
    A: the problem is related to docker,please executive docker stop $(docker ps -aq) and docker rm $(docker ps -aq)
    Corresponding Issue or questions in rocket channel: Issue#109/81/111 *********************************************************************

  11. Q: handshake failed with fatal error SSL_ERROR_SSL: error ssl routines ssl3_get_record: wrong version number.
    A: enable the TLS of the fabric, ORDERER_GENERAL_TLS_ENABLED=true
    Corresponding Issue or questions in rocket channel: https://chat.hyperledger.org/channel/caliper?msg=Hpx6wWfxvGKNR5Q5d
    *********************************************************************

  12. Q: npm ERR! grpc@1.10.1 install: node-pre-gyp install –fallback-to-build –library= static_library npm ERR! Failed at the frpc@1.10.1 install script. Nmp ERR! This is probably not a problem with npm. There is likely additional logging output above.
    A: please first insatll the node-gyp, if is ubuntu, executive sudo apt-get install node-gyp
    Corresponding Issue or questions in rocket channel: Issue #80 *********************************************************************

  13. Q: npm ERR! pkcs11js@1.0.15 install: node-gyp rebuild, npm ERR! Failed at the pkcs11js@1.0.15 install script.
    A: please first insatll the node-gyp, if is ubuntu, executive sudo apt-get install node-gyp
    Corresponding Issue or questions in rocket channel: Issue#79 *********************************************************************

  14. Q: syntaxError: unexpected token function
    A: check the node version, the command is node –v” or “nvm ls,make sure it is node 8.x
    Corresponding Issue or questions in rocket channel: Issue#73 *********************************************************************

  15. Q: is it possible to run caliper on windows 10 ?
    A: it is possible if all dependencies can be installed successfully, but never tried it .
    Corresponding Issue or questions in rocket channel: Issue#108 *********************************************************************

  16. Q: two network directories for fabric: network/fabric and network/fabric-v11.
    A: The original caliper as well as simplenetwork only support fabric v1.0 at the beginning, and then composer team add a new folder to include files they needed and named as fabric-v11 to disginguish with the old folder.
    Corresponding Issue or questions in rocket channel: Issue#88 *********************************************************************

  17. Q: “[Transaction Info] - Submitted: 15000 Succ: 268 Fail:14729 Unfinished:3”, timeout is too small, default value is used instead. Invoke chaincode failed, error: failed to get valid event notification.
    A: The reason of high failures may be due to the configured transaction rate exceeding the processing capacity of fabric and caliper itself. You can check the cpu usage of peers or bench-clients (it should be printed after each test round) to see if it is too high. You can lower the tps value in 'config-fabric.json' and run the test again to find out the maximum performance your SUT can reach
    Corresponding Issue or questions in rocket channel: Issue#9 *********************************************************************

  18. Q: How to benchmark a multi-hosts fabric network?
    A: Using caliper is completely independent of setting up the blockchain backend, the convenience ‘command.start’ script simplifies setting up things in development time, but it is optional, you can connect to an already running remote fabric network by setting the appropriate endpoints in the network config that is passed to caliper.
    Corresponding Issue or questions in rocket channel: Issue#181 *********************************************************************

  19. Q: Rate-control, unknown rate control type linear-rate, cannot understand the idea of rate-control function
    A: Adjust the composite rate controller to the new environment semantics
    Corresponding Issue or questions in rocket channel: Issue#8/142/123/106 *********************************************************************

  20. Q: Hard-coded MSPID
    A: The bug has been resolved, the mspid and domain names are read from the configuration file now.
    Corresponding Issue or questions in rocket channel: Issue#98 *********************************************************************

  21. Q: Limit size of the temp demo files, because the size of the log file grows continuously and may become too large.
    A: below is two solution.
    a. Disable launching demo related functions by configuration or command argument.
    b. Limit the max size of the log file, for example, limit the length of the ‘x-axis’ and contains the recent data.
    Corresponding Issue or questions in rocket channel: Issue#120 *********************************************************************

  22. Q: Instantiate chaincode error: [client-utils.js]: sendPeersProposal – promise is rejectecd: error:2 unknown:error starting container: post http://unix.sock/containers/create?name=dev-peer0.org1.example.com-simple-v0: dial unix /host/var/run/docker.sock: connect: permission denied.
    A: This seems to be a permission error on fabric side, reinstall docker, fix the problem.
    Corresponding Issue or questions in rocket channel: https://chat.hyperledger.org/channel/caliper?msg=FzE7SaSmN9pFyfh9m
    *********************************************************************

  23. Q: When using the same setup (containers, genesis block,policies), the result of simple network and balance transfer network are different. Why? Not sure , but I have some thoughts:
    A: please do the two step.
    a. please check whether the configuration of peers and orderers in both networks are the same, such as loglevel, tls, etc.
    b. Lower the sending rate. Now the sending rate is much higher than actual throughput, that may cause unsteady performance results.
    Corresponding Issue or questions in rocket channel: https://chat.hyperledger.org/channel/caliper?msg=NtpsQ7B7rmSEXHyc8
    *********************************************************************

  24. Q: requestError: Error: connect econn refused 127.0.0.8008 at new requestError (node_modules /request-promise-core/lib/errors.js)
    A: Please use docker-compose -f sawtooth /simplenetwork/sawtooth-simple.yaml, then try.
    Corresponding Issue or questions in rocket channel:
    *********************************************************************

  25. Q: Invoke chaincode failed, error:failed to get valid event notification at channel. sendTransaction.then.then(/src/fabric/e2eUtils.js)
    A: the machine cannot handle the > 100 TPS rates during the rounds when everything is running on the same host. Try lowering the TPS rates to 10 in config.json. in an environment with limited resources, the connections to the eventhubs might be abruptly closed, that is why you donnot get the notification.
    Corresponding Issue or questions in rocket channel:
    *********************************************************************

II. Open issues

1. Environment problems

1.1 Q: Composer.init() failed, error: failed to load connector module ‘composer-connector-undefined’ for connection type “undefined”. Run small bank benchmark use case with multiple validator docker containers, submit batches failed, requestError: error: socket hang up at new requestError (/node_modules/request-promise-core/lib/errors.js). but if trigger the test without commands and starting docker containers it will work properly.
Corresponding Issue or questions in rocket channel: Issue#64

1.2 Q: Error :[orderer.js]: sendBroadcast-on error: unavailable: connect failed at node_modules/grpc/src/client.js.
Corresponding Issue or questions in rocket channel: Issue#211

1.3 Q: sendPeersProposal-promise is rejected: error unavailable: connect failed at node_modules/grpc/src/client.js
Corresponding Issue or questions in rocket channel: Issue#205/204

1.4 Q: instantiate chaincode sendProposal –timed out, sendPeersProposal – promise is rejected error: request_timeout at timeout._ontimieout(fabric-client/lib/peer.js)
Corresponding Issue or questions in rocket channel: Issue#173

1.5 Q: instantiate chaincode sendproposal – timed out , sendPeersProposal – promise is rejected: error: request_timeout at timeout._ontimeout(node_modules/fabric-client/lib/Peer.js)
Corresponding Issue or questions in rocket channel: Issue#165

1.6 Q: create mychannel fail at channel.reduce.then.then(/src/fabric/create-channel.js)
Corresponding Issue or questions in rocket channel: Issue#152

1.7 Q: execute transaction timeout expired while executing transaction at createStatusError ( node_modules /grpc/src/client.js) sendPeersProposal – promise is rejected error chaincode error
Corresponding Issue or questions in rocket channel: Issue#143

1.8 Q: create mychannel sendbroadcast on error unavailable at createstatusError (node_modules/fabric-client/node_modules/grpc/src/client.js)
Corresponding Issue or questions in rocket channel: Issue#93

1.9 Q: SyntaxError: Unexpected end of JSON input &ERR_ipc_channel_closed
Corresponding Issue or questions in rocket channel: Issue#168

1.10 Q: No_node: exception:no_node at connectionManager.onsoucketdata(/node_modules.node-zookeeper-client/lib/connectionManager.js)
Corresponding Issue or questions in rocket channel: Issue#201

1.11 Q: Cannot specify config file in ‘npm test’ command while running caliper.
Corresponding Issue or questions in rocket channel: Issue#174

1.12 Q: ssl_transport_security.cc handshake failed with fatal error SSL_error_ssl
Corresponding Issue or questions in rocket channel: Issue#105

1.13 Q: TLS problem
Corresponding Issue or questions in rocket channel: Issue#163

1.14 Q: ssl_transport_security.cc handshake fad wileith fatal error SSL_error_ssl
Corresponding Issue or questions in rocket channel: Issue#153

1.15 Q: create-channel.js TLS path error
Corresponding Issue or questions in rocket channel: Issue#150

1.16 Q: Failed to load connector module “composer-connector-undefined”
Corresponding Issue or questions in rocket channel: Issue#64

1.17 Q: client : error:could not find context’s information in config file at fabric.getContest (/src/fabric/fabric.js)
Corresponding Issue or questions in rocket channel: Issue#104

2. Bug

2.1 Q: Using percpu_usage.length can cause invalid cpu statistics
Corresponding Issue or questions in rocket channel: Issue#114

3. Enhancement problems

3.1 Q: Add unified logging framework. The node sdk created a quite nice logging mechanism utilizing Winston, it could be reused in a license compatible way.
Corresponding Issue or questions in rocket channel: Issue#207

3.2 Q: Remove the tape tests from the benchmark flow
Corresponding Issue or questions in rocket channel: Issue#193

3.3 Q: refactoring promise chains to async/await
Corresponding Issue or questions in rocket channel: Issue#192

3.4 Q: support for fabric version above 1.1
Corresponding Issue or questions in rocket channel: Issue#185

3.5 Q: can you support tronprotocol?
Corresponding Issue or questions in rocket channel: Issue#183

3.6 Q: monitor disk r/w rate
Corresponding Issue or questions in rocket channel: Issue#140

3.7 Q: Support multiple orderers
Corresponding Issue or questions in rocket channel: Issue#139

3.8 Q: extract hard-coded constants to configurable variables
Corresponding Issue or questions in rocket channel: Issue#138

3.9 Q: extract common structures into separate files
Corresponding Issue or questions in rocket channel: Issue#119

3.10 Q: improve caliper to support long time testing
Corresponding Issue or questions in rocket channel: Issue#110

3.11 Q: Docker network default name error
Corresponding Issue or questions in rocket channel: Issue#198

3.12 Q: An enhancement suggestion and I would like to contribute to this project
Corresponding Issue or questions in rocket channel: Issue#92

3.13 Q: Change the invoke timeout from a constant value to a variable value and make the value related to sleep time.
Corresponding Issue or questions in rocket channel: Issue#131

3.14 Q: configing Fabric change block size , block timeout, the stateDB and consensus protocol.
Corresponding Issue or questions in rocket channel: Issue#154

4.General

4.1 Q: How to change maxmessagecount?
Corresponding Issue or questions in rocket channel: Issue#210

4.2 Q: Fabric query invocations depend on the block time parameter
Corresponding Issue or questions in rocket channel: Issue#199

4.3 Q: Support common connection profile feature of the new fabric node sdk
Corresponding Issue or questions in rocket channel: Issue#37

4.4 Q: Help using kafka for the ordering node
Corresponding Issue or questions in rocket channel: Issue#171

4.5 Q: how to test TPS in orderer with kafka
Corresponding Issue or questions in rocket channel: Issue#107

4.6 Q: Calculate the execution time in hyperledger caliper
Corresponding Issue or questions in rocket channel: Issue#172

4.7 Q: Implement proper chaincode query for fabric NBI
Corresponding Issue or questions in rocket channel: Issue#115

4.8 Q: How to disable TLS. Ssl_transport_security.cc
Corresponding Issue or questions in rocket channel: Issue#195

5. Unclassified issues

5.1 Q: Fabric.installSmartContract() failed, error: failed to send install Proposal or receive valid
Corresponding Issue or questions in rocket channel: Issue#166
label: 1 or 2

5.2 Q: [clinet-utils.js] sendPeersProposal – Promise is rejected: error:14 unavailable: TCP read failed at new createStatusError(node_modules/grpc/client.js), [orderer.js]: sendBroadcast – on error: 14 unavailable: TCP read failed at createStatusError(node_modules/grpc/src/client.js) failed, error: failed to send install Proposal or receive valid
Corresponding Issue or questions in rocket channel: Issue#127
label: 1 or 2

5.3 Q: Error undefined symbol: SSL_library_init while running simple test with hyperledger caliper failed, error: failed to send install Proposal or receive valid
Corresponding Issue or questions in rocket channel: Issue#70
label: 1 or 2

5.4 Q: Handshake failed with fatal error ssl_error_SSL when simple test for fabric error ssl routines ssl3_get_server_certificate:certificate verify failed. [orderer.js] sendbroadcast – on error : unavailable
Corresponding Issue or questions in rocket channel: Issue#27
label: 1 or 2

5.5 Q: Error: client encountered unexpected error at childProcess. (src/comm/client/client-util.js)
Corresponding Issue or questions in rocket channel: https://chat.hyperledger.org/channel/caliper?msg=EcZMeMEqRsTpwKoPW
label: 1 or 2

5.6 Q: Sawtooth: batchbuildFactory – custom batch builders
Corresponding Issue or questions in rocket channel: Issue#189
label: 1 or 2

5.7 Q: Error in register Tx event in fabric sdk nodejs
Corresponding Issue or questions in rocket channel: Issue#141
label: 1 or 2

5.8 Q: error invoke stoped. Unfinished number never decrease
Corresponding Issue or questions in rocket channel: Issue#130
label: 1 or 2

5.9 Q: Failed to invoke chaincode name: “basic-sample-network”,error: transaction returned with failure
Corresponding Issue or questions in rocket channel: Issue#101
label: 1 or 2

5.10 Q: Cannot deploy non-sample composer networks
Corresponding Issue or questions in rocket channel: Issue#96
label: 1 or 2

5.11 Q: Failed ‘open’testing, error: client encountered unexpected error at childprocess (/src/comm /client/client-util.js)
Corresponding Issue or questions in rocket channel: Issue#78
label: 1 or 2

5.12 Q: Why debug make error, while run is ok?
Corresponding Issue or questions in rocket channel: Issue#39
label: 1 or 2