Skip to content

CA not starting or failing

CA not starting or failing in Jump to a symptom.

3 min read Updated SS RS

CA not starting or failing#

Case 1: Agent Mapping#

The error is as below:

2021-05-27 10:04:09.404 [main] ERROR
c.a.a.c.core.ComponentAgentMain:62 - null
java.lang.NullPointerException: null

Follow the steps below to rectify the issue:

1. Check the component_agent table for the agent ID and its details.

2. This issue can occur when the agent is added via API and the mapping is missed due to a JSON issue.

Case 2: Unable to connect to HEAL Server#

The CA cannot reach the HEAL server to fetch config data, so it does not start. The expected error is:

2021-12-08 10:15:00.714 [main] ERROR
c.a.a.c.core.ComponentAgentMain:60 - E2022: Data service not
responding, for uid "e570de02-c585-4917-bbb7-5c97b35e-514" and url
"https://heal.example.com:9998/appsone-controlcenter/v2.0/api/agent-config-data",
stopping component agent.

To resolve this, test connectivity:

telnet heal.example.com 9998
curl https://heal.example.com:9998/appsone-controlcenter/v2.0/api/agent-config-data

1. Check whether the curl command connects and then returns Received HTTP code 503 from proxy after CONNECT.

2. Check for proxy details:

env | grep -i proxy

3. If no proxy detail is found, confirm with the infrastructure team. In this case the issue was with the proxy-server connection; after removing the proxy the agent was able to fetch data.

Unable to Install/Run CA#

Case 1: Verify security settings#

1. Verify build integrity: confirm a valid build and validate its checksum. Ensure the platform is supported and certified.

2. Validate libraries and permissions: check for required libraries and permissions:

ldd

3. Follow the installation guide: execute all steps as outlined. If installation fails, capture any errors or exceptions encountered.

Case 2: Keycloak Host Entry#

1. The error is displayed as below:

java.net.UnknownHostException: keycloak.example
[main] ERROR c.a.a.c.core.ComponentAgentMain:59 - E1037: Agent
details received from broker "e570de02-c585-4917-bbb7-5c97b35e-67"
identifier is not same as requested "e570de02-c585-4917-bbb7-5c97b35e-10"
identifier, stopping component agent.

2. Cause: the host entry for Keycloak is missing on the CA server, so config details cannot be fetched for the configured identifier.

3. Solution: add a keycloak.example entry to the hosts file. This enables the CA to start and fetch config data.

Case 3: Agent Mapping Unavailable in DB#

1. The error is displayed as below:

2020-03-09 11:34:18.548 [main] ERROR
c.a.a.c.core.ComponentAgentMain:61 - null
java.lang.NullPointerException: null

2. Cause: NullPointerException due to a missing agent-to-account mapping in the DB.

3. Solution: check agent_account_mapping for the Component Agent mapping, ensure the agent-to-instance mapping exists in agent_comp_instance_mapping, and verify valid agent-to-instance and agent-to-account mappings in the DB.

Note: Update the missing mappings in the respective tables for successful CA startup.

Case 4: Component Agent Startup Issue#

The error is displayed as below:

2020-11-26 17:17:27.539 [main] WARN
c.a.a.e.utility.cache.MasterCache:29 - No config data received from control center
2020-11-26 17:17:28.121 [main] ERROR
c.a.a.c.conf.impl.DSConfigProvider:216 - Rest Call Returned Following Error
request url : https://192.0.2.88:9111/appsone-controlcenter/v2.0/api/agent-config-data?identifier=e570de02-c585-4917-bbb7-5c97b35e-10
response code: 403

Solution:

1. Uncomment the following lines in haproxy.cfg:

[root@app-host-01 HAPROXY]# grep deny haproxy.cfg
#http-request deny if !{ req.hdr(host) -i str keycloak.example ||
  req.hdr(host) -i str keycloak.example:9998 }

2. Restart HAProxy.

3. Restart GRPC.

Case 5: Unable to Start with 512 MB Heap Memory#

The Component Agent fails to start with 512 MB heap.

Solution: instead of fetching the entire config data, use the agent-specific config-data URL:

https://keycloak.example:8443/appsone-controlcenter/v2.0/api/agent-config-data

Note: Fetching the entire config data causes performance issues, impacting CA startup with 512 MB heap.

Case 6: Node.js Service Impact Due to CA#

Starting the Component Agent on a server impacted the Node.js service due to a port conflict caused by the Fetch_TLS_Availability.sh script.

Solution: disable the Fetch_TLS_Availability.sh script on the affected host to prevent the service disruption.

Starting CA with a Single Core#

The Component Agent could not start because the system had only one CPU core, failing the prerequisite check.

Error log:

Script execution indicates failure due to only one available CPU core,
despite passing other checks including Java version, bit version, RAM,
and disk space.

Solution: adjust the pre-requisite-install.sh script to accommodate single-core systems by changing the core-requirement check from a minimum of two cores to one:

if [ $OS_NAME = "Linux" ]; then
  no_of_cores=$(cat /proc/cpuinfo | grep processor | wc -l)
  if [ $no_of_cores -ge 1 ]; then
    logit "Cpu Core checked Pass: Available Core is $no_of_cores"
  else
    logit "Cpu Core checked Failed: Available Core is $no_of_cores"
    Result_Status=1
  fi
fi