We have two identical icinga test clusters and this issue occurs in both.
2026-06-22T12:34:40.955726+00:00 ipb-dev-int-icinga01 icingadb[20703]: high-availability: Continuing being the active instance
2026-06-22T12:39:43.956663+00:00 ipb-dev-int-icinga01 icingadb[20703]: high-availability: Continuing being the active instance
2026-06-22T12:44:19.399559+00:00 ipb-dev-int-icinga01 icingadb[20703]: runtime-updates: Upserted 1 ServiceState items
2026-06-22T12:44:20.967376+00:00 ipb-dev-int-icinga01 icingadb[20703]: history-sync: Synced 1 state history items
2026-06-22T12:44:39.399416+00:00 ipb-dev-int-icinga01 icingadb[20703]: runtime-updates: Upserted 1 ServiceState items
2026-06-22T12:44:40.966626+00:00 ipb-dev-int-icinga01 icingadb[20703]: history-sync: Synced 1 state history items
2026-06-22T12:44:43.955238+00:00 ipb-dev-int-icinga01 icingadb[20703]: high-availability: Continuing being the active instance
2026-06-22T12:45:39.399647+00:00 ipb-dev-int-icinga01 icingadb[20703]: runtime-updates: Upserted 2 ServiceState items
2026-06-22T12:45:40.967039+00:00 ipb-dev-int-icinga01 icingadb[20703]: history-sync: Synced 2 state history items
2026-06-22T12:49:40.955640+00:00 ipb-dev-int-icinga01 icingadb[20703]: high-availability: Continuing being the active instance
2026-06-22T12:54:43.956059+00:00 ipb-dev-int-icinga01 icingadb[20703]: high-availability: Continuing being the active instance
2026-06-22T12:59:40.955815+00:00 ipb-dev-int-icinga01 icingadb[20703]: high-availability: Continuing being the active instance
2026-06-22T13:04:40.955958+00:00 ipb-dev-int-icinga01 icingadb[20703]: high-availability: Continuing being the active instance
2026-06-22T13:09:40.955656+00:00 ipb-dev-int-icinga01 icingadb[20703]: high-availability: Continuing being the active instance
2026-06-22T13:14:04.958739+00:00 ipb-dev-int-icinga01 icingadb[20703]: HA exited with an error#011error="HA aborted: can't perform \"INSERT INTO \\\"icingadb_instance\\\" (\\\"id\\\", \\\"endpoint_id\\\", \\\"responsible\\\", \\\"icinga2_version\\\", \\\"icinga2_notifications_enabled\\\", \\\"icinga2_active_host_checks_enabled\\\", \\\"icinga2_event_handlers_enabled\\\", \\\"icinga2_flap_detection_enabled\\\", \\\"icingadb_version\\\", \\\"icinga2_start_time\\\", \\\"icinga2_active_service_checks_enabled\\\", \\\"icinga2_performance_data_enabled\\\", \\\"environment_id\\\", \\\"heartbeat\\\") VALUES (:id,:endpoint_id,:responsible,:icinga2_version,:icinga2_notifications_enabled,:icinga2_active_host_checks_enabled,:icinga2_event_handlers_enabled,:icinga2_flap_detection_enabled,:icingadb_version,:icinga2_start_time,:icinga2_active_service_checks_enabled,:icinga2_performance_data_enabled,:environment_id,:heartbeat) ON CONFLICT ON CONSTRAINT pk_icingadb_instance DO UPDATE SET \\\"id\\\" = EXCLUDED.\\\"id\\\",\\\"endpoint_id\\\" = EXCLUDED.\\\"endpoint_id\\\",\\\"responsible\\\" = EXCLUDED.\\\"responsible\\\",\\\"icinga2_version\\\" = EXCLUDED.\\\"icinga2_version\\\",\\\"icinga2_notifications_enabled\\\" = EXCLUDED.\\\"icinga2_notifications_enabled\\\",\\\"icinga2_active_host_checks_enabled\\\" = EXCLUDED.\\\"icinga2_active_host_checks_enabled\\\",\\\"icinga2_event_handlers_enabled\\\" = EXCLUDED.\\\"icinga2_event_handlers_enabled\\\",\\\"icinga2_flap_detection_enabled\\\" = EXCLUDED.\\\"icinga2_flap_detection_enabled\\\",\\\"icingadb_version\\\" = EXCLUDED.\\\"icingadb_version\\\",\\\"icinga2_start_time\\\" = EXCLUDED.\\\"icinga2_start_time\\\",\\\"icinga2_active_service_checks_enabled\\\" = EXCLUDED.\\\"icinga2_active_service_checks_enabled\\\",\\\"icinga2_performance_data_enabled\\\" = EXCLUDED.\\\"icinga2_performance_data_enabled\\\",\\\"environment_id\\\" = EXCLUDED.\\\"environment_id\\\",\\\"heartbeat\\\" = EXCLUDED.\\\"heartbeat\\\"\": pq: canceling statement due to user request"
2026-06-22 12:31:25.680 UTC [434115] LOG: checkpoint complete: wrote 5 buffers (0.0%), wrote 1 SLRU buffers; 0 WAL file(s) added, 0 removed, 0 recycled; write=0.503 s, sync=0.003 s, total=0.513 s; sync files=3, longest=0.002 s, average=0.001 s; distance=70 kB, estimate=74 kB; lsn=0/21B7B868, redo lsn=0/21B7B810
2026-06-22 12:36:25.775 UTC [434115] LOG: checkpoint starting: time
2026-06-22 12:36:26.286 UTC [434115] LOG: checkpoint complete: wrote 5 buffers (0.0%), wrote 1 SLRU buffers; 0 WAL file(s) added, 0 removed, 0 recycled; write=0.503 s, sync=0.003 s, total=0.512 s; sync files=3, longest=0.002 s, average=0.001 s; distance=73 kB, estimate=74 kB; lsn=0/21B96128, redo lsn=0/21B8DCB0
2026-06-22 12:41:25.385 UTC [434115] LOG: checkpoint starting: time
2026-06-22 12:41:25.896 UTC [434115] LOG: checkpoint complete: wrote 5 buffers (0.0%), wrote 1 SLRU buffers; 0 WAL file(s) added, 0 removed, 0 recycled; write=0.503 s, sync=0.003 s, total=0.512 s; sync files=3, longest=0.002 s, average=0.001 s; distance=76 kB, estimate=76 kB; lsn=0/21BA0D80, redo lsn=0/21BA0D28
2026-06-22 12:43:43.954 UTC [434122] icingadb@db_icingadb ERROR: could not serialize access due to read/write dependencies among transactions
2026-06-22 12:43:43.954 UTC [434122] icingadb@db_icingadb DETAIL: Reason code: Canceled on identification as a pivot, during write.
2026-06-22 12:43:43.954 UTC [434122] icingadb@db_icingadb HINT: The transaction might succeed if retried.
2026-06-22 12:43:43.954 UTC [434122] icingadb@db_icingadb STATEMENT: INSERT INTO "icingadb_instance" ("id", "endpoint_id", "responsible", "icinga2_version", "icinga2_notifications_enabled", "icinga2_active_host_checks_enabled", "icinga2_event_handlers_enabled", "icinga2_flap_detection_enabled", "icingadb_version", "
icinga2_start_time", "icinga2_active_service_checks_enabled", "icinga2_performance_data_enabled", "environment_id", "heartbeat") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14) ON CONFLICT ON CONSTRAINT pk_icingadb_instance DO UPDATE SET "id" = EXCLUDED."id","endpoint_id" = EXCLUDED."endpoint_id","responsible
" = EXCLUDED."responsible","icinga2_version" = EXCLUDED."icinga2_version","icinga2_notifications_enabled" = EXCLUDED."icinga2_notifications_enabled","icinga2_active_host_checks_enabled" = EXCLUDED."icinga2_active_host_checks_enabled","icinga2_event_handlers_enabled" = EXCLUDED."icinga2_event_handlers_enabled","icinga
2_flap_detection_enabled" = EXCLUDED."icinga2_flap_detection_enabled","icingadb_version" = EXCLUDED."icingadb_version","icinga2_start_time" = EXCLUDED."icinga2_start_time","icinga2_active_service_checks_enabled" = EXCLUDED."icinga2_active_service_checks_enabled","icinga2_performance_data_enabled" = EXCLUDED."icinga2_
performance_data_enabled","environment_id" = EXCLUDED."environment_id","heartbeat" = EXCLUDED."heartbeat"
2026-06-22 12:46:25.996 UTC [434115] LOG: checkpoint starting: time
2026-06-22 12:46:31.324 UTC [434115] LOG: checkpoint complete: wrote 53 buffers (0.3%), wrote 1 SLRU buffers; 0 WAL file(s) added, 0 removed, 0 recycled; write=5.317 s, sync=0.005 s, total=5.329 s; sync files=32, longest=0.001 s, average=0.001 s; distance=330 kB, estimate=330 kB; lsn=0/21BF84B8, redo lsn=0/21BF3838
2026-06-22 12:51:25.425 UTC [434115] LOG: checkpoint starting: time
2026-06-22 12:51:25.939 UTC [434115] LOG: checkpoint complete: wrote 5 buffers (0.0%), wrote 2 SLRU buffers; 0 WAL file(s) added, 0 removed, 0 recycled; write=0.504 s, sync=0.004 s, total=0.515 s; sync files=3, longest=0.002 s, average=0.002 s; distance=67 kB, estimate=304 kB; lsn=0/21C04770, redo lsn=0/21C04718
2026-06-22 12:56:26.035 UTC [434115] LOG: checkpoint starting: time
2026-06-22 12:56:26.547 UTC [434115] LOG: checkpoint complete: wrote 5 buffers (0.0%), wrote 1 SLRU buffers; 0 WAL file(s) added, 0 removed, 0 recycled; write=0.504 s, sync=0.003 s, total=0.513 s; sync files=3, longest=0.002 s, average=0.001 s; distance=73 kB, estimate=281 kB; lsn=0/21C1DDF8, redo lsn=0/21C16D48
2026-06-22 13:01:26.647 UTC [434115] LOG: checkpoint starting: time
2026-06-22 13:01:27.160 UTC [434115] LOG: checkpoint complete: wrote 5 buffers (0.0%), wrote 1 SLRU buffers; 0 WAL file(s) added, 0 removed, 0 recycled; write=0.504 s, sync=0.003 s, total=0.513 s; sync files=3, longest=0.002 s, average=0.001 s; distance=73 kB, estimate=260 kB; lsn=0/21C294A0, redo lsn=0/21C29448
2026-06-22 13:06:26.259 UTC [434115] LOG: checkpoint starting: time
2026-06-22 13:06:26.773 UTC [434115] LOG: checkpoint complete: wrote 5 buffers (0.0%), wrote 1 SLRU buffers; 0 WAL file(s) added, 0 removed, 0 recycled; write=0.505 s, sync=0.003 s, total=0.514 s; sync files=3, longest=0.002 s, average=0.001 s; distance=72 kB, estimate=241 kB; lsn=0/21C426D0, redo lsn=0/21C3B590
2026-06-22 13:11:26.855 UTC [434115] LOG: checkpoint starting: time
2026-06-22 13:11:27.369 UTC [434115] LOG: checkpoint complete: wrote 5 buffers (0.0%), wrote 1 SLRU buffers; 0 WAL file(s) added, 0 removed, 0 recycled; write=0.504 s, sync=0.003 s, total=0.514 s; sync files=3, longest=0.002 s, average=0.001 s; distance=72 kB, estimate=224 kB; lsn=0/21C4D7B0, redo lsn=0/21C4D758
2026-06-22 13:14:04.956 UTC [434122] icingadb@db_icingadb ERROR: canceling statement due to user request
2026-06-22 13:14:04.956 UTC [434122] icingadb@db_icingadb CONTEXT: while locking tuple (0,43) in relation "icingadb_instance"
2026-06-22 13:14:04.956 UTC [434122] icingadb@db_icingadb STATEMENT: INSERT INTO "icingadb_instance" ("id", "endpoint_id", "responsible", "icinga2_version", "icinga2_notifications_enabled", "icinga2_active_host_checks_enabled", "icinga2_event_handlers_enabled", "icinga2_flap_detection_enabled", "icingadb_version", "
icinga2_start_time", "icinga2_active_service_checks_enabled", "icinga2_performance_data_enabled", "environment_id", "heartbeat") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14) ON CONFLICT ON CONSTRAINT pk_icingadb_instance DO UPDATE SET "id" = EXCLUDED."id","endpoint_id" = EXCLUDED."endpoint_id","responsible
" = EXCLUDED."responsible","icinga2_version" = EXCLUDED."icinga2_version","icinga2_notifications_enabled" = EXCLUDED."icinga2_notifications_enabled","icinga2_active_host_checks_enabled" = EXCLUDED."icinga2_active_host_checks_enabled","icinga2_event_handlers_enabled" = EXCLUDED."icinga2_event_handlers_enabled","icinga
2_flap_detection_enabled" = EXCLUDED."icinga2_flap_detection_enabled","icingadb_version" = EXCLUDED."icingadb_version","icinga2_start_time" = EXCLUDED."icinga2_start_time","icinga2_active_service_checks_enabled" = EXCLUDED."icinga2_active_service_checks_enabled","icinga2_performance_data_enabled" = EXCLUDED."icinga2_
performance_data_enabled","environment_id" = EXCLUDED."environment_id","heartbeat" = EXCLUDED."heartbeat"
2026-06-22 13:16:26.455 UTC [434115] LOG: checkpoint starting: time
2026-06-22 13:16:46.729 UTC [434115] LOG: checkpoint complete: wrote 202 buffers (1.2%), wrote 1 SLRU buffers; 0 WAL file(s) added, 0 removed, 0 recycled; write=20.263 s, sync=0.005 s, total=20.275 s; sync files=48, longest=0.002 s, average=0.001 s; distance=1355 kB, estimate=1355 kB; lsn=0/21DA23D8, redo lsn=0/21DA
04C0
2026-06-22 13:21:26.826 UTC [434115] LOG: checkpoint starting: time
2026-06-22 13:21:31.554 UTC [434115] LOG: checkpoint complete: wrote 47 buffers (0.3%), wrote 1 SLRU buffers; 0 WAL file(s) added, 0 removed, 0 recycled; write=4.717 s, sync=0.004 s, total=4.728 s; sync files=23, longest=0.003 s, average=0.001 s; distance=267 kB, estimate=1246 kB; lsn=0/21DE3870, redo lsn=0/21DE32F0
2026-06-22 13:26:26.651 UTC [434115] LOG: checkpoint starting: time
2026-06-22 13:26:27.164 UTC [434115] LOG: checkpoint complete: wrote 5 buffers (0.0%), wrote 1 SLRU buffers; 0 WAL file(s) added, 0 removed, 0 recycled; write=0.503 s, sync=0.003 s, total=0.513 s; sync files=3, longest=0.002 s, average=0.001 s; distance=44 kB, estimate=1126 kB; lsn=0/21DEE620, redo lsn=0/21DEE590
2026-06-22 13:31:26.195 UTC [434115] LOG: checkpoint starting: time
2026-06-22 13:31:26.709 UTC [434115] LOG: checkpoint complete: wrote 5 buffers (0.0%), wrote 1 SLRU buffers; 0 WAL file(s) added, 0 removed, 0 recycled; write=0.504 s, sync=0.003 s, total=0.514 s; sync files=3, longest=0.002 s, average=0.001 s; distance=47 kB, estimate=1018 kB; lsn=0/21E01330, redo lsn=0/21DFA200
2026-06-22 13:36:26.800 UTC [434115] LOG: checkpoint starting: time
Sometimes the second node fails also which results in complete failed cluster (from icingaweb view).
Include as many relevant details about the environment you experienced the problem in
Describe the bug
We have two identical icinga test clusters and this issue occurs in both.
Each Setup (Virtual Machines):
The issue occurs randomly and can't be reproduce:
icinga01 node
icinga02 node
icingaweb node
Sometimes the second node fails also which results in complete failed cluster (from icingaweb view).
Your Environment
Include as many relevant details about the environment you experienced the problem in
Best regards!