# Elasticsearch not working post migration of OS

**URL:** https://discuss.elastic.co/t/elasticsearch-not-working-post-migration-of-os/347375
**Category:** Elasticsearch
**Created:** [November 17, 2023, 1:06am UTC](https://discuss.elastic.co/t/elasticsearch-not-working-post-migration-of-os/347375 "2023-11-17T01:06:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Techiebee](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@Techiebee](https://discuss.elastic.co/u/Techiebee)
#### Post date: [November 17, 2023, 1:06am UTC](https://discuss.elastic.co/t/elasticsearch-not-working-post-migration-of-os/347375/1 "2023-11-17T01:06:24Z")

</div>

I have migrated my Elasticsearch cluster servers from centos7 to RHEL8 , post migration my cluster isn’t picking the hostname, for every server re-build I have to manually edit the hostname and restart the Elasticsearch service, I have checked to generate the enrolment token but it says no such file or directory, can someone please help @Sunile_Manjee

---

<div class="post-metadata">

### Author: ![Sunile\_Manjee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sunile_manjee/32/111461_2.png) [@Sunile\_Manjee](https://discuss.elastic.co/u/Sunile_Manjee)
#### Post date: [November 17, 2023, 2:33pm UTC](https://discuss.elastic.co/t/elasticsearch-not-working-post-migration-of-os/347375/2 "2023-11-17T14:33:05Z")

</div>

can you please provide log output to help further debug the issue?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 15, 2023, 2:33pm UTC](https://discuss.elastic.co/t/elasticsearch-not-working-post-migration-of-os/347375/3 "2023-12-15T14:33:59Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
