Recurrent errors in database on vm schedules #11238
-
Hey community! After creating a schedule to start/stop vm_instances, a recurrent error appears in logs 025-07-17 11:29:19,383 ERROR [o.a.c.v.s.d.VMScheduledJobDaoImpl] (VMSchedulerPollTask:[ctx-d11d1302]) (logid:c3157b08) DB Exception on: HikariProxyPreparedStatement@614529765 wrapping com.mysql.cj.jdbc.ServerPreparedStatement[6379]: INSERT INTO vm_scheduled_job (vm_scheduled_job.uuid, vm_scheduled_job.vm_id, vm_scheduled_job.vm_schedule_id, vm_scheduled_job.async_job_id, vm_scheduled_job.action, vm_scheduled_job.scheduled_timestamp) VALUES (x'65396330306236652d626463622d346430612d396162332d663466636136343536356130', 293, 120, NULL, 'STOP', '2025-07-18 04:00:00') java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '120-2025-07-18 04:00:00' for key 'vm_schedule_id' I have two management host running with ACS 4.20.1 with KVM Hypervisors. Any clue what is trying to insert it again in the database? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 2 replies
-
@KuasarCloud are there any debug messages above, especially with the same logid or ctx-. |
Beta Was this translation helpful? Give feedback.
-
this would be with the same ctx
|
Beta Was this translation helpful? Give feedback.
-
This is not what I am asking for @KuasarCloud , please grep for |
Beta Was this translation helpful? Give feedback.
-
Please take a look, this all related to
|
Beta Was this translation helpful? Give feedback.
-
Sorry @KuasarCloud , there is not enough information there to make even a guess. You will have to investigate the logs more. |
Beta Was this translation helpful? Give feedback.
-
It appears to be a race condition error caused by multiple scheduler instances running concurrently. We have two ACS Server Manager nodes, and when a scheduled task is created on one node, the other node throws an error — and the same happens in reverse. |
Beta Was this translation helpful? Give feedback.
-
Hi @DaanHoogland, issue created at #11564 and to answer your question, it keeps going forever, the only way to stop it is eliminating the rule |
Beta Was this translation helpful? Give feedback.
Hi @DaanHoogland, issue created at #11564 and to answer your question, it keeps going forever, the only way to stop it is eliminating the rule