Profile Manager duplicate key value violates unique constraint
Hi,
I have a big problem with my Profile Manager (Server 5.10, Catalina).
To the log I have (repeat x time each second...) :
0:: [303] [2022/01/20 14:17:50.209] Caught exception sending objc_msgsend-style notification <PGDatabaseNotification:0x7f8136a92930> [channel: 'objc_send', message: '[LibraryItemMetadata parseAvailableOSUpdatesForLibraryItemMetadataID:72899]'].
-[PGConnection executeSQL:withParams:] (PGConnection.m:628): "Postgres error 23505 (ERROR: duplicate key value violates unique constraint "os_updates_devices_device_id_os_update_id_key"
DETAIL: Key (device_id, os_update_id)=(72899, 9064494) already exists.
)"
1:: [303] [2022/01/20 14:17:50.210] EXCEPTION: !IF <-[PGConnection beginTransactionWithID:priority:perform:] (PGConnection.m:350): "'((_transactionAborted))'">
0:: [303] [2022/01/20 14:17:50.210] Caught unhandled exception -[PGConnection beginTransactionWithID:priority:perform:] (PGConnection.m:350): "'((_transactionAborted))'"
0:: [303] [2022/01/20 14:17:50.210] Caught exception processing queued DB notification: -[PGConnection beginTransactionWithID:priority:perform:] (PGConnection.m:350): "'((_transactionAborted))'"
1:: [303] [2022/01/20 14:17:50.211] INVOKING [LibraryItemMetadata parseAvailableOSUpdatesForLibraryItemMetadataID: {"72899"}]
0:: [303] [2022/01/20 14:17:50.218] EXCEPTION: Postgres <-[PGConnection executeSQL:withParams:] (PGConnection.m:628): "Postgres error 23505 (ERROR: duplicate key value violates unique constraint "os_updates_devices_device_id_os_update_id_key"
DETAIL: Key (device_id, os_update_id)=(72899, 9064495) already exists.
)">
USERINFO: {
SQLSTATE = 23505;
errorMessage = "ERROR: duplicate key value violates unique constraint \"os_updates_devices_device_id_os_update_id_key\"\nDETAIL: Key (device_id, os_update_id)=(72899, 9064495) already exists.\n";
}
I don't understand why. Ref for device_id is 72899. Where I can find device_id in my Profile Manager?
The message like logs files.... :