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

Upgrade is not possible because uninstall script is missing, while starting POD

henk_stobbe
DynaMight Leader
DynaMight Leader

Hello,

When the operator starts the oneAgente pod, he returns this message on the end of the startup:

Upgrade is not possible because uninstall script is missing

 

Who can explain i laymen's terms what is happening here?  

 

KR Henk

2 REPLIES 2

Didier
Frequent Guest

Hello,

I'm getting the same error. It seems to happen when updating OneAgent on K8S/OpenShift (1.337.21 to 1.337.51 in my case).

The pod terminates with the following log:

07:14:14 Downloaded version differs from installed version, will re-run installer
07:14:14 Deploying to: /mnt/volume_storage_mount/host_root
07:14:14 Starting installer...
07:14:19 You supplied the GROUP parameter. To harden your system security, we strongly recommend to use a dedicated user group to run OneAgent processes.
07:14:19 Skipping root privileges check
07:14:19 Logging to /var/log/dynatrace/oneagent/installer/installation_18866.log
07:14:19 Installation started, version 1.337.51.20260520-164208, build date: 20.05.2026, PID 18866.
07:14:19 Detected platform: LINUX arch: X86_64
07:14:20 Error: Upgrade is not possible because uninstall script is missing


Does anyone have a solution?

t_pawlak
Leader

This error usually indicates that OneAgent is trying to perform an upgrade of an existing installation, but the required uninstall.sh script is missing.

In Kubernetes/OpenShift environments, this can happen when:

  • a previous OneAgent installation became corrupted,
  • the installation directory was partially removed,
  • the host volume still contains remnants of an older installation,
  • a previous upgrade or migration did not complete successfully.

According to the logs, the Operator detects a version change (1.337.21 -> 1.337.51) and attempts an upgrade:

Downloaded version differs from installed version, will re-run installer
...
Error: Upgrade is not possible because uninstall script is missing

In simple terms, the installer can see an existing OneAgent installation but cannot upgrade it because the files required to uninstall the previous version are missing.

IMO you shoul check affected nodes, like this:

ls -la /opt/dynatrace/oneagent
find /opt/dynatrace -name uninstall.sh

If the uninstall script is indeed missing, the issue is usually resolved by cleaning up the remnants of the old OneAgent installation on the affected host and allowing the Operator to perform a fresh installation.

However, before manually removing files, I would recommend opening a Dynatrace Support case, as the cleanup procedure may vary depending on the Operator version and deployment mode being used.

Featured Posts