# Stop OneAgent update attempts

**URL:** <https://community.dynatrace.com/t/stop-oneagent-update-attempts/49414>\
**Category:** Open Q&A\
**Tags:** oneagent\
**Created:** [December 18, 2024, 1:09pm UTC](https://community.dynatrace.com/t/stop-oneagent-update-attempts/49414 "2024-12-18T13:09:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichaelKohn](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@MichaelKohn](https://community.dynatrace.com/u/MichaelKohn)\
**Post date:** [December 18, 2024, 1:09pm UTC](https://community.dynatrace.com/t/stop-oneagent-update-attempts/49414/1 "2024-12-18T13:09:05Z")

</div>

Hello,

we have deactivated automatic updates of OneAgents on environment for various reasons and have recently done manual updates to version 1.303.  
During this, the upgrade of OA on one Windows server failed and after some debugging it seems the root cause was the OS being too old (Windows 2012). This is not something we can resolve, the server will probably be decommissioned soon. We will probably have to live with the outdated OA version until then.

In the meantime however, we have daily notifications in our tenant that another update attempt was made and failed.  
So my question is: Is there any way to stop these daily update attempts?

Thanks in advance,

Mike

---

<div class="post-metadata">

**Author:** ![mizso74](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [December 18, 2024, 2:51pm UTC](https://community.dynatrace.com/t/stop-oneagent-update-attempts/49414/2 "2024-12-18T14:51:43Z")

</div>

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

You can define a target version host level, host group level or environment level.

 ![Mizs_1-1734533410815.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/5/059d6034c166865fe0d088e1acc753720eb470d7.png)

Or you can switch of the update host level, host group level or environment level.

 ![Mizs_2-1734533455677.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/82f6dbac8640d3d6469c4070304d12ae5d282b51.png)

I hope it helps.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![MichaelKohn](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@MichaelKohn](https://community.dynatrace.com/u/MichaelKohn)\
**Post date:** [December 18, 2024, 3:28pm UTC](https://community.dynatrace.com/t/stop-oneagent-update-attempts/49414/3 "2024-12-18T15:28:54Z")

</div>

Hello Mizso,

thanks for your suggestion. Unfortunately the update mode was already set to “No automatic updates” - at most I could try to toggle it on and off again.  
Regarding the host specific setting for the target version, I can see this option available for other OAs. But it’s not there for this one:

 ![MichaelKohn_0-1734535286578.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5f2f556872eddcfffc4f4346d5f11e8eb64c3108.png)

The fact that there are daily attempts to update the agent, even when starting the update manually, can make sense for Unix servers where there is not enough space in the filesystem. Then the agent will be updated within 24 hours of making enough room in the filesystem. But in this case I really would like to be able to stop these update attempts.

---

<div class="post-metadata">

**Author:** ![mizso74](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [December 18, 2024, 3:36pm UTC](https://community.dynatrace.com/t/stop-oneagent-update-attempts/49414/4 "2024-12-18T15:36:05Z")

</div>

Hi&nbsp;[@MichaelKohn](https://community.dynatrace.com/user/61365)

What if you choose the automatic update + an old target version. What will be the result?

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 20, 2024, 5:49am UTC](https://community.dynatrace.com/t/stop-oneagent-update-attempts/49414/5 "2024-12-20T05:49:12Z")

</div>

Hi&nbsp;[@MichaelKohn](https://community.dynatrace.com/user/61365)

To proceed with the required action PFA references:

- [OneAgent configuration via command-line interface — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/oneagentctl#automatic-updates)
- [OneAgent configuration via command-line interface — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/oneagentctl#check-if-auto-update-is-enabled)
- [OneAgent configuration via command-line interface — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/oneagentctl#enable-or-disable-auto-update)

Depending on the OS, you can enable or disable the auto-Update through “dynatrace.conf” file.

**Tip** :

- Stop the Oneagent service \> Apply the required change \> Restart Oneagent service again.

To set a specific OA version it’s achievable through the UI.

Hoping it helps.

BR,

Peter

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 20, 2024, 5:52am UTC](https://community.dynatrace.com/t/stop-oneagent-update-attempts/49414/6 "2024-12-20T05:52:48Z")

</div>

Hi&nbsp;[@MichaelKohn](https://community.dynatrace.com/user/61365)

It’s good to investigate the logs directory as it will show the log entries regarding the failing update attempt.

BR,

Peter

---

<div class="post-metadata">

**Author:** ![MichaelKohn](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@MichaelKohn](https://community.dynatrace.com/u/MichaelKohn)\
**Post date:** [December 20, 2024, 9:26am UTC](https://community.dynatrace.com/t/stop-oneagent-update-attempts/49414/7 "2024-12-20T09:26:52Z")

</div>

Hello [@Mizső](https://community.dynatrace.com/user/47783)

the agent’s version is 1.299.45 but there is also a version 1.299.50 available. I set it to “automatic updates at earliest convenience” and chose the target version 1.299 (I can’t chose sub-versions below that) but I assume the update attempt will be done anyway. I’ll check this again tomorrow.

---

<div class="post-metadata">

**Author:** ![MichaelKohn](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@MichaelKohn](https://community.dynatrace.com/u/MichaelKohn)\
**Post date:** [December 20, 2024, 9:41am UTC](https://community.dynatrace.com/t/stop-oneagent-update-attempts/49414/8 "2024-12-20T09:41:01Z")

</div>

Hello [@Peter\_Youssef](https://community.dynatrace.com/user/51369) thanks for the hints. I’ve locally disabled the automatic updates on the agent level, let’s see if that works.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 20, 2024, 9:51am UTC](https://community.dynatrace.com/t/stop-oneagent-update-attempts/49414/9 "2024-12-20T09:51:41Z")

</div>

Hi&nbsp;[@MichaelKohn](https://community.dynatrace.com/user/61365)&nbsp;  
Good to hear that, hoping it will be sorted soon.

---

<div class="post-metadata">

**Author:** ![g\_kat](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/g_kat/32/34573_2.png) [@g\_kat](https://community.dynatrace.com/u/g_kat)\
**Post date:** [January 3, 2025, 8:52am UTC](https://community.dynatrace.com/t/stop-oneagent-update-attempts/49414/10 "2025-01-03T08:52:22Z")

</div>

Hi,

We are facing the exact same problem. It seems that even with Automatic updates disabled in every level, when the OA starts trying to update it will do so forever. It doesn’t make sense for it t ignore the no auto update directive even if it fails.

We haven’t resorted to oneagentctl yet, since we want to first understand why is the No Automatic Update policy ignored.

[@MichaelKohn](https://community.dynatrace.com/user/61365)&nbsp;did you have any further luck?

Thanks,

George
