Skip to content

The UI Appears Blank Post Login

The UI Appears Blank Post Login in Post Login Issues.

3 min read Updated SS

The UI Appears Blank Post Login#

Follow the below checks when the UI is blank after login:

1. Verify Client Activity: Assess if the client has performed any activities that could have led to the issue.

2. Inspect UI and CC Logs: Look for any errors in UI logs and CC logs, particularly Keycloak and Nomad standard errors.

i. Navigate to the below directory to access the log files:

cd /opt/Heal/centralized_logs/<specific service details>

For Example:

cd /opt/Heal/centralized_logs/198.51.100.2_UISERVICE_1

ii. Once you are in the service directory, execute:

ls

Expected output:

heal-ui-service.1.log    heal-ui-service.4.log       heal-ui-service-core.2.log
heal-ui-service-core.log heal-ui-service-stats.log   heal-ui-service.2.log
heal-ui-service.5.log    heal-ui-service-core.3.log  heal-ui-service.log
kpi_zone_template.json   heal-ui-service.3.log       heal-ui-service-core.1.log
heal-ui-service-core.4.log  heal-ui-service-stats.1.log

iii. Inspect the above log files for any errors.

3. Utilize Developer Tools: Use Developer Tools to verify if the interface is accessible and to examine the response. Refer to Developer Tools: Verifying UI Accessibility and Response under the section 'Unable To Access The UI'.

4. Check Keycloak and Percona Connection: Confirm that the connection between Keycloak and Percona is functional by executing either of the below commands:

telnet <percona IP> <percona port>

or:

nc -vz <percona IP> <percona port>

or:

echo "" > /dev/tcp/<percona IP>/<percona port>

For Example:

nc -vz 192.0.2.19 3306

Expected Output:

Ncat: Version 7.70 ( https://nmap.org/ncat )
Ncat: Connected to 192.0.2.7:3306.
Ncat: 0 bytes sent, 0 bytes received in 0.02 seconds.

5. Check if the user is disabled in Percona. See Verify the Disabled Status of User In Percona.

6. Examine the user in Redis. See Verify the User in Redis.

7. Cross-check DB Username and Password: Match the DB username and DB password with the consul key values:

consul kv get --recurse | grep -i perconadb

Expected Output:

service/cc/perconadb/maxpoolsize: 100
service/cc/perconadb/poolsize: 50
service/perconadb/connection timeout: 10000
service/perconadb/idleconnections: 500
service/perconadb/idleconnection timeout: 600000
service/perconadb/maxlifetime: 1800000
service/perconadb/maxpoolsize: 50
service/perconadb/node1/ip: 192.0.2.18
service/perconadb/node1/port: 3307
service/perconadb/node2/ip: 192.0.2.18
service/perconadb/node2/port: 3307
service/perconadb/password_ui: <base64-encoded-password>
service/perconadb/schema: appsoneservice
service/perconadb/timezone: IST
service/perconadb/tls1.2/jdbcparams: verifyServerCertificate=false&useSSL=false&allowPublicKeyRetrieval=true
service/perconadb/username: appsonedbservice
service/redismicroservice/perconadb/connection timeout: 5000
service/redismicroservice/perconadb/idleconnections: 100
service/redismicroservice/perconadb/maxpoolsize: 500
service/uiservice/perconadb/maxpoolsize: 100
service/uiservice/perconadb/poolsize: 50

UI Performance Issues#

Slow Response Times from the UI#

If the UI is responding slowly, follow the steps below to diagnose and potentially rectify the issue:

1. Verify the UI accessibility and diagnose performance. See Verify UI Accessibility and Response with Developer Tools.

2. Determine the Scope of the Issue: Establish if the slowness is a global issue (occurring on all pages) or if it is isolated to specific pages.

3. Identify the Main Functions of Slow Pages: If the slowness is only observed on specific pages, identify the main functions of these pages.

4. Check for Latency: Determine if any latency between the UI and the DB server may be causing the slowness.

5. Check Memory Utilization of the Services: Examine the memory/CPU utilization of the following services (refer to Out Of Memory (OOM) issues with services):

a. Keycloak, b. UI, c. CC, d. OpenSearch, e. Redis, f. Percona

Note: Make sure if you are configuring anything in the CC (any attribute changes - adding/disabling etc) to reflect, Redis microservices should be up and running.

6. If the Redis microservice is operational, you can halt the Percona load to prevent any interference with the Redis microservice.

7. Inspect for Percona/OpenSearch Errors: Examine the logs for any errors related to Percona/OpenSearch tables.

Unable to Remove the DR Servers for Maintenance on the UI#

Unable to remove the DR servers for maintenance on the UI after migrating from version 5.x to tech debt.

Solution: Retrieve service IDs and remove them from the service_maintenance_mapping table as a workaround for maintenance window issues.

Note: Ensure correct validation and planning before executing SQL queries directly on the database.

Heal UI Services Map Access Issue#

Access to the Services map in Heal UI was unavailable, displaying an error message indicating lack of access to <ACH-WEB_SERVICE>, while services for another account, HEAL monitoring, were visible without issues.

RCA: The root cause was identified in the transaction table within the Percona database, where the rule_id field, which expects an integer value, contained some invalid transactions with this field set to NULL.

Solution:

update transaction set rule_id=0 where account_id=2 and rule_Id is NULL;

After executing the query, the heal-redis-microservice should be restarted.