# OneAgent version 1.311.72.20250423-112851 causing production troubles

**URL:** <https://community.dynatrace.com/t/oneagent-version-1-311-72-20250423-112851-causing-production-troubles/51504>\
**Category:** Open Q&A\
**Tags:** oneagent, problems\
**Created:** [May 6, 2025, 1:33pm UTC](https://community.dynatrace.com/t/oneagent-version-1-311-72-20250423-112851-causing-production-troubles/51504 "2025-05-06T13:33:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaoued\_zahraoui](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jaoued\_zahraoui](https://community.dynatrace.com/u/jaoued_zahraoui)\
**Post date:** [May 6, 2025, 1:33pm UTC](https://community.dynatrace.com/t/oneagent-version-1-311-72-20250423-112851-causing-production-troubles/51504/1 "2025-05-06T13:33:50Z")

</div>

our production application has issues with some functionalities.

after investigation, figured out it was related to oneagent.

relevant logs:  
[29.04.2025 08:06.59.288] [ERROR] /opt/dynatrace/oneagent/agent/bin/1.311.72.20250423-112851/any/nodejs/nodejsagent.js:12700  
[29.04.2025 08:06.59.292] [ERROR] e.runFunctionInContext(J, k.origFn, this, …I).then(x, z);  
[29.04.2025 08:06.59.292] [ERROR] ^  
[29.04.2025 08:06.59.294] [ERROR] TypeError: Cannot read properties of undefined (reading ‘then’)  
[29.04.2025 08:06.59.294] [ERROR] at \<anonymous\>  
[29.04.2025 08:06.59.294] [ERROR] at AsyncLocalStorage.run (node:async\_hooks:330:14)  
[29.04.2025 08:06.59.294] [ERROR] at processTicksAndRejections (node:internal/process/task\_queues:96:5)

Had to downgrade to previous stable version, to restore the service.

want to be sure this bug is known and handled and this version is not being automatically installed when the new release comes out.

thank you.

---

<div class="post-metadata">

**Author:** ![Theodore\_x86](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/theodore_x86/32/17620_2.png) [@Theodore\_x86](https://community.dynatrace.com/u/Theodore_x86)\
**Post date:** [May 6, 2025, 2:37pm UTC](https://community.dynatrace.com/t/oneagent-version-1-311-72-20250423-112851-causing-production-troubles/51504/2 "2025-05-06T14:37:38Z")

</div>

Hello. Can you please describe the symptom of the issue? What was the impact? Was the application able to start up properly?

BR

---

<div class="post-metadata">

**Author:** ![jaoued\_zahraoui](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jaoued\_zahraoui](https://community.dynatrace.com/u/jaoued_zahraoui)\
**Post date:** [May 6, 2025, 2:47pm UTC](https://community.dynatrace.com/t/oneagent-version-1-311-72-20250423-112851-causing-production-troubles/51504/3 "2025-05-06T14:47:21Z")

</div>

yes the application start, but some feature that allowing to uploads files was creating this issue.

the&nbsp;error indicates that the Dynatrace Node.js agent is trying to call .then() on something that’s undefined.

---

<div class="post-metadata">

**Author:** ![Theodore\_x86](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/theodore_x86/32/17620_2.png) [@Theodore\_x86](https://community.dynatrace.com/u/Theodore_x86)\
**Post date:** [May 6, 2025, 2:55pm UTC](https://community.dynatrace.com/t/oneagent-version-1-311-72-20250423-112851-causing-production-troubles/51504/4 "2025-05-06T14:55:11Z")

</div>

Understood.

Suppose you have already opened a support ticket. If this is a bug, then Support must be engaged.

BR

---

<div class="post-metadata">

**Author:** ![jaoued\_zahraoui](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jaoued\_zahraoui](https://community.dynatrace.com/u/jaoued_zahraoui)\
**Post date:** [May 6, 2025, 2:58pm UTC](https://community.dynatrace.com/t/oneagent-version-1-311-72-20250423-112851-causing-production-troubles/51504/5 "2025-05-06T14:58:28Z")

</div>

ticket is this one:&nbsp;[https://one.dynatrace.com/hc/en-us/requests/476502](https://one.dynatrace.com/hc/en-us/requests/476502)

can you please &nbsp;indicate if the RFE is accepted, planned, already implemented, not planned, etc.

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [May 6, 2025, 3:05pm UTC](https://community.dynatrace.com/t/oneagent-version-1-311-72-20250423-112851-causing-production-troubles/51504/6 "2025-05-06T15:05:06Z")

</div>

This looks like an issue fixed in OneAgent&nbsp;313, OA-46324. It’s due to be released soon, we’re just waiting for Production Go.

EDIT: OneAgent 313 is being released to SaaS tenants on 12th May.

---

<div class="post-metadata">

**Author:** ![jaoued\_zahraoui](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jaoued\_zahraoui](https://community.dynatrace.com/u/jaoued_zahraoui)\
**Post date:** [May 6, 2025, 3:12pm UTC](https://community.dynatrace.com/t/oneagent-version-1-311-72-20250423-112851-causing-production-troubles/51504/7 "2025-05-06T15:12:23Z")

</div>

thank you very much.

---

<div class="post-metadata">

**Author:** ![sathi](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@sathi](https://community.dynatrace.com/u/sathi)\
**Post date:** [May 8, 2025, 5:23pm UTC](https://community.dynatrace.com/t/oneagent-version-1-311-72-20250423-112851-causing-production-troubles/51504/8 "2025-05-08T17:23:51Z")

</div>

we are also seeing the same issue .. is there a workaround until the fix is released

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [May 9, 2025, 8:48am UTC](https://community.dynatrace.com/t/oneagent-version-1-311-72-20250423-112851-causing-production-troubles/51504/9 "2025-05-09T08:48:07Z")

</div>

The only workaround currently is to roll back the OneAgent Image to 1.309.73.20250423-112845

1. Uninstall the Operator, see steps here: [Update or uninstall Dynatrace Operator — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/guides-k8s-update-uninstall-operator)

2. Retrieve the OneAgent Version or set the OneAgent Version in your tenant to image: “dynatrace/dynatrace-oneagent:1.309.73.20250423-112845”

There are a few ways to find or set the available OneAgent versions:

- Method 1: Dynatrace UI (Recommended )

- Method 2: Dynatrace API (Good for Automation)  
You can use the Dynatrace API to query available OneAgent versions. The specific endpoint may vary slightly depending on your Dynatrace version and API generation used, but a common one (using API v1) is:

1. Redeploy the Operator to pull in the latest OneAgent versions defined in Global Settings.

Go to Updates \> OneAgent, you can hardcode the specific version see below:

3.1 Hardcode the Specific OneAgent Version in `dynakube.yaml`  
The `dynakube.yaml` file defines the Custom Resource for the Dynatrace Operator. You specify the OneAgent version within the `spec.oneAgent` section, under the specific deployment mode you are using (e.g., `classicFullStack`, `cloudNativeFullStack`).  
Here are examples for common deployment modes:

- Example for `classicFullStack`:

- Example for `cloudNativeFullStack`:

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [May 12, 2025, 9:31am UTC](https://community.dynatrace.com/t/oneagent-version-1-311-72-20250423-112851-causing-production-troubles/51504/10 "2025-05-12T09:31:44Z")

</div>

OneAgent 313 has now been released.&nbsp;:tada:

---

<div class="post-metadata">

**Author:** ![sathi](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@sathi](https://community.dynatrace.com/u/sathi)\
**Post date:** [May 12, 2025, 8:43pm UTC](https://community.dynatrace.com/t/oneagent-version-1-311-72-20250423-112851-causing-production-troubles/51504/11 "2025-05-12T20:43:48Z")

</div>

Can you share the release notes for oneAgent 313 . Thanks

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [May 13, 2025, 11:32am UTC](https://community.dynatrace.com/t/oneagent-version-1-311-72-20250423-112851-causing-production-troubles/51504/12 "2025-05-13T11:32:45Z")

</div>

I’m sorry, but they’re not quite ready yet. Also, it looks like OneAgent 313 has only been released to internal tenants, but I’m hoping it will be ready soon.
