-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 1406 (22001): Data too long for column 'icon_image_alt' #752
Comments
The source of the issue seems to be #699. Before activating strict mode, too long values were silently truncated. |
Thanks for your report. We're going to take a closer look at it soon. @K0nne identified the SQL strict mode as its cause in #754 (comment). However, just disabling the strict mode would hide the actual problem which was just revealed. Edit: @K0nne just commented here as well, thanks! |
We now have the MariaDB, which runs on top of the IcingaDB, running without a "strict_mode". If I set the display name back to "my-server.my-domain.tld", the WebUi works as desired again. |
@TheCry: The icingadb/schema/mysql/schema.sql Line 172 in 2681634
Furthermore, are there any errors being logged? Either by icingadb, icingadb-web (might be in your web server or PHP logs, depending on your setup) or MariaDB? There is also #724, mentioning the limit of 255 chars for |
I have tried the whole thing on another ICINGA instance. No HA. Everything on one server. Same problem. The display name in the WebUi does not change. |
Thanks for your logs, @TheCry. The three SQL errors I found there were all "Error 1406 (22001): Data too long for co This error has nothing to do with HA, but with the database schema and mostly switching to SQL STRICT MODE in 1.2.0, resulting in showing MySQL/MariaDB errors instead of silently discarding them. It seems like Btw, as the Icinga Director was mentioned, it also provides a schema where @TheCry, you wrote you tried this on another instance. Is this instance a testing instance where you can play around without endangering your production system? If this is the case - and only then - please try this schema upgrade: -- DON'T BLINDLY EXECUTE THIS UNLESS YOU HAVE READ THE PARAGRAPH ABOVE!
ALTER TABLE host MODIFY COLUMN icon_image_alt TEXT NOT NULL;
ALTER TABLE service MODIFY COLUMN icon_image_alt TEXT NOT NULL; |
@oxzi Yes i have a second system, but it is a live system, too. |
@oxzi I'd tried your queries on the second system (Sql Dump was created). After changing the field "icon_image_alt" to TEXT everything ist working fine now. I can use any "display_name" and "icon_image_alt". The system works fine. |
The icon_image_alt column in both the host and service tables contains an image alt text. However, because it is defined as a varchar(32), many alt texts do not fit. The type has been expanded to text, as with most free text fields. Closes #752. When defining a TimePeriod, the maximum length of a range value was capped at 255 characters. This limitation has now also been removed by switching to the Text type. Closes #724. While re-reading the schema, I stumbled upon some missing properties_checksum comments that were also added.
The icon_image_alt column in both the host and service tables contains an image alt text. However, because it is defined as a varchar(32), many alt texts do not fit. The type has been expanded to text, as with most free text fields. Closes #752. When defining a TimePeriod, the maximum length of a range value was capped at 255 characters. This limitation has now also been removed by switching to the Text type. Closes #724. While re-reading the schema, I stumbled upon some missing properties_checksum comments that were also added.
Describe the bug
After I created a new server in the direector and apply, the Icinga DB daemon crashes
To Reproduce
Create a server in the director and use a long "image alternate name" (this is my alternate name: aes-srv-lokal10.domai.tld (AES Application Enablement - AES 3.1)
Expected behavior
A clear and concise description of what you expected to happen.
Your Environment
Include as many relevant details about the environment you experienced the problem in
Additional context
I'd checked the DB of ICINGA DB the field
Is it possible to set a higher value?
The text was updated successfully, but these errors were encountered: