Skip to content

Verifying Correct DNS Entry

Verifying Correct DNS Entry in Unable to Access UI.

4 min read Updated SS

Verifying Correct DNS Entry#

This procedure outlines the steps to ensure that the DNS entries are accurate.

1. Display the contents of the /etc/hosts file:

cat /etc/hosts

Expected Output:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6#
198.51.100.4    support.heal
192.0.2.2    server-01 server-01.example
192.0.2.2 opensearch-node1.example action-detector.example data-emitter.example data-receiver.example ui-service.example control-center.example jaeger-node1.example grafana.example incident-management-broker.example a1eventhandler.example mle.example keycloak.example signal-detector.example supervisorcontroller.example event-detector.example redis-service.example redis-node1.example rabbitmq-node1.example haproxy-node1.example advanced-analytics-ds.example heal-computed-service.example trinodb.example heal-scheduler-service.example heal-job-executor.example reporting-data-service.example

Note: Check if the keycloak host entry is present in the host file. If it's missing, add the keycloak host entry and validate.

2. Adding keycloak host entries:

i. Open the Vim text editor:

vi /etc/hosts

ii. Add the below keycloak host entry within the host file. Click the 'Insert' key to enter insert mode:

203.0.113.3 keycloak.example

3. To exit the Vim editor, click 'Esc' key and execute:

:wq!

Category Name is Incorrect in the UI#

Category name displayed in the UI is incorrect. During creation of the new Availability category, upgrade script reverted the old name as "DB Availability". Execute the below queries in sequence and validate:

update mst_category_details set name='WAS Availability' where id=134;
update mst_category_details set name='Availability' where id=53;

UI is not Working While collecting the APPSONEKEYCLOK Database Dump#

Keycloak service failing while collecting mysql dump, due to the size (105GB) of the dump.

Solution:

1. Execute the below command to collect single table dump and restore:

mysqldump -u <db_username> -h <db_host> -p db_name table_name > table_name.sql

2. For collecting dump, execute the below script:

#!/usr/bin/bash
i=0
while [ $i -le 248 ];
do
nval="${i}1"
echo ${nval}
mysqldump -h 192.0.2.35 -u dbadmin -P 3307 -p<password> --ssl-mode=disabled --skip-triggers --compact --no-create-info appsonekeycloak EVENT_ENTITY --where=" id is not null limit ${nval},10" > my_backup_$i.sql
i=$(expr $i + 1)
done

3. For restoring, execute the below script:

#!/usr/bin/bash
i=0
while [ $i -le 248 ];
do
mysql -h 192.0.2.35 -u dbadmin -P 3307 -p<password> --ssl-mode=disabled appsonekeycloak < my_backup_$i.sql
sleep 10
((i++))
done

Note: In script, update IP, PORT, user, password, database name, table name and limit values as per requirement.

Unable to Access the HEAL UI#

Case 1: After an OS Upgrade#

Unable to access the heal UI, after the OS upgradation activity performed by End-User.

RCA:

a. During the migration from version 7.x to 8.x post Heal installation, it was discovered that the port option in the Percona my.cnf file was commented out, leading to the use of the default port (3306) instead of the intended port (3307).

b. Keycloak service was configured in host mode, causing accessibility issues due to port (8443) not being open. It was changed to use port 9998 with network mode=bridge.

Solution:

1. After removing the comment and assigning the correct port in the Percona my.cnf file.

2. Ensure Percona starts successfully with the corrected port.

3. Adjust the Keycloak service configuration to use port 9998 with network mode=bridge.

4. Verify access to the Heal UI.

Case 2: Due to Disability of Email, SMS and Forensics Features#

Inability to access the Heal UI when email, SMS, and forensic features are disabled for a user.

Note: Access to one of these features should be enabled for access to the UI.

Solution:

1. Alter the is_forensic_enabled column in the user_notification_details table to allow NULL values and set the default value to '1'.

2. Update records where all three features (forensic, SMS, email) are disabled to set is_forensic_enabled to NULL.

3. Identify affected users using the provided SQL query.

4. Perform necessary changes to enable at least one of the features for affected users.

Blank Page while accessing UI#

After completing the HEAL installation, when attempting to start the services using startservice.sh (but the script failed when trying to start RabbitMQ) resulting in a connection timeout error.

This occurs when the port is not opened from the DB server to the RabbitMQ server, so start the services manually.

All services started successfully, but unable to access the UI. Observed the following error in the UI logs:

io.lettuce.core.cluster.PartitionSelectorException: Cannot determine a partition for slot 2805.
    at io.lettuce.core.cluster.PooledClusterConnectionProvider.getWriteConnection(PooledClusterConnectionProvider.java:148)
    at io.lettuce.core.cluster.PooledClusterConnectionProvider.getConnectionAsync(PooledClusterConnectionProvider.java:133)
    at io.lettuce.core.cluster.ClusterDistributionChannelWriter.doWrite(ClusterDistributionChannelWriter.java:169)
    at io.lettuce.core.cluster.ClusterDistributionChannelWriter.write(ClusterDistributionChannelWriter.java:102)

RCA: Although all services were started manually and successfully, the UI page was inaccessible due to the redis cluster not being properly formed. Normally, the cluster forms automatically when starting the Redis service using startservice.sh, but since the script execution failed midway, the cluster was not formed.

Solution: Form the Redis cluster, then you will be able to access the UI.

UI 2.0 Access Issue Post-Upgrade#

After upgrading to HEAL V2.3.2, users were unable to access the updated UI 2.0. The provided URL returned a connection lost error, and logs were not updating.

Solution:

1. Update the Consul key:

consul kv put service/heal-api-service/ip keycloak.example

2. Restart the heal-api-service to apply the changes.