# Agent Enrollment: failed to fix permissions

**URL:** <https://discuss.elastic.co/t/agent-enrollment-failed-to-fix-permissions/350254>\
**Category:** Elastic Agent\
**Tags:** fleet\
**Created:** [January 2, 2024, 4:00pm UTC](https://discuss.elastic.co/t/agent-enrollment-failed-to-fix-permissions/350254 "2024-01-02T16:00:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DefensiveDepth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/defensivedepth/32/110034_2.png) [@DefensiveDepth](https://discuss.elastic.co/u/DefensiveDepth)\
**Post date:** [January 2, 2024, 4:00pm UTC](https://discuss.elastic.co/t/agent-enrollment-failed-to-fix-permissions/350254/1 "2024-01-02T16:00:43Z")

</div>

Cannot consistently replicate this issue, but it does pop up every so often.

Deploying 8.10.4 Fleet-connected Agent to Oracle Linux 9:

"Error: failed to fix permissions: chmod /opt/Elastic/Agent/data/elastic-agent-a92ca3/run/http/metrics-monitoring/meta.json.new: no such file or directory"

```auto
Installing in non-interactive 
mode.{"log.level":"info","@timestamp":"2024-01-02T10:55:01.643Z","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":479},"message":"Starting enrollment to URL: https://x.x.x.x:8220/","ecs.version":"1.6.0"}
Error: failed to fix permissions: chmod /opt/Elastic/Agent/data/elastic-agent-a92ca3/run/http/metrics-monitoring/meta.json.new: no such file or directory
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.10/fleet-troubleshooting.html
Error: enroll command failed with exit code: 1
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.10/fleet-troubleshooting.html
: exit status 1

```

---

<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:** [January 30, 2024, 4:01pm UTC](https://discuss.elastic.co/t/agent-enrollment-failed-to-fix-permissions/350254/2 "2024-01-30T16:01:04Z")

</div>

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