Container platforms
Questions about Kubernetes, OpenShift, Docker, and more.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to Install agent in Application Pod

prabhavathi
Frequent Guest

" I have installed Dynatrace and integrated with OpenShift. Trying to integrate running application from openshift through otel collector pod and application is trying to start with Dynatrace operator and install the agent on each application pod but getting error while pods are coming up online" Error posted below for your reference.

{"level":"info","ts":"2026-03-02T11:00:03.491Z","logger":"oneagent-url","msg":"installing agent from url"}

{"level":"info","ts":"2026-03-02T11:00:03.491Z","logger":"oneagent-url","msg":"installing agent","target dir":"/mnt/bin"}

{"level":"info","ts":"2026-03-02T11:00:03.491Z","logger":"oneagent-url","msg":"downloading specific OneAgent package","version":"1.331.39.20260206-150338"}

{"level":"info","ts":"2026-03-02T11:15:04.791Z","logger":"oneagent-url","msg":"failed to download specific OneAgent package","version":"1.331.39.20260206-150338","available versions":["1.331.39.20260206-150338","1.329.73.20260123-140641","1.329.66.20260109-142000","1.327.56.20251218-151643","1.327.51.20251205-162230","1.327.44.20251118-165931","1.325.64.20251114-153027","1.325.51.20251103-195814","1.325.47.20251022-093211","1.323.58.20251117-093926","1.323.49.20251103-195824","1.323.46.20251015-192739","1.323.40.20250923-133428","1.321.71.20251117-134456","1.321.67.20251103-195834","1.321.51.20250905-075429","1.319.88.20251117-145342","1.319.87.20251103-195844","1.319.76.20250819-104206","1.319.55.20250725-104938"]}

{"level":"info","ts":"2026-03-02T11:15:04.808Z","logger":"oneagent-url","msg":"failed to install agent","targetDir":"/mnt/bin"}

{"error":"context deadline exceeded (Client.Timeout or context cancellation while reading body)","level":"error","logger":"bootstrap","msg":"error during download, the error was suppressed","stacktrace":"context deadline exceeded (Client.Timeout or context cancellation while reading body)

github.com/Dynatrace/dynatrace-operator/pkg/injection/codemodule/installer/url.Installer.downloadOne...

github.com/Dynatrace/dynatrace-operator/pkg/injection/codemodule/installer/url/download.go:70

github.com/Dynatrace/dynatrace-operator/pkg/injection/codemodule/installer/url.Installer.downloadOne...

github.com/Dynatrace/dynatrace-operator/pkg/injection/codemodule/installer/url/download.go:21

github.com/Dynatrace/dynatrace-operator/pkg/injection/codemodule/installer/url.Installer.installAgen...

github.com/Dynatrace/dynatrace-operator/pkg/injection/codemodule/installer/url/installer.go:114

github.com/Dynatrace/dynatrace-operator/pkg/injection/codemodule/installer/url.Installer.InstallAgen...

github.com/Dynatrace/dynatrace-operator/pkg/injection/codemodule/installer/url/installer.go:74

github.com/Dynatrace/dynatrace-operator/cmd/bootstrapper/download.(*Client).Do

github.com/Dynatrace/dynatrace-operator/cmd/bootstrapper/download/client.go:56

github.com/Dynatrace/dynatrace-operator/cmd/bootstrapper.run

github.com/Dynatrace/dynatrace-operator/cmd/bootstrapper/cmd.go:97

github.com/spf13/cobra.(*Command).execute

github.com/spf13/cobra@v1.10.2/command.go:1015

github.com/spf13/cobra.(*Command).ExecuteC

github.com/spf13/cobra@v1.10.2/command.go:1148

github.com/spf13/cobra.(*Command).Execute

github.com/spf13/cobra@v1.10.2/command.go:1071

main.main

github.com/Dynatrace/dynatrace-operator/cmd/main.go:79

runtime.main

runtime/proc.go:285

runtime.goexit

runtime/asm_amd64.s:1693","ts":"2026-03-02T11:15:04.808Z"}


I have allowed the endpoint Dynatrace end point url however I am still getting error.

1 REPLY 1

t_pawlak
Leader

Hi,
In logs I see this: context deadline exceeded (Client.Timeout ... while reading body)
So the bootstrapper/initContainer starts downloading but can’t finish in time, almost always egress/proxy/TLS/DNS/firewall.

Dynatrace Operator provides the right knobs in DynaKube:

  • .spec.proxy – proxy settings for Operator/ActiveGate/OneAgents
  • .spec.trustedCAs – custom Root CAs (mandatory with corporate TLS inspection)
  • (temporary test) .spec.skipCertCheck

DynaKube parameters for Dynatrace Operator 
Please verify from inside the cluster/namespace (same as the injected application pods) whether you can download via the Dynatrace API endpoint. For example, run a temporary curl pod and test:

  • a small API call 
  • the installer download endpoint 

If the installer download fails / hangs / times out from the cluster, then the issue is confirmed as network/proxy/TLS/DNS and needs to be fixed there (proxy + trusted CA + egress rules).

If the installer download works from the same namespace, then networking is likely OK and we should continue troubleshooting elsewhere

 

Featured Posts