NetXMS Support Forum

English Support => General Support => Topic started by: gmonk63 on May 03, 2024, 04:42:33 PM

Title: Template Errors after 5.0 install
Post by: gmonk63 on May 03, 2024, 04:42:33 PM
After upgrading to 5.0 I have been getting alarms with the Ubiquiti AirMAX templates see below. Not sure if this was fixed with 5.0.1 but wanted to post just incase
Title: Re: Template Errors after 5.0 install
Post by: Victor Kirhenshtein on May 03, 2024, 04:49:36 PM
Yes, it's database corruption caused by upgrade to 5.0.0 (fixed in 5.0.1, but unfortunately fix will not help if database is already converted).
Bug in upgrade procedure caused instance discovery filters to be replaced with transformation scripts for instance discovery DCIs where transformation scripts were defined. If you don't have lot of instance discovery DCIs best option is to go through them and re-create instance filters manually (or restore only "instd_filter" column in table "items" from database backup).

Best regards,
Victor
Title: Re: Template Errors after 5.0 install
Post by: Filipp Sudanov on May 03, 2024, 04:53:13 PM
If these are out-of-the-box templates, you can re-import them via Configuration -> Import configuration. Template files are here: https://github.com/netxms/netxms/tree/master/contrib/templates
Title: Re: Template Errors after 5.0 install
Post by: gmonk63 on May 03, 2024, 05:07:36 PM
Perfect Thank you.. These are the out of box templates
Title: Re: Template Errors after 5.0 install
Post by: Victor Kirhenshtein on May 03, 2024, 06:22:33 PM
For out of the box templates, if you didn't change them, you can just re-import them, either manually or by changing server configuration option Server.ImportConfigurationOnStartup to "always" and restarting server.

Best regards,
Victor