Topics

I got "Handshake failed with fatal error" but transaction was made #fabric #raft #fabric-chaincode #fabric-orderer #tls


ever4cys@...
 

Hi members,

I built my HLF network based on v2.0 test-network and have 3 instances in GCP.
- Instance 1 : cli, peer0.meters, peer1.hq, ca.org1, orderer0
- Instance 2 : peer0.hq, peer1.meters, orderer1
- Instance 3 : orderer2
** port : 7050(orderers), 7051(peer0s), 9051(peer1s)

I did
1) building network with several dockers in several GCP instances
2) creating and joining channel
3) deploying chaincode with CLI (invoking initLedger was OK)
4) query or invoke(add new item) with Javascript SDK (on Instance 1)

When I made a query or invoke transaction, there were errors. (with query it was done with several errors but with invoke it was endless with errors)
Strangely, even though there were errors, the transaction was made so that when I query the data I got correct results.

Please let me know how I can solve this problem.

-- Error logs are :

client$ node run.js
Wallet path: /mvp/client/wallet
2020-03-26T08:55:25.481Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Committer- name: orderer1.hlf.sesu.ai:7050, url:grpcs://localhost:7050
2020-03-26T08:55:25.483Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server orderer1.hlf.sesu.ai:7050 url:grpcs://localhost:7050 timeout:3000
2020-03-26T08:55:25.483Z - error: [DiscoveryService]: _buildOrderer[mychannel] - Unable to connect to the discovered orderer orderer1.hlf.sesu.ai:7050 due to Error: Failed to connect before the deadline on Committer- name: orderer1.hlf.sesu.ai:7050, url:grpcs://localhost:7050
2020-03-26T08:55:28.485Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Committer- name: orderer2.hlf.sesu.ai:7050, url:grpcs://localhost:7050
2020-03-26T08:55:28.485Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server orderer2.hlf.sesu.ai:7050 url:grpcs://localhost:7050 timeout:3000
2020-03-26T08:55:28.485Z - error: [DiscoveryService]: _buildOrderer[mychannel] - Unable to connect to the discovered orderer orderer2.hlf.sesu.ai:7050 due to Error: Failed to connect before the deadline on Committer- name: orderer2.hlf.sesu.ai:7050, url:grpcs://localhost:7050
E0326 08:55:28.504952765 31040 ssl_transport_security.cc:1245] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed.
E0326 08:55:29.503497987 31040 ssl_transport_security.cc:1245] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed.
E0326 08:55:31.059896844 31040 ssl_transport_security.cc:1245] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed.
2020-03-26T08:55:31.502Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Endorser- name: peer0.hq.mvp.hlf.sesu.ai:7051, url:grpcs://localhost:7051
2020-03-26T08:55:31.503Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server peer0.hq.mvp.hlf.sesu.ai:7051 url:grpcs://localhost:7051 timeout:3000
2020-03-26T08:55:31.503Z - error: [DiscoveryService]: _buildPeer[mychannel] - Unable to connect to the discovered peer peer0.hq.mvp.hlf.sesu.ai:7051 due to Error: Failed to connect before the deadline on Endorser- name: peer0.hq.mvp.hlf.sesu.ai:7051, url:grpcs://localhost:7051
E0326 08:55:31.517656864 31040 ssl_transport_security.cc:1245] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed.
E0326 08:55:32.518323116 31040 ssl_transport_security.cc:1245] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed.
E0326 08:55:33.584906071 31040 ssl_transport_security.cc:1245] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed.
E0326 08:55:33.942981475 31040 ssl_transport_security.cc:1245] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed.
2020-03-26T08:55:34.517Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Endorser- name: peer1.meters.mvp.hlf.sesu.ai:9051, url:grpcs://localhost:9051
2020-03-26T08:55:34.517Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server peer1.meters.mvp.hlf.sesu.ai:9051 url:grpcs://localhost:9051 timeout:3000
2020-03-26T08:55:34.517Z - error: [DiscoveryService]: _buildPeer[mychannel] - Unable to connect to the discovered peer peer1.meters.mvp.hlf.sesu.ai:9051 due to Error: Failed to connect before the deadline on Endorser- name: peer1.meters.mvp.hlf.sesu.ai:9051, url:grpcs://localhost:9051
Transaction has been evaluated, result is: [{"Key":"key000000","Record":{"cumEnergy":0,"time":"2020-01-01-00-00-00.000","version":"01.01"}}]

---- till here

The above result was come from the first query so that it shows the result of initLedger.
After inserting another data and querying, it shows all inserted data.

Thanks all.