Upgrade Issues and Resolutions
Checks, known issues and fixes for the v2.4.1 upgrade.
These issues were seen during upgrades from HEAL v2.3.4 to HEAL v2.4.1. They do not occur in every environment: apply a resolution only if you see the same symptom. The upgrade itself is described in Upgrade from HEAL v2.3.4 to HEAL v2.4.1 and Installation. In the commands, <a1home> is the HEAL installation directory.
Before you start the upgrade#
-
Close all open signals. In the
<a1home>/HEAL_Upgrade_2.4.1directory, run the signal cleanup:./upgrade.sh closesignalsThen check in the HEAL UI (Signals) that every signal, and its events and anomalies, is closed. You can also check in OpenSearch Dashboards that no open events, anomalies or signals remain. Start the upgrade only when everything is closed (see Prerequisites, steps 11 and 12). 2. HA only: check that Percona replication is running and in sync on every node, with no replication errors (see Prerequisites, step 13).
Issues while running the upgrade#
genconf.py is missing from the upgrade configuration directory#
Symptom: the upgrade stops with an error about genconf.py.
Resolution: copy genconf.py from the existing configuration directory to the upgrade configuration directory:
cp <a1home>/conf/genconf.py <a1home>/HEAL_Upgrade_2.4.1/conf/
The Percona login check in upgrade.sh fails with correct credentials#
Symptom: upgrade.sh reports the following error, although the Percona credentials are correct and you can log in to Percona:
Entered user name or Password is not correct
Exit code: 1
Cause: a known issue in the build. The MySQL command in lib/database.sh (line 112) uses --ssl-mode=disabled. With caching_sha2_password, Percona 8.4 can reject this connection while its authentication cache is empty (MySQL error 2061). The script writes the real error to /tmp/null, so it is not shown.
Workaround: until a fixed build is available:
-
In the
<a1home>/HEAL_Upgrade_2.4.1directory, back up the file:cp lib/database.sh lib/database.sh.orig -
In
lib/database.sh, add--get-server-public-keyto the MySQL connection command (line 112). - Run the upgrade again.
startServices.sh fails when run from the build directory#
Cause: the script must run from the HEAL installation directory, not from the build directory.
Resolution: go to <a1home> and run startServices.sh from there.
Issues when the services start#
Docker containers keep running after the Nomad jobs are stopped#
Cause: the Nomad servers run different Nomad versions.
Resolution:
-
Check the Nomad version of every server member:
nomad server members -
Upgrade Nomad on the servers that differ, so that every server runs the Nomad version that the HEAL v2.4.1 build requires.
- Restart the Nomad service on those servers.
OpenSearch nodes exit with code 1 after the upgrade#
Cause: path.repo is set to /usr/share/opensearch/opensearchsnapshot, but the regenerated OpenSearch Nomad job files do not mount that directory, so OpenSearch cannot reach its snapshot repository.
Resolution: add the snapshot mount point as described in Prerequisites, step 7:
- Create the snapshot directory on the host if it does not exist.
- Add the volume mount to every OpenSearch Nomad job file.
- Restart the OpenSearch jobs, and check that every OpenSearch node starts and joins the cluster.
The HAProxy container exits with code 1#
Cause: a known issue in the HAProxy 3.3.10 image. When the Consul key service/haproxy/log/status is ENABLE, the container runs service rsyslog start at startup, but the image does not contain rsyslog.
Workaround:
-
Set the Consul key to
DISABLE:consul kv put service/haproxy/log/status DISABLE -
Restart the HAProxy Nomad job.
HAProxy file logging stays disabled until a corrected HAProxy image is available.
Issues after the upgrade#
Component Agent: read timeout when it fetches its configuration#
Symptom: Component Agent data collection fails, and the agent log shows a read timeout on the Control Center API:
ERROR c.a.a.c.core.util.HttpClient:214 - Error during Rest Call, request url:https://<cc_host>:9998/heal-controlcenter/v2.0/api/agent-config-data
java.net.SocketTimeoutException: Read timed out
Cause: the Control Center API responds, but more slowly than the timeouts set in the Component Agent.
Resolution: increase the timeouts in the Component Agent’s advanced.properties file:
component.agent.conf.request.time.out=45
component.agent.conf.socket.read.time.out=60
The agent then retrieves its configuration data.
Event Detector: RabbitMQ PRECONDITION_FAILED for x-dead-letter-exchange#
Symptom: the Event Detector log shows:
channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'x-dead-letter-exchange' for queue 'anomaly-messages' in vhost '/': received none but current is the value 'notification.dlx' of type 'longstr', class-id=50, method-id=10)
Cause: the services declare the queue without the x-dead-letter-exchange argument that the existing queue has (notification.dlx), because they do not pick up the RabbitMQ address.
Resolution: in the Nomad job files of the Event Detector, Supervisor Controller, Control Center and Data Emitter, rename the parameter RABBITMQ_ADDRESS to RABBTIMQ_ADDRESS, then restart those jobs. This is the workaround for the misspelled parameter in the configuration templates, described in Post Installation.
Event Detector: document_missing_exception during bulk indexing#
Symptom: the OpenSearch client is healthy, but the Event Detector log shows document_missing_exception during bulk indexing.
Cause: signals that were not closed properly leave stale open-signal keys in Redis.
Resolution:
- Open a shell in the Redis container and connect with
redis-cli. - Look for keys that match
*/signals/open*. -
For the affected application, check whether its signal is still open, then delete the stale key:
hgetall /applications/<application_id>/signals/open del /applications/<application_id>/signals/open -
Check that the corresponding signal is closed.
Notification Processor: RabbitMQ unknown delivery tag#
Symptom: the Notification Processor log repeatedly shows:
ERROR o.s.a.r.c.CachingConnectionFactory:781 - Shutdown Signal: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - unknown delivery tag 1, class-id=60, method-id=80)
Cause: the RabbitMQ acknowledgement mode.
Resolution:
-
Change the acknowledgement mode from
AUTOtoMANUAL:consul kv put service/notificationprocessor/rabbitmq/signalMessage/ackMode MANUAL consul kv put service/notificationprocessor/rabbitmq/customAlert/ackMode MANUAL -
Restart the Notification Processor.
- Check its log: the error no longer appears.
Signals do not close#
Symptom: signals are not closed in the HEAL UI.
Resolution:
- Log in to the UI 2.x dashboard and go to Settings > Anomaly Settings.
- Change any one of the existing values and click Update.
- Check in the HEAL UI that the signals are closed.
Escalation levels do not trigger#
Symptom: escalation levels do not trigger, and the HEAL Redis Microservice log shows errors about service transaction thresholds.
Cause: the notification_flag column is missing from the service_transaction_thresholds table.
Resolution:
-
In Percona, add the column:
ALTER TABLE `service_transaction_thresholds` ADD COLUMN `notification_flag` TINYINT NOT NULL DEFAULT 1; -
Check that the column exists, then check the HEAL Redis Microservice log.
- Check that the escalation levels trigger.
Control Center shows a blank page when opened by IP address#
Symptom: the Control Center UI is blank when you open it with the server IP address, but loads with the host name.
Workaround: open the Control Center with its configured host name. The cause is not confirmed: in one case, the server’s IP address was in the blocked-cookies list of Microsoft Edge.
Final checks after the upgrade#
After the upgrade and any fixes, check that:
- All HEAL services are up and running, and the Docker containers run as expected.
- All Nomad server members run the same, required Nomad version.
- Percona replication is in sync (HA only).
- Component Agents connect and collect data.
- The Event Detector log shows no RabbitMQ or OpenSearch errors.
- The Notification Processor works and acknowledges RabbitMQ messages.
- Signals, anomalies and events are created and closed.
- Escalation levels and notifications trigger.
- The HEAL UI dashboards show all components working.
Review the application logs after every configuration change.