Start a new topic
Solved

Sandfly is generating duplicate client IDs and overwriting existing hosts.

 Greetings,


I am a new subscriber to Sandfly and I was hoping to get some insight on a little issue I've been experiencing.


I'm work for in IT Support so I'll admit I'm no Sys Admin (yet).


Somehow, two of my hosts are assigned the same client ID, and no matter if I add them (by hostname or IP) they will overwrite each other. I will attach screenshots of logs and a video illustrating my issue.


I set the Sandfly server and node up today on a fresh debian 12.9 VM.


Any help would be much appreciated.

Alex
mp4

Hello Alex Arrington,


Sandfly generates a host_id for each added system which is largely based on several identifiers (typically UUIDs) found on the added VM. If Sandfly is overwriting a host with another, the majority of the time it is due to those VMs having all of the same identifiers, which is indicative of being a cloned VM without any post-cloning steps to make each cloned VM truly unique.


How to accomplish that depends on your VM environment and OS. However, once those two VMs are confirmed to have unique identifiers, the host / machine and filesystem UUIDs in particular, those VMs should add without issue.



Sandfly Support


 Steve,


Thanks for your response.


I am on Proxmox VE and these are AlmaLinux 9 VMs; all are full clones with no post-clone steps taken.


I will read up on post-cloning steps to take. 


I'm sure Selinux will let me know when I am doing the right thing  too :D


Thanks again.

I just had to regenerate the machine IDs.

rm /etc/machine-id
systemd-machine-id-setup

 Both VMs detected and have different host_IDs!

Login or Signup to post a comment