Error: "Unable to establish a connection with Real-time metrics component. Please verify the Cloud Proxy status and review the logs."
book
Article ID: 440220
calendar_today
Updated On:
Products
VCF Operations
Issue/Introduction
The "Real-time metrics" component (VODAP) has been deployed from the VCF Operations UI, Build > Lifecycle > Components as per Deploy Real-Time Metrics
The Real-time Metrics Store (Build > Lifecycle > Components) is deployed with a Medium or Large size. (This can be verified by clicking on the Real-time Metrics Store link at the path mentioned.)
An error message similar to the following may be seen in the VODAPAdapter log, located in directory: /storage/log/vcops/log/adapters/VODAPAdapter on the Unified Cloud Proxy
Ensure that kubectl is working as expected and the SSH is connected to a Control Plane node by running the following command:
kubectl get nodes -o wide NOTE: This kubectl command must complete sucessfully and return a list of nodes before continuing.
Download the script attached to this KB and save as repair-clickhouse-shard-ddl.sh
Using an SCP utility (e.g. Winscp), copy this downloaded file to /tmp directory on the same Control Plane node that the SSH session is connected to above.
Return to the SSH session and run the following commands:
If the final line of the output from the previous command is as follows, DO NOT CONTINUE:
All <N> ClickHouse pods report the same table count (<N>) in database 'vcf_ops_datastore'. No skew indicated by counts; nothing to repair. Exiting.
Only If the output of the previous command shows a difference in the count of Tables in the section:
=== Table counts per pod (read-only) ===
Then run the following command:
bash /tmp/repair-clickhouse-shard-ddl.sh --apply
Once the script has completed return to the VCF Operations UI and verify that Operate > Workbench > Real Time Analysis > Overview is now working as expected.