on
21 Nov 2024
08:11 AM
- edited on
25 Aug 2026
02:37 PM
by
Adam-Piotrowicz
This article covers the most common failure scenarios encountered during a Dynatrace OneAgent update on both Linux and Windows hosts. It is intended to help diagnose why a OneAgent update may be failing and guide you through the appropriate resolution steps for each scenario.
OneAgent has a built-in, configurable auto-update mechanism. When an update is triggered either automatically or manually the agent initiates its own update cycle, downloads the installer, and runs it locally. Most updates complete within 5–20 minutes under normal conditions. When updates fail, the cause is typically related to system-level conditions on the host rather than Dynatrace itself.
OneAgent update fails and one or more of the following symptoms are observed:
On Windows:
Warning: Local cached package 'C:\Windows\Installer\312c0.msi' is missing.
Error 1714. The older version of Dynatrace OneAgent cannot be removed.
System Error 1612.
On Linux:
Error: Detected that /opt/dynatrace/oneagent is a dangling symlink,
please remove it and then retry the installation.
In the Dynatrace UI (Linux and Windows):
.
All update-related activity is logged in the installer log directory. Review these first to identify a specific error message.
<oneagent_install_path>/logs/installer/
tail -f <oneagent_install_path>/logs/installer/*
C:\ProgramData\dynatrace\oneagent\log\installer\installation_msiexec_*.logOn both Linux and Windows, run the built-in health check to surface specific conditions blocking the update:
./oneagentctl --healthcheck
This will report issues such as insufficient disk space, permission problems, read-only filesystem, or misconfiguration in the agent's own configuration file.
Confirm the host meets all minimum requirements before retrying:
| Requirement | Minimum |
|---|---|
| Free disk space | Sufficient space in the OneAgent installation path |
| Free memory | 200 MB minimum |
| Installation path | Must be a real directory not a symbolic link (Linux) |
| Filesystem | Must be writable and not mounted as read-only |
df -h /opt/dynatrace
mount | grep <partition>
dmesg | grep -i "read-only"
Use the table below to match your symptoms to the relevant resolution:
| Symptom | Platform | Go to Resolution |
|---|---|---|
| MSI error 1603 | Windows | Scenario A |
| Missing MSI package in Installer Cache | Windows | Scenario B |
| Dangling symlink error | Linux | Scenario C |
| Insufficient disk space | Linux / Windows | Scenario D |
| Generic failure / health check needed | Linux | Scenario E |
| "Automatic update problem" in UI | Linux / Windows | Scenario F |
This is a Microsoft Windows Installer error, not a Dynatrace-specific issue. It can be caused by permission problems, antivirus interference, locked files, or a corrupted Windows Installer state.
Steps:
C:\ProgramData\dynatrace\oneagent\log\installer\installation_msiexec_*.logThe Windows Installer Cache (C:\Windows\Installer) stores files required for uninstalling and updating installed products. If the cached MSI for the currently installed OneAgent version is missing, the update cannot remove the old version.
Steps:
312c0.msi).C:\Windows\Installer and rename it to match the filename referenced in the log.OneAgent requires its installation path to be a real directory. A symbolic link especially a dangling one (pointing to a non-existent target) is not supported and will cause the update to fail.
Steps:
ls -la /opt/dynatrace/oneagent
rm /opt/dynatrace/oneagent
mkdir -p /opt/dynatrace/oneagent
Steps:
# Linux
df -h /opt/dynatrace
INSTALL_PATH parameter during reinstallation.When no specific error is immediately visible, the health check output will identify the root cause. Common findings and their resolutions are:
| Finding | Resolution |
|---|---|
| Read-only filesystem | Check dmesg for I/O errors. Remount the filesystem as read-write or fix the underlying issue. |
| Security tool interference (CrowdStrike, SELinux enforcing) | Temporarily exclude the OneAgent installation path from endpoint security scanning, or configure the appropriate SELinux boolean. |
| NFS-based installation path | OneAgent is not stable on NFS. Reinstall to a local path using the INSTALL_PATH parameter. FUSE filesystems are not supported. |
Empty LogDir in agent config |
Locate the OneAgent configuration file, populate the empty LogDir value, and retry the installation. |
| Residual files from a failed install | Run a clean uninstall, remove residual files, and reinstall: |
Clean uninstall and reinstall (Linux):
# Run the bundled uninstall script
/opt/dynatrace/oneagent/agent/uninstall.sh
# Remove residual state
rm -rf /var/lib/dynatrace/oneagent
# Then perform a fresh installation
Reference: Uninstall OneAgent on Linux
Steps:
If the steps in this article did not resolve the issue, please open a Dynatrace Support ticket and include the following:
<oneagent_install_path>/logs/installer/C:\ProgramData\dynatrace\oneagent\log\installer\./oneagentctl --create-support-archive
Or via the Dynatrace UI: Host page → (...) menu → OneAgent DiagnosticsHi, about scenario 3, how can we check in advance if a host has sufficient disk space?
My idea is to run a check 2 weeks before oneagents update to detect hosts on which to increase disk space when it is insufficient.
Thanks
Hi Paolo,
The logic of checking if there are enough spaces is invoked during the update/installation step. As of now, it's not possible to check the disk space in advance.
But this page will be helpful.
https://docs.dynatrace.com/docs/shortlink/oneagent-disk-requirements-windows#updates