# Reassign correct host after host failure

**URL:** <https://forum.pritunl.com/t/reassign-correct-host-after-host-failure/3392>\
**Category:** Pritunl VPN\
**Created:** [June 25, 2025, 11:41am UTC](https://forum.pritunl.com/t/reassign-correct-host-after-host-failure/3392 "2025-06-25T11:41:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkalugeroff](https://forum.pritunl.com/user_avatar/forum.pritunl.com/kkalugeroff/32/1298_2.png) [@kkalugeroff](https://forum.pritunl.com/u/kkalugeroff)\
**Post date:** [June 25, 2025, 11:41am UTC](https://forum.pritunl.com/t/reassign-correct-host-after-host-failure/3392/1 "2025-06-25T11:41:02Z")

</div>

Hello,

We have a Pritunl VPN set up on an AWS EC2 instance running Oracle Linux 9, managed within an Auto Scaling Group (ASG). Recently, we encountered a situation where the ASG replaced an unhealthy instance with a new one having a different private IP address. However, when the Pritunl service starts on the new instance, it is not attaching the healthy host to the configured servers automatically and all of the servers still point to the host that is no longer available. Is there a way to automate this attachment process?

Thank you!

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [June 25, 2025, 9:22pm UTC](https://forum.pritunl.com/t/reassign-correct-host-after-host-failure/3392/2 "2025-06-25T21:22:02Z")

</div>

When hosts are redployed the `/var/lib/pritunl/pritunl.uuid` file needs to be restored. If new hosts are added the hosts will need to be attached to servers. Currently that can only be done in the web console.

---

<div class="post-metadata">

**Author:** ![kkalugeroff](https://forum.pritunl.com/user_avatar/forum.pritunl.com/kkalugeroff/32/1298_2.png) [@kkalugeroff](https://forum.pritunl.com/u/kkalugeroff)\
**Post date:** [June 30, 2025, 1:41pm UTC](https://forum.pritunl.com/t/reassign-correct-host-after-host-failure/3392/3 "2025-06-30T13:41:02Z")

</div>

Having that said seems like there isn’t any out of the box method which will help us for correct reassignment of active host to existing Pritunl servers in case of host failure, is that correct?

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [July 1, 2025, 11:57pm UTC](https://forum.pritunl.com/t/reassign-correct-host-after-host-failure/3392/4 "2025-07-01T23:57:51Z")

</div>

If the UUID in `/var/lib/pritunl/pritunl.uuid` persists to the new server it will retain the same configuration.
