# Already enrolled but actually it is a different machine

**URL:** <https://discourse.crowdsec.net/t/already-enrolled-but-actually-it-is-a-different-machine/1477>\
**Category:** Uncategorized\
**Created:** [October 27, 2023, 1:23am UTC](https://discourse.crowdsec.net/t/already-enrolled-but-actually-it-is-a-different-machine/1477 "2023-10-27T01:23:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndrewF](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/andrewf/32/697_2.png) [@AndrewF](https://discourse.crowdsec.net/u/AndrewF)\
**Post date:** [October 27, 2023, 1:23am UTC](https://discourse.crowdsec.net/t/already-enrolled-but-actually-it-is-a-different-machine/1477/1 "2023-10-27T01:23:20Z")

</div>

I want to enroll a new server of my network but it appears as already enrolled probably due to the fact it used the same OS image with already installed and configured Crowdsec of another one, although it has a different host name.

The message notes that I could force the enrolling, but I suspect this would conflict with the other machine because they have some identification autogenerated during original setup that is the same (otherwise would not have returned already enrolled message in first place)

How should I do, considering that I want to maintain the configurations (that has been already tuned and customized) and the other machine should continue to have its own engine instance?

---

<div class="post-metadata">

**Author:** ![iiAmLoz](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/iiamloz/32/386_2.png) [@iiAmLoz](https://discourse.crowdsec.net/u/iiAmLoz)\
**Post date:** [October 28, 2023, 12:50pm UTC](https://discourse.crowdsec.net/t/already-enrolled-but-actually-it-is-a-different-machine/1477/2 "2023-10-28T12:50:39Z")

</div>

You need to regenerate the `/etc/crowdsec/online_api_credentials.yaml`

Easiest way is

```auto
rm /etc/crowdsec/online_api_credentials.yaml
touch /etc/crowdsec/online_api_credentials.yaml
sudo cscli capi register
sudo cscli console enroll <id>

```

---

<div class="post-metadata">

**Author:** ![AndrewF](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/andrewf/32/697_2.png) [@AndrewF](https://discourse.crowdsec.net/u/AndrewF)\
**Post date:** [November 1, 2023, 11:06pm UTC](https://discourse.crowdsec.net/t/already-enrolled-but-actually-it-is-a-different-machine/1477/3 "2023-11-01T23:06:07Z")

</div>

> [@iiAmLoz](#):
>
> `sudo cscli capi register`

I have followed this procedure but It returns the same error.

> Instance already enrolled. You can use ‘–overwrite’ to force enroll

Could I use force command without cause conflicts with other node?
