Last update:
Last verified version: AMC 3.2.1
Issue
When debugging GRPC connectivity issues between your components (for example Management Center to Analysis Cockpit), you might encounter an error similar to the following one:
{
"LEVEL":"Warning",
"MESSAGE":"could not dial grpc",
"MODULE":"api",
"REQUEST_IP":"172.16.30.20",
"TIME":"2023-03-06T12:35:37Z",
"USER":"admin",
"error":"context deadline exceeded",
"host":"cockpit3.domain.local:7443"
}
Solution
There is no workaround for this type of error. The error usually occurs because one of the following things are preventing proper communication between your components:
-
Firewall is using TLS Inspection
-
Proxy is using TLS Inspection
-
DNS Issues
Your components expect specific certificates from each other when communicating. If a device is trying to inspect TLS traffic, the certificate will change and you receive the above error.
To help you figuring out what is causing the problem, you can try the following. You can use openssl on your source system to see which certificate is presented by the destination host (change the host and port values as needed).
nextron@management-center:~$ openssl s_client -host cockpit3.domain.local -port 7443
CONNECTED(00000005)
depth=0 O = Nextron Systems GmbH, CN = cockpit3.domain.local
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 O = Nextron Systems GmbH, CN = cockpit3.domain.local
verify error:num=21:unable to verify the first certificate
verify return:1
write W BLOCK
---
Certificate chain
0 s:O = Nextron Systems GmbH, CN = cockpit3.domain.local
i:O = Nextron Systems GmbH, CN = Analysis Cockpit 3
---
Server certificate
-----BEGIN CERTIFICATE-----
The marked lines show you the certificate which is presented by the destination host. If this certificate is different from the one you installed, then the problem might be a device trying to do TLS Inspection.
We are currently working on improving the presented error message, to give a better understanding what might be the issue at hand.
Related Content
- THOR in Lab-Mode does not scan network or external drives
- THOR Scan Error: No rules with DEEPSCAN tag found
- Troubleshooting Cockpit Login Error and MySQL Connection Issues
- GRPC Connectivity Issues: Understanding TLS Inspection Errors and Solutions
- Resolving Elasticsearch Data Acceptance Issues Due to Disk Watermark Limit