Duplicate machines in database need cleanup #2

Open
opened 2025-12-30 08:31:35 -07:00 by azcomputerguru · 0 comments

Description

DESKTOP-N9MIFGD appears twice in the database with different UUIDs. This may have happened before authentication was implemented.

Evidence

From server logs:

Restored offline machine: DESKTOP-N9MIFGD (62feaeb4-42b6-47a9-8d2c-a4629a50e053)
Restored offline machine: DESKTOP-N9MIFGD (99432392-c89c-4f11-8547-fa38527c75ab)

Tasks

  1. Identify which UUID is the correct/active one
  2. Delete duplicate entries from database
  3. Consider adding unique constraint on agent_id or hostname
  4. Review how duplicates were created to prevent recurrence

Tables affected

  • machines
  • sessions (foreign key to machines)
  • events (foreign key to sessions)
## Description DESKTOP-N9MIFGD appears twice in the database with different UUIDs. This may have happened before authentication was implemented. ## Evidence From server logs: ``` Restored offline machine: DESKTOP-N9MIFGD (62feaeb4-42b6-47a9-8d2c-a4629a50e053) Restored offline machine: DESKTOP-N9MIFGD (99432392-c89c-4f11-8547-fa38527c75ab) ``` ## Tasks 1. Identify which UUID is the correct/active one 2. Delete duplicate entries from database 3. Consider adding unique constraint on agent_id or hostname 4. Review how duplicates were created to prevent recurrence ## Tables affected - machines - sessions (foreign key to machines) - events (foreign key to sessions)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: azcomputerguru/guru-connect#2