Skip to content

Conversation

@raviks789
Copy link
Collaborator

@raviks789 raviks789 commented Dec 10, 2025

Problem:
For complex network device configuration with very large interfaces, the automation fails with the following error in MySQL as the custom variable storing the interface configuration will be very large:

Exception while syncing Icinga\Module\Director\Objects\IcingaHost XXX: Storing director_activity_log[] failed: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'new_properties' at row 1

Solution:
MySQL:

  1. Change the data type of old_properties and new_properties column in director_activity_log table to MEDIUMTEXT
  2. Change the data type of varvalue column in icinga_host_var table to MEDIUMTEXT

PostgreSQL:
No changes required as the data type text already allows storing of string up to the size of 1GB.

ref/IP/62246

…TEXT in director_activity_log_table

ref: ref/IP/62246

Postgres doesn't require this update, because the datatype `text` can already store a string upto 1GB.
@cla-bot cla-bot bot added the cla/signed label Dec 10, 2025
@raviks789 raviks789 requested a review from lippserd December 10, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants