Agent Maintenance Tool Issues
Troubleshoot AMT problems including duplicate log agents, installer failures and multi-command file generation errors.
Below are the troubleshooting of Agent Maintenance Tool issues:
- Multiple Log Agents for a Single Target Server
- NoSuchAlgorithmException Post TLSv1.3 Upgrade
- Agent Installer Issue
- Case 1: Runtime Environment Issues
- Case 2: start.bat Script Issues
- Multi-Command File Generation Errors
For reference:
The following section contains basic Linux commands: Basic Commands
For the codes that an Agent Maintenance Tool command returns, see Command Response Codes in Agent Maintenance Tool: Command Structure.
Multiple Log Agents for a Single Target Server#
Two log agents were mapped to a single Component instance. However, when AMT executes its internal script, which includes a database query to fetch agent details, it expects the record count of log agents to be one.
Even with two agents mapped, AMT installs only one agent on the target server, using one of the physical identifiers.
Database Query Example: A query was executed to illustrate the issue:
mysql -h 192.0.2.155 -udbadmin -p<password> -P 3307 appsone -e
'select a.host_address host_address,s.identifier
supervisor_id,p.identifier physical_id,a.unique_token agentid from
agent a, physical_agent p, supervisor_details s where
a.physical_agent_id = p.id and a.host_address=s.host_address and
a.host_address='192.0.2.156' and a.agent_type_id=1'
Note: Using a password on the command line interface is insecure.
Potential Upgrade Issue: There is uncertainty regarding which agent identifier AMT will select during an upgrade process (stop, uninstall, download, install).
If AMT fails to pick the correct running agent identifier on the target, it may result in an 'agent identifier not found' exception.
Solution: It is advised to validate the configuration if there are multiple agents mapped to a single host. The Generating the Multi-Command File utility reports every such host in one pass, so the affected mappings can be identified in bulk.
NoSuchAlgorithmException Post TLSv1.3 Upgrade#
Post the mid-July TLSv1.3 upgrade feature release, there is a java.security.NoSuchAlgorithmException: TLSv1.3 SSLContext not available error occurring in AMT.
Solution:
1. JDK11 Requirement: To ensure AMT functions correctly after the TLS1.3 upgrade, it is essential to use JDK11 on the server where AMT is running or installed.
2. JAVA_HOME Configuration: Set JDK11 as the JAVA_HOME in the .bashrc file. This step is crucial for AMT’s compatibility with TLS1.3.
3. JDK11 Download Link: JDK11 can be downloaded from the following A1fs link:
your organization's software repository
Documents/A1FS/LATEST/5.x/AMT/AMT from QA-Mid-July/jdk-
11.0.11_linux-x64_bin.tar.gz?csf=1&web=1&e=u2xpcR
Implementing JDK11 and setting it as JAVA_HOME will resolve the TLSv1.3 SSLContext issue in AMT.
Agent Installer Issue#
Case 1: Runtime Environment Issues#
Agent installation on multiple applications is failed due to runtime environment issues with VC++ versions.
- The issue persists despite attempting installation using
HealAgent_v1.0.15.zipandHealAgent_v1.0.13.zip. - VC++ runtime (
VC_redist.x64.exe) installation also failed.
RCA: The customer environment had an outdated version of VC++ 2015 (v14.0.23026) that could not be uninstalled. The required VC++ 2017+ is part of the MS VC++ 2015–2022 installer, which includes all libraries from 2015–2022.
The installer was unable to overwrite/uninstall the existing VC++ 2015 library, causing the agent installation to fail.
Solution :
1. Ensure the target environment supports the MS VC++ 2015–2022 installer , which provides the required libraries.
2. Resolve issues with the uninstallation of the existing VC++ 2015 (v14.0.23026) library.
3. Once the existing library is removed, re-run the agent installation process.
4. Verify installation success with compatible runtime libraries.
Case 2: start.bat Script Issue#
During the installation of the Auto Discovery Agent, the start.bat script did not properly recognize the Java path and configuration file path, causing the agent to fail in reporting host and component data.
RCA:
a. The start.bat file was configured as follows:
@echo off
setlocal enabledelayedexpansion
set javaCmd="C:\Program Files\Appnomic Systems Pvt
Ltd\ZuluJre\bin\java.exe" -Djavax.net.ssl.trustStore="D:\Heal-
Agent\Agents\discovery-agent\config\cacerts" -jar "D:\Heal-
Agent\Agents\\discovery-agent\discovery-agent.jar"
cd /d D:\Heal-Agent\Agents\\discovery-agent
b. Despite updating the script, the changes were not reflected in the HEAL Control Center (CC).
Solution :
1. Update the start.bat script with the correct Java path and configuration details.
2. Add the necessary host and component instance arguments in the Tomcat start script:
Dcatalina.home=D:\TomcatAPP\Tomcat8.5.91API
Dcatalina.base=D:\TomcatAPP\Tomcat8.5.91API
Djava.io.tmpdir=D:\TomcatAPP\Tomcat8.5.91API\temp
Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
Djava.util.logging.config.file=D:\TomcatAPP\Tomcat8.5.91API\conf\log
ging.properties
Djava.rmi.server.hostname=192.0.2.86
Dcom.sun.management.jmxremote=true
Dcom.sun.management.jmxremote.port=9090
Dcom.sun.management.jmxremote.ssl=false
Dcom.sun.management.jmxremote.authenticate=false
D:\Heal-Agent\Agents\jim-agent\config\agent-cache.properties
D:\Heal-Agent\Agents\jim-agent\heal-jim-opentelemetry-javaagent-
1.2.3.jar
3. Restart the application.
Multi-Command File Generation Errors#
These are the messages and symptoms you may see when you run the fetch_agent_details_and_create_amt_commands.py utility described in Generating the Multi-Command File.
| Symptom | Cause and resolution |
|---|---|
ERROR: Could not import 'pymysql' |
The deps folder is missing or was separated from the script. Confirm the folder layout matches the one shown in Setting up the script folder, with deps/pymysql/ next to the script. Do not install the package on the HEAL server — report it to whoever packaged the utility. |
Failed to connect to MySQL |
Incorrect host, port, username or password; a firewall blocking the connection; or the MySQL service being down. |
Invalid port. Port must be numeric. |
A non-numeric value was entered at the port prompt. Re-run and enter digits only. |
Invalid value(s) for --files-to-fetch |
A file name outside the four permitted values was used. Check the spelling against the table in Running the script. |
| A host you expected is missing from both output files | Check the log for that host's supervisor identifier. It will show whether the host had no Component Agent, more than one, or no resolvable physical agent identifier. Correct the mapping and re-run. |
multiCommandTemplate.sh contains only the header row |
No host passed all three conditions in Which hosts are included. Check the summary line in the log for the breakdown. |