DataDog / helm-charts

Helm charts for Datadog products
Apache License 2.0
330 stars 1.01k forks source link

dd-trace fails on nodejs pod starting with chart 3.59.0 #1385

Open hameno opened 2 months ago

hameno commented 2 months ago

Describe what happened: We recently upgraded from 3.58.1 to 3.59.x and noticed that after some hours multiple services are stuck in a crash-loop with the following error message:

Error: Cannot find module '/datadog-lib/node_modules/dd-trace/init'
Require stack:
- internal/preload
at Module._resolveFilename (node:internal/modules/cjs/loader:1142:15)
at Module._load (node:internal/modules/cjs/loader:983:27)
at internalRequire (node:internal/modules/cjs/loader:174:19)
at Module._preloadModules (node:internal/modules/cjs/loader:1573:5)
at loadPreloadModules (node:internal/process/pre_execution:737:5)
at setupUserModules (node:internal/process/pre_execution:204:5)
at prepareExecution (node:internal/process/pre_execution:160:5)
at prepareMainThreadExecution (node:internal/process/pre_execution:54:10)
at node:internal/main/run_main_module:11:19 {

code: 'MODULE_NOT_FOUND',
requireStack: [ 'internal/preload' ]

Describe what you expected: No errors

Steps to reproduce the issue: Upgrade from 3.58.1 to 3.59.x (including latest)

Additional environment details (Operating System, Cloud provider, etc): EKS 1.27

gleidin commented 2 months ago

Hey,

I am facing the same issue, do we have a position about that?

Edit: solved my issue by rollback it, the support does not have a position yet.

Manan-Kothari commented 3 weeks ago

We noticed this issue as well, started on Friday June 28th. Restarting the deployment fixed it. We're running chart version 3.65.1

hameno commented 2 weeks ago

I opened a support ticket with our account manager and got the reply that version 5.12.0 of the dd-trace library should fix this. I tested with 5.17.0 and so far it looks good