Agent Installation Issues
Fix common platform and agent installation failures.
Installation Issues#
Common issues encountered during HEAL platform and agent installation.
Agent Package Creation Fails#
Symptom: The agent installer package creation script fails or produces an incomplete package (missing files, zero-byte tarball, or the script exits with an error before finishing).
Common Causes:
| Cause | Fix |
|---|---|
| Missing build dependencies | Ensure required tools are present before running the script: rpm -q tar gzip java. Install any missing package (for example yum install -y tar gzip) and confirm Java 8+ with java -version. |
| Wrong build / working path | Run the package script from the agent build directory it expects, not from an arbitrary location. Verify the target output path exists and is writable: ls -ld <build_dir>. Correct any hard-coded path in agent-details.json before re-running. |
| Permission issues on the build directory | The script must run as a user that can read the source and write the output. Fix ownership: chown -R heal:heal <build_dir> and re-run as the heal user, not as root. |
Incorrect agent-details.json configuration |
Validate the JSON (python -m json.tool agent-details.json) and confirm the component name, version, and host details match the intended agent. A malformed or mismatched entry aborts package creation. |
| Incomplete tarball produced | Verify the package contents after build: tar -tzf <package>.tar.gz | head. A truncated archive usually means the script ran out of disk space (df -h) or was interrupted — free space and rebuild from a clean directory. |
See also: Platform/server install failures (RPM, Percona, Consul).
Agent Installation Fails on Target Server#
Symptom: The agent installer script fails during execution on the target server.
Common Causes:
| Cause | Fix |
|---|---|
heal user doesn't exist |
Create: useradd -m heal && passwd heal |
/home/heal permissions wrong |
Fix: chown -R heal:heal /home/heal |
heal user in root group |
Remove: gpasswd -d heal root |
| SELinux blocking | Check: getenforce — set to Permissive if needed |
| Port 9998 not reachable | Verify: curl -skI https://heal-lb.example.com:9998/ |
Java / Tomcat Setup Issues#
Symptom: Tomcat doesn't start or doesn't listen on the expected port.
Common Causes:
| Cause | Fix |
|---|---|
| Java not installed or wrong version | Verify: java -version — HEAL requires Java 8+ |
| Port 8084 already in use | Check: netstat -tunlp | grep 8084 — kill conflicting process |
| JMX port 11001 conflict | Old Java process holding port — kill all Java processes and restart |
| JAVA_HOME not set | Set in ~/.bashrc or Tomcat's setenv.sh |
/etc/hosts Missing HAProxy Entry#
Symptom: Agents can't connect to the HEAL platform.
Fix:
# Add the HAProxy entry
echo "<HEAL_PRIMARY_IP> heal-lb.example.com" >> /etc/hosts
# Verify
ping -c 1 heal-lb.example.com
Next
- HEAL Installation Issues — platform and server install failures (RPM, Percona, Consul).
- Agent Issues — troubleshoot agents that install but won't connect or report.
- Troubleshooting Overview — the full HEAL troubleshooting map.