You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide some context for your error. For example, when did the error occur? What were you trying to achieve, and how?
I have modified the basic chaincode available in fabric-samples and added custom contract functions. These functions take a long time to run (~4-10 seconds). I am trying to benchmark these functions using caliper. The benchmarks run successfully when I set the txNumber: 1 (in my benchmarkConfig file) however when I set the txNumber: 5 I get the following error :
Everything works well on the peer side as I have set the CHAINCODE_EXECUTETIMEOUT=200s. However, I am not sure how to increase the timeout for the caliper workers. I am passing the --caliper-fabric-timeout-invokeorquery 600 flag to launch manager command but that does not seem to do the trick.
P.S - I have looked at #755 but the link to which @aklenik points to seems broken and I cannot figure out where invokeSmartContract is called. I tried searching for this function in the source code/documentation but couldn't find it as well, not sure if this function was removed in the newer versions of caliper.
What was the observed incorrect behavior?
Benchmark should run without the workers timing out
Please provide the error logs and their surroundings.
caliper | 2022.02.26-19:47:23.094 info [caliper] [worker-message-handler] Worker#0 is starting Round#5
caliper | 2022.02.26-19:47:23.095 info [caliper] [caliper-worker] Worker #0 starting workload loop
caliper | 2022.02.26-19:47:28.095 info [caliper] [default-observer] [Assign Round 5 Transaction Info] - Submitted: 5 Succ: 0 Fail:0 Unfinished:5
caliper | 2022.02.26-19:47:33.096 info [caliper] [default-observer] [Assign Round 5 Transaction Info] - Submitted: 5 Succ: 0 Fail:0 Unfinished:5
caliper | 2022.02.26-19:47:38.097 info [caliper] [default-observer] [Assign Round 5 Transaction Info] - Submitted: 5 Succ: 0 Fail:0 Unfinished:5
caliper | 2022.02.26-19:47:43.098 info [caliper] [default-observer] [Assign Round 5 Transaction Info] - Submitted: 5 Succ: 0 Fail:0 Unfinished:5
caliper | 2022.02.26-19:47:48.099 info [caliper] [default-observer] [Assign Round 5 Transaction Info] - Submitted: 5 Succ: 0 Fail:0 Unfinished:5
caliper | 2022.02.26-19:47:53.100 info [caliper] [default-observer] [Assign Round 5 Transaction Info] - Submitted: 5 Succ: 0 Fail:0 Unfinished:5
caliper | 2022-02-26T19:47:53.109Z - error: [Endorser]: sendProposal[peer0.org2.example.com:11051] - peer0.org2.example.com:11051 timed out after: 30000
caliper | 2022-02-26T19:47:53.110Z - error: [Endorser]: sendProposal[peer0.org1.example.com:7051] - peer0.org1.example.com:7051 timed out after: 30000
caliper | 2022-02-26T19:47:53.110Z - error: [Endorser]: sendProposal[peer0.org2.example.com:11051] - rejecting with: Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.110Z - error: [Endorser]: sendProposal[peer0.org1.example.com:7051] - rejecting with: Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.111Z - error: [DiscoveryHandler]: _build_endorse_group_member >> G1:0 - error on endorsement to peer0.org2.example.com:11051 error Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.111Z - error: [DiscoveryHandler]: _build_endorse_group_member >> G0:1 - error on endorsement to peer0.org1.example.com:7051 error Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.111Z - error: [Transaction]: Error: No valid responses from any peers. Errors:
caliper | peer=undefined, status=grpc, message=Endorsement has failed
caliper | 2022.02.26-19:47:53.112 error [caliper] [connectors/v2/FabricGateway] Failed to perform submit transaction [CreateAssignAsset] using arguments [425788883384,blue,20,penguin,500], with error: Error: No valid responses from any peers. Errors:
caliper | peer=undefined, status=grpc, message=Endorsement has failed
caliper | at newEndorsementError (/home/node/.npm-global/lib/node_modules/fabric-network/lib/transaction.js:49:12)
caliper | at getResponsePayload (/home/node/.npm-global/lib/node_modules/fabric-network/lib/transaction.js:17:23)
caliper | at Transaction.submit (/home/node/.npm-global/lib/node_modules/fabric-network/lib/transaction.js:212:28)
caliper | at process._tickCallback (internal/process/next_tick.js:68:7)
caliper | 2022-02-26T19:47:53.298Z - error: [Endorser]: sendProposal[peer0.org2.example.com:11051] - peer0.org2.example.com:11051 timed out after: 30000
caliper | 2022-02-26T19:47:53.299Z - error: [Endorser]: sendProposal[peer0.org2.example.com:11051] - rejecting with: Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.299Z - error: [DiscoveryHandler]: _build_endorse_group_member >> G1:0 - error on endorsement to peer0.org2.example.com:11051 error Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.300Z - error: [Endorser]: sendProposal[peer0.org1.example.com:7051] - peer0.org1.example.com:7051 timed out after: 30000
caliper | 2022-02-26T19:47:53.300Z - error: [Endorser]: sendProposal[peer0.org1.example.com:7051] - rejecting with: Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.300Z - error: [DiscoveryHandler]: _build_endorse_group_member >> G0:1 - error on endorsement to peer0.org1.example.com:7051 error Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.301Z - error: [Transaction]: Error: No valid responses from any peers. Errors:
caliper | peer=undefined, status=grpc, message=Endorsement has failed
caliper | 2022.02.26-19:47:53.301 error [caliper] [connectors/v2/FabricGateway] Failed to perform submit transaction [CreateAssignAsset] using arguments [81793907602,blue,20,penguin,500], with error: Error: No valid responses from any peers. Errors:
caliper | peer=undefined, status=grpc, message=Endorsement has failed
caliper | at newEndorsementError (/home/node/.npm-global/lib/node_modules/fabric-network/lib/transaction.js:49:12)
caliper | at getResponsePayload (/home/node/.npm-global/lib/node_modules/fabric-network/lib/transaction.js:17:23)
caliper | at Transaction.submit (/home/node/.npm-global/lib/node_modules/fabric-network/lib/transaction.js:212:28)
caliper | at process._tickCallback (internal/process/next_tick.js:68:7)
caliper | 2022-02-26T19:47:53.501Z - error: [Endorser]: sendProposal[peer0.org2.example.com:11051] - peer0.org2.example.com:11051 timed out after: 30000
caliper | 2022-02-26T19:47:53.502Z - error: [Endorser]: sendProposal[peer0.org1.example.com:7051] - peer0.org1.example.com:7051 timed out after: 30000
caliper | 2022-02-26T19:47:53.502Z - error: [Endorser]: sendProposal[peer0.org2.example.com:11051] - rejecting with: Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.502Z - error: [Endorser]: sendProposal[peer0.org1.example.com:7051] - rejecting with: Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.502Z - error: [DiscoveryHandler]: _build_endorse_group_member >> G1:0 - error on endorsement to peer0.org2.example.com:11051 error Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.502Z - error: [DiscoveryHandler]: _build_endorse_group_member >> G0:1 - error on endorsement to peer0.org1.example.com:7051 error Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.502Z - error: [Transaction]: Error: No valid responses from any peers. Errors:
caliper | peer=undefined, status=grpc, message=Endorsement has failed
caliper | 2022.02.26-19:47:53.502 error [caliper] [connectors/v2/FabricGateway] Failed to perform submit transaction [CreateAssignAsset] using arguments [1616188639044,blue,20,penguin,500], with error: Error: No valid responses from any peers. Errors:
caliper | peer=undefined, status=grpc, message=Endorsement has failed
caliper | at newEndorsementError (/home/node/.npm-global/lib/node_modules/fabric-network/lib/transaction.js:49:12)
caliper | at getResponsePayload (/home/node/.npm-global/lib/node_modules/fabric-network/lib/transaction.js:17:23)
caliper | at Transaction.submit (/home/node/.npm-global/lib/node_modules/fabric-network/lib/transaction.js:212:28)
caliper | at process._tickCallback (internal/process/next_tick.js:68:7)
caliper | 2022-02-26T19:47:53.699Z - error: [Endorser]: sendProposal[peer0.org2.example.com:11051] - peer0.org2.example.com:11051 timed out after: 30000
caliper | 2022-02-26T19:47:53.700Z - error: [Endorser]: sendProposal[peer0.org1.example.com:7051] - peer0.org1.example.com:7051 timed out after: 30000
caliper | 2022-02-26T19:47:53.700Z - error: [Endorser]: sendProposal[peer0.org2.example.com:11051] - rejecting with: Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.700Z - error: [Endorser]: sendProposal[peer0.org1.example.com:7051] - rejecting with: Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.700Z - error: [DiscoveryHandler]: _build_endorse_group_member >> G1:0 - error on endorsement to peer0.org2.example.com:11051 error Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.700Z - error: [DiscoveryHandler]: _build_endorse_group_member >> G0:1 - error on endorsement to peer0.org1.example.com:7051 error Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.700Z - error: [Transaction]: Error: No valid responses from any peers. Errors:
caliper | peer=undefined, status=grpc, message=Endorsement has failed
caliper | 2022.02.26-19:47:53.700 error [caliper] [connectors/v2/FabricGateway] Failed to perform submit transaction [CreateAssignAsset] using arguments [20769495052,blue,20,penguin,500], with error: Error: No valid responses from any peers. Errors:
caliper | peer=undefined, status=grpc, message=Endorsement has failed
caliper | at newEndorsementError (/home/node/.npm-global/lib/node_modules/fabric-network/lib/transaction.js:49:12)
caliper | at getResponsePayload (/home/node/.npm-global/lib/node_modules/fabric-network/lib/transaction.js:17:23)
caliper | at Transaction.submit (/home/node/.npm-global/lib/node_modules/fabric-network/lib/transaction.js:212:28)
caliper | at process._tickCallback (internal/process/next_tick.js:68:7)
caliper | 2022-02-26T19:47:53.900Z - error: [Endorser]: sendProposal[peer0.org2.example.com:11051] - peer0.org2.example.com:11051 timed out after: 30000
caliper | 2022-02-26T19:47:53.901Z - error: [Endorser]: sendProposal[peer0.org1.example.com:7051] - peer0.org1.example.com:7051 timed out after: 30000
caliper | 2022-02-26T19:47:53.901Z - error: [Endorser]: sendProposal[peer0.org2.example.com:11051] - rejecting with: Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.901Z - error: [Endorser]: sendProposal[peer0.org1.example.com:7051] - rejecting with: Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.901Z - error: [DiscoveryHandler]: _build_endorse_group_member >> G1:0 - error on endorsement to peer0.org2.example.com:11051 error Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.901Z - error: [DiscoveryHandler]: _build_endorse_group_member >> G0:1 - error on endorsement to peer0.org1.example.com:7051 error Error: REQUEST TIMEOUT
caliper | 2022-02-26T19:47:53.901Z - error: [Transaction]: Error: No valid responses from any peers. Errors:
caliper | peer=undefined, status=grpc, message=Endorsement has failed
caliper | 2022.02.26-19:47:53.901 error [caliper] [connectors/v2/FabricGateway] Failed to perform submit transaction [CreateAssignAsset] using arguments [685219497620,blue,20,penguin,500], with error: Error: No valid responses from any peers. Errors:
caliper | peer=undefined, status=grpc, message=Endorsement has failed
caliper | at newEndorsementError (/home/node/.npm-global/lib/node_modules/fabric-network/lib/transaction.js:49:12)
caliper | at getResponsePayload (/home/node/.npm-global/lib/node_modules/fabric-network/lib/transaction.js:17:23)
caliper | at Transaction.submit (/home/node/.npm-global/lib/node_modules/fabric-network/lib/transaction.js:212:28)
caliper | at process._tickCallback (internal/process/next_tick.js:68:7)
caliper | 2022.02.26-19:47:54.977 info [caliper] [connectors/v2/FabricGateway] disconnecting gateway for user User1
caliper | 2022.02.26-19:47:54.977 info [caliper] [worker-message-handler] Worker#0 finished Round#5
Please provide your benchmark configuration file content, if possible.
The invokeorquery option only influences the overall submit process (ie from submission to comitted) and doesn't affect the timeout for the endorse part which the node sdk defaults to 30 seconds, and it doesn't look like the node-sdk provides any other way to alter this default value except via code so unfortunately it's not possible at the moment to change that timeout without changing the caliper code.
Which Caliper version are you using?
v0.4.2
Which Node.JS version are you using?
v10.19.0
Which operating system are you using?
Ubuntu 20.04 LTS
Please provide some context for your error. For example, when did the error occur? What were you trying to achieve, and how?
I have modified the basic chaincode available in fabric-samples and added custom contract functions. These functions take a long time to run (~4-10 seconds). I am trying to benchmark these functions using caliper. The benchmarks run successfully when I set the
txNumber: 1
(in my benchmarkConfig file) however when I set thetxNumber: 5
I get the following error :Everything works well on the peer side as I have set the
CHAINCODE_EXECUTETIMEOUT=200s
. However, I am not sure how to increase the timeout for the caliper workers. I am passing the--caliper-fabric-timeout-invokeorquery 600
flag to launch manager command but that does not seem to do the trick.P.S - I have looked at #755 but the link to which @aklenik points to seems broken and I cannot figure out where
invokeSmartContract
is called. I tried searching for this function in the source code/documentation but couldn't find it as well, not sure if this function was removed in the newer versions of caliper.What was the observed incorrect behavior?
Benchmark should run without the workers timing out
Please provide the error logs and their surroundings.
Please provide your benchmark configuration file content, if possible.
Please provide your network configuration file content, if possible.
Please provide your workload module content, if possible.
Please provide any additional information you deem relevant to the error.
No response
The text was updated successfully, but these errors were encountered: