Case 2: Certificate Issues
Case 2: Certificate Issues in CA - WebLogic KPI Issues.
Case 2: Certificate Issues#
The errors are as below.
1st type:
2022-04-08 12:43:24.578 [nioEventLoopGroup-4-3] DEBUG
i.n.h.s.ReferenceCountedOpenSslEngine:81 - SSL_do_handshake failed:
OpenSSL error: error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seeded
2nd type:
2022-04-08 12:43:42.137 [ScheduledDataSender RUNNING] INFO
c.a.a.c.c.s.ScheduledDataSender:47 - Number of component instances
drained from the queue: 4.
3rd type:
2022-04-08 12:43:42.147 [ScheduledDataSender RUNNING] ERROR
c.a.a.c.core.util.GRPCClient:84 - Error during processing message from the queue [KPI-Data]
io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:233)
...
Caused by: javax.net.ssl.SSLHandshakeException: error:24064064:random number
generator:SSLEAY_RAND_BYTES:PRNG not seeded
at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.shutdownWithError(ReferenceCountedOpenSslEngine.java:876)
Follow the steps below to rectify the issue:
1. Check the certificate import and identify potential issues:
openssl s_client -connect corpapp.example:9111
This provides the details for connecting to the server. If the certificate is not present, address the certificate-related issue with the target/server side.
Case 3: CA Unable to Transmit Data to GRPC (Certificate/IP mismatch)#
Error: the CA logs indicated a StatusRuntimeException: UNAVAILABLE due to an I/O exception, involving an SSLHandshakeException: No subject alternative names matching IP address 192.0.2.98 found.
Solution: the data_communication_details table contained an extraneous GRPC entry with IP address 192.0.2.98. The mismatch between hostname and IP caused the error, because the certificate was generated using the hostname, but the agent-detail.json data-address key and basic.properties referenced the IP.
select * from data_communication_details;
id | name | protocol_id | host | port | status
1 | Appsone GRPC | 84 | 127.0.0.1 | 9150 | 1
2 | GRPC | 20 | haproxy.example | 9111 | 1
3 | GRPC | 20 | 192.0.2.175 | 9111 | 1
Update the host column of the third row to match the certificate hostname. This resolved the issue and data collection started.
Unable to Send Data to GRPC/HAProxy#
1. Network connectivity: confirm there are no network issues between the target agent and the HAProxy IP/port. Use telnet to test the connection.
2. HAProxy configuration: ensure HAProxy can handle the total connections from the target servers. Check the maxconn global variable in haproxy.cfg for connection limits.
3. HAProxy configuration check: review haproxy.cfg for frontend port or URL changes, and confirm backend service availability.
GRPC Connection Issues#
Case 1: Unsupported TLS/SSL Version#
1. SSLHandshakeException:
No X509TrustManager implementation available.
2. Cause: Java lacks TLSv1.2 support.
3. Solution: upgrade to Java 1.7.95 or above, which supports TLSv1.2.
Next — Return to the Reference & Troubleshooting Overview, or continue with Supervisor Agent Issues and JIM Agent Issues.