In the discovery_server log we see something similar to the following
[robotWorker-1] ERROR com.nimsoft.discovery.common.util.ExceptionUtil - PackagePersister exception for /PrimaryHub/nimSecondaryHub/robot01 : org.springframework.dao.DuplicateKeyException: PreparedStatementCallback; SQL []; Violation of PRIMARY KEY constraint 'PK_CM_NIMBUS_PACKAGE'. Cannot insert duplicate key in object 'dbo.CM_NIMBUS_PACKAGE'. The duplicate key value is (1182, cdm-pagefile).; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY KEY constraint 'PK_CM_NIMBUS_PACKAGE'. Cannot insert duplicate key in object 'dbo.CM_NIMBUS_PACKAGE'. The duplicate key value is (1182, cdm-pagefile).
DX UIM 20.4.* / 23.4.*
Deactivate discovery_server
In Infrastructure Manager, navigate to the robot that is listed in the error message
For example, /PrimaryHub/nimSecondaryHub/robot01in the error message above.
Select the 'controller' probe on this hub itself and press CTRL+P for the probe utility
Run the probe callback "inst_list_summary"
You should see the package that is causing issues
In this example cdm-pagefile
In the probe utility run inst_list_remove and insert the name of the package.
In this example cdm-pagefile
Clear the niscache on the same hub/robot
Activate the discovery_server
You may need to clear out the discovery_server queue to help it catch up.
Retest - and issue should be resolved.