Ui-job-scheduler always stops after a very short time

CMK version: 2.4.0p19
OS version: Debian 12

Error message: “Unable to connect to ui-job-scheduler. The ui-job-scheduler service may not be running. Please ensure that all services for the instance are started. An attempt was made to establish a connection via /omd/sites/monitoring/tmp/run/ui-job-scheduler.sock. The error reported was: (‘Connection aborted.’, ConnectionRefusedError(111, ‘Connection refused’)).”

The ui-job-scheduler always stops after a few minutes and has to be restarted using omd start ui-job-scheduler.

Sometimes it also stops the entire instance except for crontab.

Is there any way to find out what might be causing this?

First thing i would check is the log file inside ~/var/log/ui-job-scheduler/
If all processes are stopped on your site i would look at the memory usage of your system. If one process in your site causes a OOM kill systemd will stop the complete site.

After increasing the VM’s RAM, there have been no further issues so far.

I can confirm that. My VM was running on 4GB of RAM and was crashing. With 8GB, it runs much more smoothly.

As a reference