NetXMS v3 - duplicate entry for software_inventory?

Started by hkusulja, October 07, 2019, 09:42:36 AM

Previous topic - Next topic

hkusulja

After upgrading to 3.0.0 we started regularly receiving the following errors in the nxagentd log:


[db.driver          ] SQL query failed (Query = "INSERT INTO software_inventory (node_id,name,version,vendor,install_date,url,description) VALUES (?,?,?,?,?,?,?)"): Duplicate entry '4454-SQL Server 2012 Client Tools-11.2.5058.0' for key 'PRIMARY'
[db.driver          ] SQL query failed (Query = "INSERT INTO software_inventory (node_id,name,version,vendor,install_date,url,description) VALUES (?,?,?,?,?,?,?)"): Duplicate entry '5956-SQL Server 2008 R2 SP1 Common Files-10.51.2500.0' for key 'PRIMARY'
[db.driver          ] SQL query failed (Query = "INSERT INTO software_inventory (node_id,name,version,vendor,install_date,url,description) VALUES (?,?,?,?,?,?,?)"): Duplicate entry '6002-SQL Server 2008 R2 SP2 Common Files-10.52.4000.0' for key 'PRIMARY'
[db.driver          ] SQL query failed (Query = "INSERT INTO software_inventory (node_id,name,version,vendor,install_date,url,description) VALUES (?,?,?,?,?,?,?)"): Duplicate entry '6014-Microsoft SQL Server 2008 Analysis Services-10.4.6000.29' for key 'PRIMARY'
[db.driver          ] SQL query failed (Query = "INSERT INTO software_inventory (node_id,name,version,vendor,install_date,url,description) VALUES (?,?,?,?,?,?,?)"): Duplicate entry '6016-Microsoft SQL Server 2008 R2 Setup (English)-10.53.6000.34' for key 'PRIMARY'
[db.driver          ] SQL query failed (Query = "INSERT INTO software_inventory (node_id,name,version,vendor,install_date,url,description) VALUES (?,?,?,?,?,?,?)"): Duplicate entry '6024-SQL Server 2008 R2 SP1 Common Files-10.51.2500.0' for key 'PRIMARY'
[db.driver          ] SQL query failed (Query = "INSERT INTO software_inventory (node_id,name,version,vendor,install_date,url,description) VALUES (?,?,?,?,?,?,?)"): Duplicate entry '6340-SQL Server 2012 Common Files-11.0.2100.60' for key 'PRIMARY'
[db.driver          ] SQL query failed (Query = "INSERT INTO software_inventory (node_id,name,version,vendor,install_date,url,description) VALUES (?,?,?,?,?,?,?)"): Duplicate entry '6783-SQL Server 2012 Common Files-11.3.6020.0' for key 'PRIMARY'
[db.driver          ] SQL query failed (Query = "INSERT INTO software_inventory (node_id,name,version,vendor,install_date,url,description) VALUES (?,?,?,?,?,?,?)"): Duplicate entry '7049-Azure AD Authentication Connected Service-14.0.23107' for key 'PRIMARY'


The exact same nine errors repeat themselves every minute, in the same order.
How can we rectify this? We're ignoring the errors for now since there doesn't seem to be any negative effect from them, other than filling up the logs.

Victor Kirhenshtein

Those errors should be gone once you upgrade all agents. There were bug in agent that cause it to report identical entries in software list.

Best regards,
Victor