MLE UI goes blank after refresh
MLE UI goes blank after refresh in MLE Issues.
MLE UI goes blank after refresh#
The timeout occurs in Keycloak when MLE attempts to retrieve data, likely due to network or other issues, resulting in no response to the Request as below:

To rectify the Issue, follow as below:
1. Increase the timeout values for the following properties (this adjustment allows Keycloak to maintain the session with MLE and avoid timeouts):
- SSO Session Max
- SSO Session Idle
- Client login timeout
- Login timeout

Access Denied for MLE UI#
MLE clinet scope not added into Keycloak auth page.

Kindly follow below document for UI access
PDF Format: MLE UI Access.pdf
Transaction data not processed into Baseline#
Error logs indicate the following issue:
[ERROR] src.api.DataHandler: Failed: Total records present in
transaction data is less than the threshold 4033 of 1093
This is due to the Transaction data fails to meet the default threshold of 70% for baseline dates.
To rectify the issue, follow as below:
1. Navigate to below path:
<A1home>/Appsone_Service/analytics-
workstation/model_config/AD_Config.cfg
2. Update the value as below:
txn_data_fill_fraction = 0.5
Note: Adjust the fill_fraction based on the threshold error shown in the logs, such as 50% (0.5) or 30% (0.3).
Keycloak MLE Connection Failure#
Keycloak service restarted while running baseline, the error is as below:
[ERROR] src.api.DataHandler: Failed: 500 Server Error: Internal
Server Error for url
To rectify the issue, follow as below:
1. Increase the connection retry option on MLE and run baseline again:
consul kv put service/mle/analyticsws/connection_retry_count 10
LoadData Processing Failure in Baseline#
The failure is caused because the LoadMetric data is not configured properly in consul keys and below error is displayed,
2020-07-10 16:55:55,499 [ERROR] src.api.DataHandler: Failed:
Expecting value: line 1 column 2 (char 1)
Traceback (most recent call last):
File "/opt/analytics-workstation/src/api/DataHandler.py", line 96,
in process
self.loadData(request)
File "/opt/analytics-workstation/src/dataload/ADLoadData.py", line
154, in loadData
max_block_size_in_mb=app_config.get_load_data_batch_in_mb())
File "/opt/analytics-workstation/src/dataaccess/api/DataAccess.py",
line 142, in get_load_data
The consul key is as below:
service/mle/analyticsws/loadmatrics:['TOTAL_VOLUME', 'SLOW_VOLUME',
'FAIL_VOLUME', 'RESPONSE_TIME']
To rectify the issue, follow as below:
1. Update LoadMetric data as below with transactions KPI values. All KPI values should be in double quotes:
consul kv put service/mle/analyticsws/loadmatrics '["TOTAL_VOLUME",
"SLOW_VOLUME", "FAIL_VOLUME", "RESPONSE_TIME"]'
Baseline failed due to SIGKILL error#
Insufficient Memory in MLE Service Led to Baseline Failure and Celery Process Termination.
2021-01-06 16:53:13,749 [ERROR] celery.worker.request: Task handler
raised error: WorkerLostError('Worker exited prematurely: signal 9
(SIGKILL).',)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/billiard/pool.py", line
1267, in mark_as_worker_lost
human_status(exitcode)),
billiard.exceptions.WorkerLostError: Worker exited prematurely:
signal 9 (SIGKILL).
To rectify the issue, follow as below:
1. Increase the memory for mle.nomad file to 5GB or more, as per availability on the box.
Disable Upper and Lower Anomaly for any KPI#
To disable upper and lower anomalies for any KPI, follow the below steps:
1. Navigate to below folder:
Appsone_Service/analytics-workstation/model_config
2. Access the below file:
threshold_filter.csv
3. Edit the file as below:
OrganizationName,NamespaceGroupId,EntityName,EntityInstanceName,Metr
icName,MetricAttributeName,Upper,Lower
,,,,CPU UTIL,,1,0
,,,,DISK IO READ,,1,0
,,,,DISK IO WRITE,,1,0
,,,,LOAD AVERAGE,,1,0
,,,,BYTES RECEIVED,,1,1
,,,,BYTES SENT,,1,1
,,,,CACHE HIT RATIO,,0,1
The values are as below:
- 1 indicates Enable
- 0 indicates Disable
Static Thresholds for Transactions in MLE#
To enable the static thresholds for transactions
1. Navigate to the below folder:
/Appsone_Service/analytics-workstation/config
2. Access the below file:
static-threshold.csv
3. Identify the transactions KPI IDs using the following query:
select id, name from mst_kpi_details where id in
(397,398,399,400,401,403,404);
4. Find the identifiers as below:
- NamespaceGroupIdentifier from the mle_app_config table in Percona and
- NameSpaceID from the controller table.
MLE UI Not Functional#
Case 1: Mount Point Issues#
MLE UI observations & solution:
1. After running MLE service, no logs were written for Nomad.
2. Unable to access the UI.
3. Two mount points were missing in the MLE Nomad file under volume.
4. After adding the missing points, start the MLE and check if any changes in memory.
5. If there is no change in memory, remove the old Docker image.
6. Execute the below command to remove cache,
nomad stop -purge MLE
7. Start the MLE service post-changes and post which the MLE UI will be running, UI access will be restored.
Case 2: HAProxy Issues#
The MLE static UI was not able to connect with keycloak because the UI/CC are accessed with HAProxy IP and Port. Due to this the config.properties file under analytic workstation directory was also updated with HAProxy IP and Port.
Solution:
Update the HAProxy IP and Port to keycloak IP and Port.