Skip to content

Supervisor Agent Issues

Troubleshoot Supervisor startup failures, missing status, and restart problems.

6 min read Updated SS RS

Below are the troubleshooting of Supervisor agent issues:

  • Unable to Start Supervisor Agent
  • Case 1: Invalid Config.json file
  • Case 2: Library Conflict
  • Case 3: Unable to Launch Agent from Control Center
  • Case 4: Supervisor Service Failure on Windows
  • Case 5: Untar Issue
  • Agent Status is not Displayed in the UI
  • Supervisor Fails to Start After Server Reboot
  • Supervisor Not Restarting After Server Reboot
  • Issue in Checking Agent Status from Control Center (CC)

For reference:
The following section contains basic Linux commands: Basic Commands

Unable to Start Supervisor Agent#

Case 1: Invalid Config.json file#

1. Check the config.json file as below:

[appsone@dbhost supervisor_linux_build]$ ./supervisor.sh start
date: error while loading shared libraries:
/home/appsone/supervisor_linux_build/dependencies/libc.so.6: ELF
file OS ABI invalid
Starting Supervisor
sleep: error while loading shared libraries:
/home/appsone/supervisor_linux_build/dependencies/libc.so.6: ELF
file OS ABI invalid
date: error while loading shared libraries:
/home/appsone/supervisor_linux_build/dependencies/libc.so.6: ELF
file OS ABI invalid
Supervisor failed [ ]

The Syntax error is observed in the config.json config file of the Supervisor.

2. After the update of json file, validate the syntax in the config.json file through the Jsonlint website.

Case 2: Library Conflict#

1. Execute the following command to verify if all the required libraries for the agent have been successfully resolved.

ldd supervisor

For Example:

root@apphost:/perf/appsone/a1Agents/Supervisor# ldd Supervisor

Expected Output:

Supervisor needs:
Cannot find libboost_system-mt.a
Cannot find libboost_thread-mt.a
/usr/lib/libpthreads.a(shr_xpg5_64.o)
Cannot           find        libnghttp2_asio.a(libnghttp2_asio.so.1)
Cannot           find        libnghttp2.a(libnghttp2.so.14)
Cannot           find        libzmq.a(libzmq.so.5)
/usr/lib/libc.a(shr_64.o)
/unix
/usr/lib/libcrypt.a(shr_64.o)

2. Check the libraries on which supervisors executable relies on.

root@apphost:/perf/appsone/a1Agents/Supervisor#
LIBPATH=./dependencies ldd Supervisor

Expected Output:

exec(): 0509-036 Cannot load program /bin/ksh because of the
following errors:
0509-130 Symbol resolution failed for ksh because:
0509-136 Symbol ___strcmp (number 0) is not exported from
dependent module ./dependencies/libc.a(shr.o).
0509-136 Symbol ___strcpy (number 5) is not exported from
dependent module ./dependencies/libc.a(shr.o).
0509-136 Symbol __setjmp (number 31) is not exported from
dependent module ./dependencies/libc.a(shr.o).
0509-192 Examine .loader section symbols with the
'dump -Tv' command.

3. In cases of library conflicts, follow the below steps:

a. Validate if all the libraries needed for the agent are resolved by running the below command:

ldd supervisor

b. If library conflicts occur, you can rename the respective conflicting library in the agent directory or move it to another location.

c. Ensure that the environment variable LIBPATH is correctly set to the agent's dependency directory.

For example:

export LIBPATH=/opt/Agents/Supervisor/dependencies
chmod 755 /opt/Agents/Supervisor/schemas/*

The above steps will resolve library conflicts and Supervisor to start properly.

Note: If the Supervisor is not starting on AIX, the steps provided should be followed to set the LIBPATH environment variable and adjust permissions.

Case 3: Unable to Launch Agent from Control Center#

The Control Center is unable to initiate the Supervisor agent due to an IP configuration discrepancy.

1. The discrepancy was observed due to the configuration of Supervisor agent with a public IP address, where it was needed to communicate using private IP addresses.

2. Update the Supervisor agent's IP address to the private IP in the "supervisor_details " table within the Percona database.

3. After the update of IP address, the Supervisor Controller successfully established communication with the target server using the private IP.

Case 4: Supervisor Service Failure on Windows#

Supervisor fails to start as a Windows service with Error -1067.

1. The failure is attributed to improper configuration of the download URL and agents directory path (specifically the path delimiter).

a. Download the files by performing the following configuration settings:

"packages": {"url":
"https://hapxoxy.example:9998/downloads","timeOut":
60,"fileExtension": ".zip"},

b. Navigate to the configuration file directory by following the below configuration settings:

"apps_dir": "C:/Healagents",

2. Correct the configuration by ensuring the accurate specification of the download URL and agents directory path.

3. Use the forward slashes "/" in the path for proper functionality.

Case 5: Untar Issue#

Issue : Getting below error while starting supervisor agent.

date:
/HEAL/HealAgents/Supervisor_Linux_2.1.2.12/dependencies/libc.so.6:
version GLIBC_2.14' not found (required by date) date:
/HEAL/HealAgents/Supervisor_Linux_2.1.2.12/dependencies/libc.so.6:
version GLIBC_2.17' not found (required by date)
Starting Supervisor
sleep:
/HEAL/HealAgents/Supervisor_Linux_2.1.2.12/dependencies/libc.so.6:
version GLIBC_2.14' not found (required by sleep) date:
/HEAL/HealAgents/Supervisor_Linux_2.1.2.12/dependencies/libc.so.6:
version GLIBC_2.14' not found (required by date)
date:
/HEAL/HealAgents/Supervisor_Linux_2.1.2.12/dependencies/libc.so.6:
version `GLIBC_2.17' not found (required by date)

RCA (not confirmed) : We suspect files and libraries got corrupted while untarring the supervisor build.

Solution : Untar the build again freshly and the start the supervisor.

Agent Status is not Displayed in UI#

The problem at hand pertains to the inability to initiate or terminate agents through the control center, with the associated agent status failing to reflect accurately within the user interface.

1. Navigate to 'physical_agent ' table, and adjust the 'is_command_executed ' field to 1 for the 'physical_agent ' identifier.

2. The below error message is displayed:

Signature check failed for file
/home/user/heal/ComponentAgent/e570de02-c585-4917-bbb7-5c97b35e-
266-physical/selfheal/start.sh

Then inspect and ensure the correctness of the path designated for the 'ForensicAgent ' key in the 'supervisor' 'config.json ' configuration file.

There may have been a misconfiguration in this path.

Supervisor Fails to Start After Server Reboot#

The Supervisor Agent was previously operational; however, after a server restart, attempts to initiate the Supervisor agent have been unsuccessful.

Description:

Operating System: RHEL 6.10 Supervisor Version: Mon Sep 28 15:24:17 IST 2020

Error:

Upon executing the 'supervisor.sh start ' script, the following error is encountered:

/tmp/null:Permission required

Root Cause Analysis (RCA):

Upon investigation, it was discovered that the '/tmp ' folder had limited permissions for the 'heal' user. It only possessed 'read' and 'execute' permissions, whereas it should also have 'write' permissions for the 'heal' user.

Solution:

By granting the 'heal ' user 'read ' and 'write ' permissions on the '/tmp ' folder, the Supervisor agent was able to start successfully.

Supervisor Not Restarting After Server Reboot#

Following a server reboot, the Supervisor does not automatically restart. Follow the below steps to rectify the issue:

1. Log Analysis:

a. To investigate the issue, review the system logs in below file:

/var/log/messages

b. Use the below command to filter relevant entries.

grep -i supervisor /var/log/messages

c. Check for messages indicating whether the start process failed or succeeded. A successful start is indicated by “Supervisor monitor started [<pid>] ”.

2. Identifying Permission Issues: The problem was traced to a lack of execute permissions for the Supervisor file located in the below directory.

/etc/init.d

3. Setting Execute Permissions: Modify the file permissions to allow execution by executing below command.

chmod +x /etc/init.d/supervisor

4. Validation: After changing the permissions, validate the functionality by rebooting the server and ensuring that the Supervisor restarts automatically.

Issue in Checking Agent Status from Control Center (CC)#

An error was encountered in the Control Center when attempting to check the status of agents. The logs revealed a certificate mismatch issue as below:

Error while sending response to DS. Reason: I/O error on POST
request for "https://keycloak.example:4443/appson
e-controlcenter/v2.0/api/commands/038f4fb8-5122-4a9e-977b-
ce668b9c40a1/audit": Certificate for <keycloak.example> doesn't
match any of the subject alternative names: [*app.example.com]; nested
exception is javax.net.ssl.SSLPeerUnverifiedException: Certificate
for <keycloak.example> doesn't match any of the subject alternative
names: [*app.example.com]

Solution:

1. Configuration Update: Update the supervisor-controller- conf.properties.tpl file to rectify the hostname issues.

2. Nomad File Adjustment: Add an extra host entry in the keycloak.nomad file:

extra_host "heal.example(custom-hostname):192.0.2.9"

3. Template Configuration: Modify the conf.properties.tpl file located at below directory:

/opt/appnomic/Appsone_Service/conf-template/supervisor-controller/

with the following entries:

Keycloak configuration to get access token:
<password> key "service/keycloak/custom-hostname" }}
keycloak.port={{ key "service/keycloak/port/https" }}
keycloak.user=appsoneadmin
keycloak.pass=<base64-password>
Data Service Server Configuration:
ds.address={{ key "service/keycloak/custom-hostname"}}
ds.port={{ key "service/keycloak/port/https"}}

4. Validation and Outcome:

a. After implementing these changes, it was possible to start, stop, and restart the Supervisor Agent through the CC UI.

b. This resolved the issue, enabling visibility of the agent status from the Control Center.

Supervisor Agent creation curl not working#

Issue : While creating the supervisor agent the curl command was not working.

Supervisor Agent creation curl not working