We are having a problem, that some history sync cannot be written into icingadb.
Error 1105 (HY000): Parameter of prepared statement which is set
through mysql_send_long_data() is longer than 'max_allowed_packet' bytes"
When we look at the Redis DB, it is quite large:
redis-cli -p 6380 info | grep used_memory_human
used_memory_human:304.15M
After flushing it, icingadb can start up again and the sync is no longer an issue.
redis-cli -p 6380 flushall
We are using these icinga components:
icinga-l10n/icinga-jammy,now 1.4.0-1+ubuntu22.04 all [installed,automatic]
icinga-php-library/icinga-jammy,now 0.15.2-1+ubuntu22.04 all [installed]
icinga-php-thirdparty/icinga-jammy,now 0.12.1-1+ubuntu22.04 all [installed]
icinga2/icinga-jammy,now 2.16.5-1+ubuntu22.04 amd64 [installed]
icinga2-bin/icinga-jammy,now 2.16.5-1+ubuntu22.04 amd64 [installed]
icinga2-common/icinga-jammy,now 2.16.5-1+ubuntu22.04 all [installed]
icingacli/icinga-jammy,now 2.12.7-1+ubuntu22.04 all [installed]
icingadb/icinga-jammy,now 1.5.1-8+ubuntu22.04 amd64 [installed]
icingadb-redis/icinga-jammy,now 8.2.9-1+ubuntu22.04 amd64 [installed]
icingadb-web/icinga-jammy,now 1.1.4-1+ubuntu22.04 all [installed]
icingaweb2/icinga-jammy,now 2.12.7-1+ubuntu22.04 all [installed]
icingaweb2-common/icinga-jammy,now 2.12.7-1+ubuntu22.04 all [installed]
icingaweb2-module-monitoring/icinga-jammy,now 2.12.6-2+ubuntu22.04 all [installed,automatic]
monitoring-plugins/jammy,jammy,now 2.3.1-1ubuntu4 all [installed]
monitoring-plugins-basic/jammy,now 2.3.1-1ubuntu4 amd64 [installed]
monitoring-plugins-common/jammy,now 2.3.1-1ubuntu4 amd64 [installed]
monitoring-plugins-standard/jammy,now 2.3.1-1ubuntu4 amd64 [installed]
php-icinga/icinga-jammy,now 2.12.7-1+ubuntu22.04 all [installed]
We are aware, that icingadb-web is OutOfDate. However i do no think the issue lies there.
For our DB we are using a Galera Cluster, which is proxied through a Proxysql server. Do you need the versions of these?
Log message:
Sep 1 09:40:15 skinner1 icingadb[2362625]: database: Can't execute query. Retrying#011error="can't perform \"INSERT INTO \\\"service_state\\\" (\\\"service_id\\\", \\\"is_flapping\\\", \\\"
last_update\\\", \\\"severity\\\", \\\"normalized_performance_data\\\", \\\"previous_soft_state\\\", \\\"check_attempt\\\", \\\"is_handled\\\", \\\"state_type\\\", \\\"is_acknowledged\\\", \
\\"long_output\\\", \\\"check_timeout\\\", \\\"last_state_change\\\", \\\"check_commandline\\\", \\\"scheduling_source\\\", \\\"next_update\\\", \\\"last_comment_id\\\", \\\"execution_time\\
\", \\\"is_reachable\\\", \\\"performance_data\\\", \\\"is_problem\\\", \\\"latency\\\", \\\"is_sticky_acknowledgement\\\", \\\"host_id\\\", \\\"affects_children\\\", \\\"check_source\\\", \
\\"in_downtime\\\", \\\"output\\\", \\\"previous_hard_state\\\", \\\"acknowledgement_comment_id\\\", \\\"next_check\\\", \\\"properties_checksum\\\", \\\"environment_id\\\", \\\"id\\\", \\\"
hard_state\\\", \\\"soft_state\\\") VALUES (:service_id,:is_flapping,:last_update,:severity,:normalized_performance_data,:previous_soft_state,:check_attempt,:is_handled,:state_type,:is_ackno
wledged,:long_output,:check_timeout,:last_state_change,:check_commandline,:scheduling_source,:next_update,:last_comment_id,:execution_time,:is_reachable,:performance_data,:is_problem,:latenc
y,:is_sticky_acknowledgement,:host_id,:affects_children,:check_source,:in_downtime,:output,:previous_hard_state,:acknowledgement_comment_id,:next_check,:properties_checksum,:environment_id,:
id,:hard_state,:soft_state) ON DUPLICATE KEY UPDATE \\\"service_id\\\" = VALUES(\\\"service_id\\\"),\\\"is_flapping\\\" = VALUES(\\\"is_flapping\\\"),\\\"last_update\\\" = VALUES(\\\"last_up
date\\\"),\\\"severity\\\" = VALUES(\\\"severity\\\"),\\\"normalized_performance_data\\\" = VALUES(\\\"normalized_performance_data\\\"),\\\"previous_soft_state\\\" = VALUES(\\\"previous_soft
_state\\\"),\\\"check_attempt\\\" = VALUES(\\\"check_attempt\\\"),\\\"is_handled\\\" = VALUES(\\\"is_handled\\\"),\\\"state_type\\\" = VALUES(\\\"state_type\\\"),\\\"is_acknowledged\\\" = VA
LUES(\\\"is_acknowledged\\\"),\\\"long_output\\\" = VALUES(\\\"long_output\\\"),\\\"check_timeout\\\" = VALUES(\\\"check_timeout\\\"),\\\"last_state_change\\\" = VALUES(\\\"last_state_change
\\\"),\\\"check_commandline\\\" = VALUES(\\\"check_commandline\\\"),\\\"scheduling_source\\\" = VALUES(\\\"scheduling_source\\\"),\\\"next_update\\\" = VALUES(\\\"next_update\\\"),\\\"last_c
omment_id\\\" = VALUES(\\\"last_comment_id\\\"),\\\"execution_time\\\" = VALUES(\\\"execution_time\\\"),\\\"is_reachable\\\" = VALUES(\\\"is_reachable\\\"),\\\"performance_data\\\" = VALUES(
\\\"performance_data\\\"),\\\"is_problem\\\" = VALUES(\\\"is_problem\\\"),\\\"latency\\\" = VALUES(\\\"latency\\\"),\\\"is_sticky_acknowledgement\\\" = VALUES(\\\"is_sticky_acknowledgement\\
\"),\\\"host_id\\\" = VALUES(\\\"host_id\\\"),\\\"affects_children\\\" = VALUES(\\\"affects_children\\\"),\\\"check_source\\\" = VALUES(\\\"check_source\\\"),\\\"in_downtime\\\" = VALUES(\\\
"in_downtime\\\"),\\\"output\\\" = VALUES(\\\"output\\\"),\\\"previous_hard_state\\\" = VALUES(\\\"previous_hard_state\\\"),\\\"acknowledgement_comment_id\\\" = VALUES(\\\"acknowledgement_co
mment_id\\\"),\\\"next_check\\\" = VALUES(\\\"next_check\\\"),\\\"properties_checksum\\\" = VALUES(\\\"properties_checksum\\\"),\\\"environment_id\\\" = VALUES(\\\"environment_id\\\"),\\\"id
\\\" = VALUES(\\\"id\\\"),\\\"hard_state\\\" = VALUES(\\\"hard_state\\\"),\\\"soft_state\\\" = VALUES(\\\"soft_state\\\")\": Error 1105 (HY000): Parameter of prepared statement which is set
through mysql_send_long_data() is longer than 'max_allowed_packet' bytes"
Sep 1 09:40:25 skinner1 icingadb[2362625]: config-sync: Aborted initial state sync after 5m2.602835192s
Sep 1 09:40:25 skinner1 icingadb[2362625]: Error 1105 (HY000): Parameter of prepared statement which is set through mysql_send_long_data() is longer than 'max_allowed_packet' bytes#012can't perform "INSERT INTO \"service_state\" (\"service_id\", \"is_flapping\", \"last_update\", \"severity\", \"normalized_performance_data\", \"previous_soft_state\", \"check_attempt\", \"is_handled\", \"state_type\", \"is_acknowledged\", \"long_output\", \"check_timeout\", \"last_state_change\", \"check_commandline\", \"scheduling_source\", \"next_update\", \"last_comment_id\", \"execution_time\", \"is_reachable\", \"performance_data\", \"is_problem\", \"latency\", \"is_sticky_acknowledgement\", \"host_id\", \"affects_children\", \"check_source\", \"in_downtime\", \"output\", \"previous_hard_state\", \"acknowledgement_comment_id\", \"next_check\", \"properties_checksum\", \"environment_id\", \"id\", \"hard_state\", \"soft_state\") VALUES (:service_id,:is_flapping,:last_update,:severity,:normalized_performance_data,:previous_soft_state,:check_attempt,:is_handled,:state_type,:is_acknowledged,:long_output,:check_timeout,:last_state_change,:check_commandline,:scheduling_source,:next_update,:last_comment_id,:execution_time,:is_reachable,:performance_data,:is_problem,:latency,:is_sticky_acknowledgement,:host_id,:affects_children,:check_source,:in_downtime,:output,:previous_hard_state,:acknowledgement_comment_id,:next_check,:properties_checksum,:environment_id,:id,:hard_state,:soft_state) ON DUPLICATE KEY UPDATE \"service_id\" = VALUES(\"service_id\"),\"is_flapping\" = VALUES(\"is_flapping\"),\"last_update\" = VALUES(\"last_update\"),\"severity\" = VALUES(\"severity\"),\"normalized_performance_data\" = VALUES(\"normalized_performance_data\"),\"previous_soft_state\" = VALUES(\"previous_soft_state\"),\"check_attempt\" = VALUES(\"check_attempt\"),\"is_handled\" = VALUES(\"is_handled\"),\"state_type\" = VALUES(\"state_type\"),\"is_acknowledged\" = VALUES(\"is_acknowledged\"),\"long_output\" = VALUES(\"long_output\"),\"check_timeout\" = VALUES(\"check_timeout\"),\"last_state_change\" = VALUES(\"last_state_change\"),\"check_commandline\" = VALUES(\"check_commandline\"),\"scheduling_source\" = VALUES(\"scheduling_source\"),\"next_update\" = VALUES(\"next_update\"),\"last_comment_id\" = VALUES(\"last_comment_id\"),\"execution_time\" = VALUES(\"execution_time\"),\"is_reachable\" = VALUES(\"is_reachable\"),\"performance_data\" = VALUES(\"performance_data\"),\"is_problem\" = VALUES(\"is_problem\"),\"latency\" = VALUES(\"latency\"),\"is_sticky_acknowledgement\" = VALUES(\"is_sticky_acknowledgement\"),\"host_id\" = VALUES(\"host_id\"),\"affects_children\" = VALUES(\"affects_children\"),\"check_source\" = VALUES(\"check_source\"),\"in_downtime\" = VALUES(\"in_downtime\"),\"output\" = VALUES(\"output\"),\"previous_hard_state\" = VALUES(\"previous_hard_state\"),\"acknowledgement_comment_id\" = VALUES(\"acknowledgement_comment_id\"),\"next_check\" = VALUES(\"next_check\"),\"properties_checksum\" = VALUES(\"properties_checksum\"),\"environment_id\" = VALUES(\"environment_id\"),\"id\" = VALUES(\"id\"),\"hard_state\" = VALUES(\"hard_state\"),\"soft_state\" = VALUES(\"soft_state\")"#012github.com/icinga/icinga-go-library/database.CantPerformQuery#012#011github.com/icinga/icinga-go-library@v0.8.2/database/utils.go:19#012github.com/icinga/icinga-go-library/database.(*DB).NamedBulkExec.func1.1.1.1#012#011github.com/icinga/icinga-go-library@v0.8.2/database/db.go:535#012github.com/icinga/icinga-go-library/retry.WithBackoff#012#011github.com/icinga/icinga-go-library@v0.8.2/retry/retry.go:65#012github.com/icinga/icinga-go-library/database.(*DB).NamedBulkExec.func1.1.1#012#011github.com/icinga/icinga-go-library@v0.8.2/database/db.go:530#012golang.org/x/sync/errgroup.(*Group).Go.func1#012#011golang.org/x/sync@v0.19.0/errgroup/errgroup.go:93#012runtime.goexit#012#011runtime/asm_amd64.s:1264#012retry deadline exceeded#012github.com/icinga/icinga-go-library/retry.WithBackoff#012#011github.com/icinga/icinga-go-library@v0.8.2/retry/retry.go:100#012github.com/icinga/icinga-go-library/database.(*DB).NamedBulkExec.func1.1.1#012#011github.com/icinga/icinga-go-library@v0.8.2/database/db.go:530#012golang.org/x/sync/errgroup.(*Group).Go.func1#012#011golang.org/x/sync@v0.19.0/errgroup/errgroup.go:93#012runtime.goexit#012#011runtime/asm_amd64.s:1264