I'm trying to migrate NetXMS from a physical host to an LXC container and also upgrade to TimescaleDB.
I installed NetXMS 5.1.3 in the container and initialized a postgres 15 database with timescaledb, then I upgraded the existing host to the same version and stopped the service in both locations.
Then I run
nxdbmgr migrate old_netxmsd.conf
which started the migration, but failed with a Windows Event log:
Migrating table win_event_log
SQL query failed (22001 ERROR: value too long for type character varying(2000)):
INSERT INTO win_event_log (id,event_timestamp,node_id,zone_uin,origin_timestamp,log_name,event_source,event_severity,event_code,message,raw_data) VALUES (?,to_timestamp(?),?,?,?,?,?,?,?,?,?)
Failed input record:
(Truncated the event data, but it was also printed.)
I thought about removing records in the source db which violate the new constraints to complete the migration, but what about new records that netxms will attempt to insert in the new db?
What should I do in this case?