# OneAgent installation failed on xxxx: Failed to elevate installer process privileges

**URL:** <https://community.dynatrace.com/t/oneagent-installation-failed-on-xxxx-failed-to-elevate-installer-process-privileges/33976>\
**Category:** Dynatrace Managed\
**Tags:** updates, dynatrace-managed, oneagent\
**Created:** [February 2, 2022, 1:54pm UTC](https://community.dynatrace.com/t/oneagent-installation-failed-on-xxxx-failed-to-elevate-installer-process-privileges/33976 "2022-02-02T13:54:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jprio](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jprio](https://community.dynatrace.com/u/jprio)\
**Post date:** [February 2, 2022, 1:54pm UTC](https://community.dynatrace.com/t/oneagent-installation-failed-on-xxxx-failed-to-elevate-installer-process-privileges/33976/1 "2022-02-02T13:54:13Z")

</div>

Hello,

We have agent update problems on some hosts. We can see this on the installer logs:

```auto
2022-01-25 10:57:25.895 UTC [b77f9860] info [native] AutoUpdater: Starting update to version 1.231.245.20220112-085307 from: "/var/lib/dynatrace/oneagent/agent/downloads/Dynatrace-OneAgent-Linux-1.231.245.20220112-085307.sh"
2022-01-25 10:57:25.895 UTC [b77f9860] info [native] AutoUpdater: Enough free space (2434 MiB) available on "/opt/dynatrace/oneagent", needed: 1642 MiB
2022-01-25 10:57:25.896 UTC [b77f9860] info [native] AutoUpdater: Free system memory: 3336 MB, required: 200 MB
2022-01-25 10:57:27.229 UTC [b77f9860] info [native] AutoUpdater: Used 184071490 bytes to calculate file sha-256 digest: ee94f81f558808be462dc534d7b8bdf26c916c5f0777494c858b83ecb8ec6235
2022-01-25 10:57:27.230 UTC [b77f9860] info [native] AutoUpdater: Signature verification successful
2022-01-25 10:57:27.230 UTC [b77f9860] info [native] AutoUpdater: Starting: "/var/lib/dynatrace/oneagent/agent/downloads/Dynatrace-OneAgent-Linux-1.231.245.20220112-085307.sh"
2022-01-25 10:57:27.232 UTC [b77f9860] warning [native] AutoUpdater: Setting ambient capabilities failed: Preparation for seting ambient capabilities failed: Failed to set capabilities: error code: 1, error message: Operation not permitted
2022-01-25 10:57:27.268 UTC [b77f9860] info [native] AutoUpdater: Process created successfully, pid: 11236
2022-01-25 10:57:27.268 UTC [b77f9860] severe [native] AutoUpdater: Installation failed: exited normally with code 200
2022-01-25 10:57:27.268 UTC [b77f9860] severe [native] AutoUpdater: Failed to elevate installer process privileges
2022-01-25 10:57:27.268 UTC [b77f9860] info [native] AutoUpdater: Increased delay between autoupdate attempts to 512 minutes.
2022-01-25 10:57:30.109 UTC [b67fb860] warning [native] ScopedCapability: Cannot add capability Capability::SYS_RESOURCE to effective set, it is not present in permitted set.

```

When running the installer as root, no problems.

Any idea ?

Best regards,

JP

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [March 30, 2022, 5:36pm UTC](https://community.dynatrace.com/t/oneagent-installation-failed-on-xxxx-failed-to-elevate-installer-process-privileges/33976/2 "2022-03-30T17:36:04Z")

</div>

We had an issue like this where for some reason Linux was changing our permissions. It was hard to track down and I dont quite recall what it was. But the permission level would change randomly, I almost want to say it was security app converting the permission level.

---

<div class="post-metadata">

**Author:** ![mark\_bley](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mark_bley/32/20954_2.png) [@mark\_bley](https://community.dynatrace.com/u/mark_bley)\
**Post date:** [March 30, 2022, 6:27pm UTC](https://community.dynatrace.com/t/oneagent-installation-failed-on-xxxx-failed-to-elevate-installer-process-privileges/33976/3 "2022-03-30T18:27:21Z")

</div>

Hi&nbsp;[@jprio](https://community.dynatrace.com/user/47604)&nbsp;,

this could mean some capabilities where removed from a OA binary or the folder structure/ownership changed. Please run a healthcheck to pinpoint files/folders causing a problem

```markup
# /opt/dynatrace/oneagent/agent/tools/oneagentctl --healthcheck

```

In case of problems the healthcheck will try and recommend a way to remediate the problem, you may see something like this:

```markup
(info): [Test Name]: File Capabilities Test
(info): [ID]: 2
(info): [Status]: FAILED
(info): [Action Item]: Reinstall the agent to amend file capabilities and check for external interference.
(info): [Reason]: File capabilties are not set correctly.

```

Best,

Mark
