<?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: Dynatrace agent on WSL2 in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-agent-on-WSL2/m-p/199213#M23415</link>
    <description>&lt;P&gt;As it says - it's not supported to install it this way in a container - WSL2 is considered a container here.&lt;BR /&gt;&lt;BR /&gt;What you can do - you can use the PaaS agent version. In this case, you must wrap execution of your application.&lt;BR /&gt;So basically you need to:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;download the PaaS agent version instead:&lt;PRE&gt;wget -O Dynatrace-OneAgent-Linux.zip "https://&amp;lt;dt_environment&amp;gt;/api/v1/deployment/installer/agent/unix/paas/latest?arch=x86&amp;amp;flavor=default" --header="Authorization: Api-Token &amp;lt;dt_paas_token&amp;gt;"​&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;unzip the agent to a directory such as /opt/dynatrace/oneagent or any of your choice.&lt;/LI&gt;&lt;LI&gt;run each process to be monitored using the dynatrace-agent32.sh or dynatrace-agent64.sh depending on the platform&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;PaaS agents will have some limitations of course but should work in your case.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2022 19:18:32 GMT</pubDate>
    <dc:creator>Julius_Loman</dc:creator>
    <dc:date>2022-11-25T19:18:32Z</dc:date>
    <item>
      <title>Dynatrace agent on WSL2</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-agent-on-WSL2/m-p/198930#M23351</link>
      <description>&lt;P&gt;I am running the latest version of Ubuntu on WSL2 on Windows. I have a local copy of my client's wordpress website and mysql database, with near identical nginx webserver and php.&lt;/P&gt;&lt;P&gt;I need to install OneAgent in order to unlock mySQL insights, nginx insights, wordpress page insights and so forth&lt;/P&gt;&lt;P data-unlink="true"&gt;There is much potential as Dynatrace outlines in https://www.dynatrace.com/technologies/php-monitoring/wordpress&lt;/P&gt;&lt;P&gt;When I install it on WSL Ubuntu, I get this error,&lt;/P&gt;&lt;P&gt;root@localhostname# cat /etc/os-release&lt;BR /&gt;NAME="Ubuntu"&lt;BR /&gt;VERSION="20.04.5 LTS (Focal Fossa)"&lt;BR /&gt;ID=ubuntu&lt;BR /&gt;ID_LIKE=debian&lt;BR /&gt;PRETTY_NAME="Ubuntu 20.04.5 LTS"&lt;BR /&gt;VERSION_ID="20.04"&lt;BR /&gt;VERSION_CODENAME=focal&lt;BR /&gt;UBUNTU_CODENAME=focal&lt;BR /&gt;root@localhostname# /bin/sh Dynatrace-OneAgent-Linux-1.253.245.sh --set-infra-only=false --set-app-log-content-access=true&lt;BR /&gt;01:57:47 Checking root privileges...&lt;BR /&gt;01:57:47 Process user: root, ID: 0&lt;BR /&gt;01:57:47 OK&lt;BR /&gt;01:57:47 Logging to /var/log/dynatrace/oneagent/installer/installation_4818.log&lt;BR /&gt;01:57:47 Installation started, version 1.253.245.20221118-071521, build date: 18.11.2022, PID 4818.&lt;BR /&gt;01:57:47 Detected platform: LINUX arch: X86_64&lt;BR /&gt;01:57:47 Error: Dynatrace OneAgent cannot be installed inside a container (or in an isolated mount namespace), setup won't continue.&lt;BR /&gt;01:57:47 Error: For a supported way of deployment using a container please refer to: &lt;A href="https://www.dynatrace.com/support/help/shortlink/oneagent-docker" target="_blank" rel="noopener"&gt;https://www.dynatrace.com/support/help/shortlink/oneagent-docker&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Following the link above, one of the steps is to run apparmor, but when I do, I get this error&lt;/P&gt;&lt;P&gt;root@localhostname# apparmor_parser -r /etc/apparmor.d/oneagent Cache read/write disabled: interface file missing. (Kernel needs AppArmor 2.4 compatibility patch.) Warning: unable to find a suitable fs in /proc/mounts, is it mounted? Use --subdomainfs to override.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need guidance here, this may be the first post on installing on wsl2 ubuntu. How can I get past this error or is there another way I get agent installed to grab full insights (mysql, wordpress, php, nginx)?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 08:38:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-agent-on-WSL2/m-p/198930#M23351</guid>
      <dc:creator>Stanley</dc:creator>
      <dc:date>2022-11-22T08:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace agent on WSL2</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-agent-on-WSL2/m-p/199213#M23415</link>
      <description>&lt;P&gt;As it says - it's not supported to install it this way in a container - WSL2 is considered a container here.&lt;BR /&gt;&lt;BR /&gt;What you can do - you can use the PaaS agent version. In this case, you must wrap execution of your application.&lt;BR /&gt;So basically you need to:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;download the PaaS agent version instead:&lt;PRE&gt;wget -O Dynatrace-OneAgent-Linux.zip "https://&amp;lt;dt_environment&amp;gt;/api/v1/deployment/installer/agent/unix/paas/latest?arch=x86&amp;amp;flavor=default" --header="Authorization: Api-Token &amp;lt;dt_paas_token&amp;gt;"​&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;unzip the agent to a directory such as /opt/dynatrace/oneagent or any of your choice.&lt;/LI&gt;&lt;LI&gt;run each process to be monitored using the dynatrace-agent32.sh or dynatrace-agent64.sh depending on the platform&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;PaaS agents will have some limitations of course but should work in your case.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 19:18:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-agent-on-WSL2/m-p/199213#M23415</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2022-11-25T19:18:32Z</dc:date>
    </item>
  </channel>
</rss>

