# Error Enroll agent Centos

**URL:** <https://discuss.elastic.co/t/error-enroll-agent-centos/308218>\
**Category:** Elasticsearch\
**Tags:** fleet\
**Created:** [June 27, 2022, 8:11am UTC](https://discuss.elastic.co/t/error-enroll-agent-centos/308218 "2022-06-27T08:11:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alipujaistopo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alipujaistopo/32/50791_2.png) [@alipujaistopo](https://discuss.elastic.co/u/alipujaistopo)\
**Post date:** [June 27, 2022, 8:11am UTC](https://discuss.elastic.co/t/error-enroll-agent-centos/308218/1 "2022-06-27T08:11:23Z")

</div>

hi guys, i have many centos server. but why in my other centos is failed to enroll agent

```auto
Error: could not read configuration file /var/lib/elastic-agent/elastic-agent.yml: open /var/lib/elastic-agent/elastic-agent.yml: no such file or directory
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/7.17/fleet-troubleshooting.html

```

but in my other centos server is fine. what's the problem?

---

<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:** [July 25, 2022, 8:12am UTC](https://discuss.elastic.co/t/error-enroll-agent-centos/308218/2 "2022-07-25T08:12:13Z")

</div>

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