The Splunk UBA health check fails to complete and intermittently stops midway, failing to provide the full output. In some cases, the process is killed automatically without finishing.

To identify the root cause of the health check hanging, the script was run in debug mode to capture detailed execution logs.
Navigate to /opt/caspida/bin/utils/uba_healt_check_.sh
Update the script as shown below:
The following command was used to run the script in debug mode:
bash -x /opt/caspida/bin/utils/uba_health_check.sh
This command outputs a trace of all the commands executed, helping to pinpoint the specific command that causes the health check to stop.
Upon investigation of the file uba_heath_check_debug.log located in/home/caspida, it was observed that an Impala query was taking an unusually long time to complete, which was causing the script to hang. The problematic Impala query was:
impala-shell -d caspida -q 'select modelname,
round(cast(min(durationinmilliseconds/1000) as decimal(15,5)),3) as min_duration_seconds,
round(cast(avg(durationinmilliseconds/1000) as decimal(15,5)),3) as avg_duration_seconds,
round(cast(max(durationinmilliseconds/1000) as decimal(15,5)),3) as max_duration_seconds
from offlinemodelstats
where failurereason = '\''n/a'\''
group by 1
order by 3 asc;'
The issue was related to containerization in Impala. To resolve the problem, the following steps were performed to reset the Impala containers:
Remove existing containerization setup:
/opt/caspida/bin/Caspida remove-containerization
Re-setup containerization:
/opt/caspida/bin/Caspida setup-containerization
Stop all services:
/opt/caspida/bin/Caspida stop-all
Start all services:
/opt/caspida/bin/Caspida start-all
After resetting the containerization configuration and restarting the services, the health check script completed successfully and produced the full output.

| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |