cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting error while setting up OneAgent in a docker container

himanshu_khanna
Newcomer

Hi, I'm new to docker and Dynatrace and doing a PoC for my organization. I've followed the documentation and ram below command to run OneAgent in a container. However, getting error. Kindly help.


docker run -d --restart=unless-stopped --privileged=true --pid=host --net=host --ipc=host -v /:/mnt/root -e ONEAGENT_INSTALLER_SCRIPT_URL="https://**********.live.dynatrace.com/api/v1/deployment/installer/agent/unix/default/latest?arch=x64" -e ONEAGENT_INSTALLER_DOWNLOAD_TOKEN="**********" dynatrace/oneagent --set-app-log-content-access=true


Error:


09:27:51 Download complete
09:27:52 Downloaded version: 1.191.239.20200526-145639
09:27:52 Verifying agent installer signature
09:27:56 Verification successful
09:27:56 Deploying to: /mnt/host_root
09:27:56 Starting installer...
09:28:03 Checking root privileges...
09:28:03 OK
09:28:03 Installation started, version 1.191.239.20200526-145639, build date: 26.05.2020, PID 30236.
09:28:03 Detected platform: LINUX arch: X86
09:28:03 Detected bitness: 64
09:28:03 Checking free space in /opt/dynatrace/oneagent
09:28:04 Extracting...
09:28:06 Unpacking. This may take a few minutes...
09:28:09 Error: XZ compressed archive is corrupted or memory allocation failed. Installation aborted.
1 REPLY 1

matthew_reider
Dynatrace Helper
Dynatrace Helper

Hi there. Curious if you are running Docker for Mac? If so, I do see another, related thread, which could help you. The thread concludes that Dynatrace oneagent installation expects GNU coreuitils, which are not on Mac.

See:

https://answers.dynatrace.com/questions/184318/docker-for-mac-oneagent-fails-with-archive-is-corr.ht...