# Has the location of liboneagentproc.so moved?

**URL:** <https://community.dynatrace.com/t/has-the-location-of-liboneagentproc-so-moved/44188>\
**Category:** Open Q&A\
**Tags:** linux, oneagent\
**Created:** [February 19, 2024, 7:09pm UTC](https://community.dynatrace.com/t/has-the-location-of-liboneagentproc-so-moved/44188 "2024-02-19T19:09:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [February 19, 2024, 7:09pm UTC](https://community.dynatrace.com/t/has-the-location-of-liboneagentproc-so-moved/44188/1 "2024-02-19T19:09:01Z")

</div>

I’ve noticed that the location of&nbsp;liboneagentproc.so on linux installation seems to have moved at some point/update?  
In the past sysadmins added the library path to LD\_PRELOAD (per process) to allow injection into specific processes only. Back then the way to do this was by pointing to

```auto
/opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so

```

Now this seems to have silently moved to:

```auto
/lib/x86_64-linux-gnu/liboneagentproc.so

```

and thus this way of injection doesn’t work anymore?

Does anyone. have any information on this?

KR

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [February 19, 2024, 7:49pm UTC](https://community.dynatrace.com/t/has-the-location-of-liboneagentproc-so-moved/44188/2 "2024-02-19T19:49:49Z")

</div>

[@r\_weber](https://community.dynatrace.com/user/35901),

First one I checked just introduced more variation:

```markup
# find . -name liboneagentproc.so
/usr/lib/x86_64-linux-gnu/liboneagentproc.so
/opt/dynatrace/oneagent/agent/bin/1.283.132.20240205-143805/linux-x86-64/liboneagentproc.so
/opt/dynatrace/oneagent/agent/bin/1.283.132.20240205-143805/linux-x86-32/liboneagentproc.so

```

Tried looking inside the installation script, but couldn’t find immediate references.

I imagine it may vary by distribution. In the case I checked, Ubuntu 20.04.3 LTS.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [February 19, 2024, 8:56pm UTC](https://community.dynatrace.com/t/has-the-location-of-liboneagentproc-so-moved/44188/3 "2024-02-19T20:56:03Z")

</div>

Yes and no 😁  
The path depends on the Linux distribution and bitness. And it does not reference to /opt anymore but to the /lib (main system libraries or how is this called) - I mainly to ensure it is accessible every time the system boots. Inaccessible library specified in preload can be a pain.

---

<div class="post-metadata">

**Author:** ![sujit\_k\_singh](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sujit\_k\_singh](https://community.dynatrace.com/u/sujit_k_singh)\
**Post date:** [February 20, 2024, 2:45am UTC](https://community.dynatrace.com/t/has-the-location-of-liboneagentproc-so-moved/44188/4 "2024-02-20T02:45:59Z")

</div>

This was surprising, i had same issue and tried to figure out what went wrong, later on found directory structure has been changed from /opt to /lib in few cases…

---

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [February 21, 2024, 9:46am UTC](https://community.dynatrace.com/t/has-the-location-of-liboneagentproc-so-moved/44188/5 "2024-02-21T09:46:08Z")

</div>

Something definitely has changed…  
Even the documentation for [manual application level injection](https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-container-platforms/docker/set-up-oneagent-on-containers-for-application-only-monitoring)&nbsp;still states to use the library at&nbsp;/opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so but it doesn’t exist anymore.  
I agree with&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)&nbsp;on having it at a system path makes more sense and creates less room for error, but for existing installations simply removing the “old” path without a fallback can cause some nasty surprises!  
Nothing in the release notes either …

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [February 21, 2024, 11:06am UTC](https://community.dynatrace.com/t/has-the-location-of-liboneagentproc-so-moved/44188/6 "2024-02-21T11:06:04Z")

</div>

[@r\_weber](https://community.dynatrace.com/user/35901)&nbsp;one needs to distinguish manual injection (where it is correct to use the file path to the oneagent installation directory).

I believe the path is changed on OneAgent upgrades where the liboneagentproc is redeployed each time correctly. For example - if you install 32bit support, the installer will also add 32bit liboneagentproc to system libraries.

---

<div class="post-metadata">

**Author:** ![Romanenkov\_Al3x](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_al3x/32/36257_2.png) [@Romanenkov\_Al3x](https://community.dynatrace.com/u/Romanenkov_Al3x)\
**Post date:** [July 10, 2024, 4:09pm UTC](https://community.dynatrace.com/t/has-the-location-of-liboneagentproc-so-moved/44188/7 "2024-07-10T16:09:10Z")

</div>

Not good at all… Changing paths without notice.
