<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Deployment of OneAgent fails inside Docker in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Deployment-of-OneAgent-fails-inside-Docker/m-p/210091#M25818</link>
    <description>&lt;P&gt;Please see &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;'s answer in another topic, as you may have a situation where your setup is not supported.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.dynatrace.com/t5/Container-platforms/Docker-for-Mac-OneAgent-fails-with-quot-Archive-is-corrupted/m-p/30662" target="_blank"&gt;https://community.dynatrace.com/t5/Container-platforms/Docker-for-Mac-OneAgent-fails-with-quot-Archive-is-corrupted/m-p/30662&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2023 12:14:49 GMT</pubDate>
    <dc:creator>radek_jasinski</dc:creator>
    <dc:date>2023-04-18T12:14:49Z</dc:date>
    <item>
      <title>Deployment of OneAgent fails inside Docker</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Deployment-of-OneAgent-fails-inside-Docker/m-p/210086#M25816</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Having created the deloyment 'package' through the "deploy dynatrace" steps on our portal, I proceed to select 'Kubernetes', fill out the necessary details an dtokens, download the dynakube.yaml file, verified its content, then running the 4 script steps that use kubectl.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This results in getting 5 pods in the dynatrace namespace, with 4 of them running ok (webhook, operator, activegate) with the 5th (oneagent) running an endless crash-restart.&lt;/P&gt;&lt;P&gt;Checking the log files the first error we saw was related to missing "/OPT" which was easily remedied.&lt;/P&gt;&lt;P&gt;The next error is printed out as&lt;/P&gt;&lt;P&gt;"XZ compressed archive is corrupted or memory allocation failed. Installation aborted."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;checking the oneagent install log, I see that the line above this error prints out&lt;/P&gt;&lt;P&gt;/opt/dynatrace/oneagent/Dynatrace-OneAgent-Linux.sh: line 3023: /opt/dynatrace/oneagent/xzdec: not found&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when inspecting the installation script&amp;nbsp;Dynatrace-OneAgent-Linux.sh I see it contains the instalation files as base64, and after having extracted the .tar file, I see that this contains the xzdec file in question so I am guessing it is the extraction that fails?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;2023-04-18 08:31:01 UTC [INFO] Unpacking. This may take a while...&lt;BR /&gt;2023-04-18 08:31:01 UTC [INFO] /opt/dynatrace/oneagent/agent_install_75237 does not exist, skipping removal&lt;BR /&gt;2023-04-18 08:31:01 UTC [INFO] Creating temporary unpack folder /opt/dynatrace/oneagent/agent_install_75237&lt;BR /&gt;2023-04-18 08:31:01 UTC [INFO] Creating directory /opt/dynatrace/oneagent/agent_install_75237 with rights 755&lt;BR /&gt;2023-04-18 08:31:01 UTC [INFO] Unpacking without cache&lt;BR /&gt;2023-04-18 08:31:01 UTC [INFO] Determining begin of tar archive...&lt;BR /&gt;2023-04-18 08:31:01 UTC [INFO] tarBegin=4947 tarEnd=3501054&lt;BR /&gt;2023-04-18 08:31:01 UTC [INFO] tarLength=3496107&lt;BR /&gt;/opt/dynatrace/oneagent/Dynatrace-OneAgent-Linux.sh: line 3023: /opt/dynatrace/oneagent/xzdec: not found&lt;BR /&gt;tar: short read&lt;BR /&gt;2023-04-18 08:31:03 UTC [ERROR] XZ compressed archive is corrupted or memory allocation failed. Installation aborted.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking into the container as the installation is ongoing I see there is a targile_xxxxx.base64 file, but this is only 5.1M which is far from the size of the original which should be around 217M&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I read, tar short read is regarding a corrupted tar file, but since this is reading from the large text file is this why getting the out of memory error then the tar error pointing to a corrupt file is because it didn't extract the whole installation tarball?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a Dynatrace docker install where the script and the .tar file are separate entities?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 11:48:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Deployment-of-OneAgent-fails-inside-Docker/m-p/210086#M25816</guid>
      <dc:creator>tb01</dc:creator>
      <dc:date>2023-04-18T11:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment of OneAgent fails inside Docker</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Deployment-of-OneAgent-fails-inside-Docker/m-p/210089#M25817</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/61951"&gt;@tb01&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;For Kubernetes-based environments, I recommend using Dynatrace Operator. You can find full instructions in the link below.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/shortlink/full-stack-dto-k8#install-operator" target="_blank" rel="noopener"&gt;https://www.dynatrace.com/support/help/shortlink/full-stack-dto-k8#install-operator&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Dynatrace/dynatrace-operator" target="_blank" rel="noopener"&gt;https://github.com/Dynatrace/dynatrace-operator&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can also try to install OA directly on Docker based on this instruction.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-container-platforms/docker/set-up-oneagent-on-containers-for-application-only-monitoring" target="_blank" rel="noopener"&gt;https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-container-platforms/docker/set-up-oneagent-on-containers-for-application-only-monitoring&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here's how to change OA installation paths in case you don't have a standard file system on your system:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/shortlink/linux-custom-installation#installation-path" target="_blank" rel="noopener"&gt;https://www.dynatrace.com/support/help/shortlink/linux-custom-installation#installation-path&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Radek&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 12:10:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Deployment-of-OneAgent-fails-inside-Docker/m-p/210089#M25817</guid>
      <dc:creator>radek_jasinski</dc:creator>
      <dc:date>2023-04-18T12:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment of OneAgent fails inside Docker</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Deployment-of-OneAgent-fails-inside-Docker/m-p/210091#M25818</link>
      <description>&lt;P&gt;Please see &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;'s answer in another topic, as you may have a situation where your setup is not supported.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.dynatrace.com/t5/Container-platforms/Docker-for-Mac-OneAgent-fails-with-quot-Archive-is-corrupted/m-p/30662" target="_blank"&gt;https://community.dynatrace.com/t5/Container-platforms/Docker-for-Mac-OneAgent-fails-with-quot-Archive-is-corrupted/m-p/30662&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 12:14:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Deployment-of-OneAgent-fails-inside-Docker/m-p/210091#M25818</guid>
      <dc:creator>radek_jasinski</dc:creator>
      <dc:date>2023-04-18T12:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment of OneAgent fails inside Docker</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Deployment-of-OneAgent-fails-inside-Docker/m-p/210101#M25820</link>
      <description>&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;Yea, I was kinda hoping that there had been some updates since 2017 to this situation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the scenario portrayed there and what I see I got a sense that this situation was different, as it talks about missing GNU coreutils. It is using Base64 and being told a parameter is incorrect. In my case, Base64 does not report an error, but the outfile has the incorrect size and doesn't extract.&lt;/P&gt;&lt;P&gt;I assumed if you get docker running and install the docker oneagent, it would work in docker.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, I haven't given up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 12:43:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Deployment-of-OneAgent-fails-inside-Docker/m-p/210101#M25820</guid>
      <dc:creator>tb01</dc:creator>
      <dc:date>2023-04-18T12:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment of OneAgent fails inside Docker</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Deployment-of-OneAgent-fails-inside-Docker/m-p/210106#M25822</link>
      <description>&lt;P&gt;I see your other answer now. Thanks, i'll check it out.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 13:02:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Deployment-of-OneAgent-fails-inside-Docker/m-p/210106#M25822</guid>
      <dc:creator>tb01</dc:creator>
      <dc:date>2023-04-18T13:02:03Z</dc:date>
    </item>
  </channel>
</rss>

