VST EMDX-Analytics failure

Continuing the discussion from Live streams in VST UI, video data has issue:

I am facing the same issue, following the same set of tasks by OP. The following are the logs in my case -

docker logs emdx-analytics-01
2025-04-04 01:12:24,775 INFO [7 datasink_0] (ingestor.py:92) - polling from redis ['test', 'emdx_config', 'emdx_alert_rule']
[2025-04-04 01:12:24 +0000] [7] [INFO] Started server process [7]
[2025-04-04 01:12:24 +0000] [7] [INFO] Waiting for application startup.
[2025-04-04 01:12:24 +0000] [7] [INFO] Application startup complete.
2025-04-04 01:12:24,858 INFO [7 WSGI_0] (camera_status.py:44) - process_change_event: sensors_before=[], event={'camera_id': 'office_core', 'camera_name': '2562142c-b017-4e63-a026-6c48ab6212b8', 'camera_url': 'rtsp://192.168.4.68:8554/live/2562142c-b017-4e63-a026-6c48ab6212b8', 'change': 'camera_remove', 'ipc_url': ''}
2025-04-04 01:12:24,858 INFO [7 WSGI_0] (camera_status.py:66) - process_change_event: sensors_after=[]
2025-04-04 01:12:24,978 INFO [7 WSGI_0] (camera_status.py:44) - process_change_event: sensors_before=[], event={'camera_id': 'office_core-deepstream-1', 'camera_name': '1a4b8ed8-ab97-4039-9ac8-30ae1f1b42b3', 'camera_url': 'rtsp://192.168.4.68:8554/live/1a4b8ed8-ab97-4039-9ac8-30ae1f1b42b3', 'change': 'camera_remove', 'ipc_url': ''}
2025-04-04 01:12:24,979 INFO [7 WSGI_0] (camera_status.py:66) - process_change_event: sensors_after=[]
2025-04-04 01:12:25,110 INFO [7 WSGI_0] (camera_add_remove.py:16) - Adding new camera from ADD event {'camera_id': 'office_core-deepstream-1', 'camera_name': '1a4b8ed8-ab97-4039-9ac8-30ae1f1b42b3', 'camera_url': 'rtsp://192.168.4.68:8554/live/1a4b8ed8-ab97-4039-9ac8-30ae1f1b42b3', 'change': 'camera_streaming', 'metadata': {'bitrate': '', 'codec': 'H264', 'framerate': '30.000000', 'govlength': '', 'resolution': '1280x720'}}
2025-04-04 01:12:25,110 INFO [7 WSGI_0] (camera_status.py:44) - process_change_event: sensors_before=[], event={'camera_id': 'office_core-deepstream-1', 'camera_name': '1a4b8ed8-ab97-4039-9ac8-30ae1f1b42b3', 'camera_url': 'rtsp://192.168.4.68:8554/live/1a4b8ed8-ab97-4039-9ac8-30ae1f1b42b3', 'change': 'camera_streaming', 'metadata': {'bitrate': '', 'codec': 'H264', 'framerate': '30.000000', 'govlength': '', 'resolution': '1280x720'}}
add_sensor_with_template_config sensor=office_core-deepstream-1
2025-04-04 01:12:25,161 ERROR [7 WSGI_0] (tripwire.py:211) - The server couldn't fulfill the request http://localhost:5000/api/config/tripwire?sensorId=office_core-deepstream-1
2025-04-04 01:12:25,161 ERROR [7 WSGI_0] (tripwire.py:212) - Error code:422
2025-04-04 01:12:25,164 ERROR [7 WSGI_0] (roi.py:184) - The server couldn't fulfill the request http://localhost:5000/api/config/roi?sensorId=office_core-deepstream-1
2025-04-04 01:12:25,164 ERROR [7 WSGI_0] (roi.py:185) - Error code:422
2025-04-04 01:12:25,167 ERROR [7 WSGI_0] (alert_rules.py:240) - The server couldn't fulfill the request http://localhost:5000/api/config/rule/alerts/fov?sensorId=office_core-deepstream-1
2025-04-04 01:12:25,167 ERROR [7 WSGI_0] (alert_rules.py:241) - Error code:422
fov alerts: {'result': None, 'error': 'Alert Rule def not found and there is not default/sensorTemplate also'}
2025-04-04 01:12:25,169 ERROR [7 WSGI_0] (alert_rules.py:240) - The server couldn't fulfill the request http://localhost:5000/api/config/rule/alerts/tripwire?sensorId=office_core-deepstream-1
2025-04-04 01:12:25,170 ERROR [7 WSGI_0] (alert_rules.py:241) - Error code:422
2025-04-04 01:12:25,172 ERROR [7 WSGI_0] (alert_rules.py:240) - The server couldn't fulfill the request http://localhost:5000/api/config/rule/alerts/roi?sensorId=office_core-deepstream-1
2025-04-04 01:12:25,172 ERROR [7 WSGI_0] (alert_rules.py:241) - Error code:422
no roi alert rules for sensor
GazeROI: Update config sensor=office_core-deepstream-1,new config=[]
GazeROI: sensor=office_core-deepstream-1, config=[]
2025-04-04 01:12:25,181 INFO [7 WSGI_0] (camera_status.py:66) - process_change_event: sensors_after=['office_core-deepstream-1']
2025-04-04 01:12:25,206 INFO [7 WSGI_0] (camera_add_remove.py:16) - Adding new camera from ADD event {'camera_id': 'office_core', 'camera_name': '2562142c-b017-4e63-a026-6c48ab6212b8', 'camera_url': 'rtsp://192.168.4.68:8554/live/2562142c-b017-4e63-a026-6c48ab6212b8', 'change': 'camera_streaming', 'metadata': {'bitrate': '', 'codec': 'H264', 'framerate': '30.000000', 'govlength': '', 'resolution': '1280x720'}}
2025-04-04 01:12:25,206 INFO [7 WSGI_0] (camera_status.py:44) - process_change_event: sensors_before=['office_core-deepstream-1'], event={'camera_id': 'office_core', 'camera_name': '2562142c-b017-4e63-a026-6c48ab6212b8', 'camera_url': 'rtsp://192.168.4.68:8554/live/2562142c-b017-4e63-a026-6c48ab6212b8', 'change': 'camera_streaming', 'metadata': {'bitrate': '', 'codec': 'H264', 'framerate': '30.000000', 'govlength': '', 'resolution': '1280x720'}}
add_sensor_with_template_config sensor=office_core
2025-04-04 01:12:25,209 ERROR [7 WSGI_0] (tripwire.py:211) - The server couldn't fulfill the request http://localhost:5000/api/config/tripwire?sensorId=office_core
2025-04-04 01:12:25,209 ERROR [7 WSGI_0] (tripwire.py:212) - Error code:422
2025-04-04 01:12:25,212 ERROR [7 WSGI_0] (roi.py:184) - The server couldn't fulfill the request http://localhost:5000/api/config/roi?sensorId=office_core
2025-04-04 01:12:25,212 ERROR [7 WSGI_0] (roi.py:185) - Error code:422
2025-04-04 01:12:25,214 ERROR [7 WSGI_0] (alert_rules.py:240) - The server couldn't fulfill the request http://localhost:5000/api/config/rule/alerts/fov?sensorId=office_core
2025-04-04 01:12:25,214 ERROR [7 WSGI_0] (alert_rules.py:241) - Error code:422
fov alerts: {'result': None, 'error': 'Alert Rule def not found and there is not default/sensorTemplate also'}
2025-04-04 01:12:25,216 ERROR [7 WSGI_0] (alert_rules.py:240) - The server couldn't fulfill the request http://localhost:5000/api/config/rule/alerts/tripwire?sensorId=office_core
2025-04-04 01:12:25,216 ERROR [7 WSGI_0] (alert_rules.py:241) - Error code:422
2025-04-04 01:12:25,218 ERROR [7 WSGI_0] (alert_rules.py:240) - The server couldn't fulfill the request http://localhost:5000/api/config/rule/alerts/roi?sensorId=office_core
2025-04-04 01:12:25,218 ERROR [7 WSGI_0] (alert_rules.py:241) - Error code:422
no roi alert rules for sensor
GazeROI: Update config sensor=office_core,new config=[]
GazeROI: sensor=office_core, config=[]
2025-04-04 01:12:25,230 INFO [7 WSGI_0] (camera_status.py:66) - process_change_event: sensors_after=['office_core-deepstream-1', 'office_core']
2025-04-04 01:12:25,245 ERROR [7 AnalyticsProcessorWorker] (tripwire.py:211) - The server couldn't fulfill the request http://localhost:5000/api/config/tripwire?sensorId=office_core-deepstream-1
2025-04-04 01:12:25,246 ERROR [7 AnalyticsProcessorWorker] (tripwire.py:212) - Error code:422
2025-04-04 01:12:25,248 ERROR [7 AnalyticsProcessorWorker] (roi.py:184) - The server couldn't fulfill the request http://localhost:5000/api/config/roi?sensorId=office_core-deepstream-1
2025-04-04 01:12:25,249 ERROR [7 AnalyticsProcessorWorker] (roi.py:185) - Error code:422
2025-04-04 01:12:25,256 ERROR [7 AnalyticsProcessorWorker] (tripwire.py:211) - The server couldn't fulfill the request http://localhost:5000/api/config/tripwire?sensorId=office_core
2025-04-04 01:12:25,257 ERROR [7 AnalyticsProcessorWorker] (tripwire.py:212) - Error code:422
2025-04-04 01:12:25,259 ERROR [7 AnalyticsProcessorWorker] (roi.py:184) - The server couldn't fulfill the request http://localhost:5000/api/config/roi?sensorId=office_core
2025-04-04 01:12:25,259 ERROR [7 AnalyticsProcessorWorker] (roi.py:185) - Error code:422
GET http://192.168.4.68:30080/emdx/api/config?sensorId=office-rest-1
{"detail":"Configs not present for this sensor","status":422,"title":"Unprocessable Entity","type":"about:blank"}

Please refer this topic to set to IP address, not localhost: ROI and Tripwire issue creating and saving them - #4 by kesong
Here is one sample for emdx API:

curl "http://10.19.225.134:30080/emdx/api/v2/metrics/occupancy/fov/histogram?sensorId=11&fromTimestamp=2025-01-20T06:41:31.610Z&toTimestamp=2025-01-20T06:42:02.641Z&bucketSizeInSec=1"