# Register repository failing on RHEL8

**URL:** https://discuss.elastic.co/t/register-repository-failing-on-rhel8/365597
**Category:** Elastic Search
**Tags:** snapshot-and-restore, elastic-app-search
**Created:** [August 27, 2024, 7:00am UTC](https://discuss.elastic.co/t/register-repository-failing-on-rhel8/365597 "2024-08-27T07:00:51Z")
**Posts on this page:** 2
**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: [August 27, 2024, 7:00am UTC](https://discuss.elastic.co/t/register-repository-failing-on-rhel8/365597/1 "2024-08-27T07:00:52Z")

</div>

2024-08-26 08:35:52,352 p=8308 u=root n=ansible | TASK [elasticsearch : register repository] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* 2024-08-26 08:36:24,038 p=8308 u=root n=ansible | fatal: [localhost]: FAILED! =\> {"changed": false, "content\_length": "228", "content\_type": "application/json; charset=UTF-8", "elapsed": 30, "json": {"error": {"reason": null, "root\_cause": [{"reason": null, "type": "master\_not\_discovered\_exception"}], "type": "master\_not\_discovered\_exception"}, "status": 503}, "msg": "Status code was 503 and not [200]: HTTP Error 503: Service Unavailable", "redirected": false, "status": 503, "url": "[https://localhost:9200/\_snapshot/efs\_backup?pretty"](https://localhost:9200/_snapshot/efs_backup?pretty%22), "x\_elastic\_product": "Elasticsearch"}

I have to manually update the hostname every time after weekly patching, Could find only this error in the ansible.log, any help would be appreciated

---

<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: [September 24, 2024, 7:01am UTC](https://discuss.elastic.co/t/register-repository-failing-on-rhel8/365597/2 "2024-09-24T07:01:00Z")

</div>

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