<?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: OneAgent auto-injection was disabled on this host during installation. in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/OneAgent-auto-injection-was-disabled-on-this-host-during/m-p/305011#M1716</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/104438"&gt;@FullastackMon&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why --get-auto-injection-enabled returns true while the set command says "disabled during installation"&lt;/STRONG&gt;&lt;BR /&gt;These are two separate, independent settings:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;Installation-level auto-injection is a kernel-driver-level capability baked in at install time. It controls whether the &lt;U&gt;&lt;STRONG&gt;oneagentmon&lt;/STRONG&gt; &lt;/U&gt;kernel driver (which enables automatic DLL injection into processes) was registered. This cannot be changed post-installation.&lt;/LI&gt;&lt;LI&gt;&lt;U&gt;&lt;STRONG&gt;--get/set-auto-injection-enabled&lt;/STRONG&gt;&lt;/U&gt; is a runtime configuration flag that sits on top of the installation-level capability. It can be toggled freely, but it has no effect if the underlying installation-level capability was disabled.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So &lt;U&gt;true &lt;/U&gt;from &lt;U&gt;--get-auto-injection-enabled&lt;/U&gt; only means the runtime config wants injection enabled it does not confirm that the kernel driver is actually capable of injecting. The warning message "Cannot enable auto-injection as it was disabled during installation" is the definitive signal that the kernel driver was not installed.&lt;/P&gt;&lt;P&gt;&lt;U&gt;How to verify whether oneagentjava.dll is actually loaded&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Use either of these methods:&lt;/P&gt;&lt;P&gt;&lt;U&gt;Process Explorer (Use Sysinternals process monitor tool (ofcourse its free):&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Open Process Explorer as Administrator -&amp;gt;Find your java.exe process -&amp;gt; Press Ctrl+D to open the DLL view -&amp;gt; Search for oneagentjava.dll — if it's absent, injection is not working&lt;/P&gt;&lt;P&gt;&lt;U&gt;Check the oneagentmon driver:&lt;/U&gt;&lt;BR /&gt;Open Device Manager -&amp;gt; View -&amp;gt; Show hidden devices -&amp;gt; Non-Plug and Play Drivers -&amp;gt; Look for Dynatrace OneAgent Monitor (oneagentmon)&lt;BR /&gt;If it's missing or in an error state, the injection mechanism was not installed&lt;/P&gt;&lt;P&gt;&lt;U&gt;Check OneAgent logs:&lt;/U&gt; %PROGRAMDATA%\dynatrace\oneagent\log\&lt;/P&gt;&lt;P&gt;Look for entries referencing injection, java, or code module errors here will confirm the root cause.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can this be fixed without reinstalling? - No&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When reinstalling, ensure you do not pass --set-auto-injection-enabled=false. The default is enabled, so simply omitting that flag is sufficient.&lt;/P&gt;&lt;P&gt;Additional diagnostics to collect before reinstalling&lt;BR /&gt;Generate a support archive for a full picture. This ZIP will contain injection logs, configuration snapshots, and driver status useful if you want to confirm the root cause before proceeding.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sujit&lt;/P&gt;</description>
    <pubDate>Sun, 04 Oct 2026 00:32:36 GMT</pubDate>
    <dc:creator>sujit_k_singh</dc:creator>
    <dc:date>2026-10-04T00:32:36Z</dc:date>
    <item>
      <title>OneAgent auto-injection was disabled on this host during installation.</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/OneAgent-auto-injection-was-disabled-on-this-host-during/m-p/305010#M1715</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We are facing an issue with Dynatrace OneAgent auto-injection and Java deep monitoring on a Windows server.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Environment:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;OS: Windows&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Application: Dynatrace easyTravel&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Technology: Java&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;OneAgent is installed and running successfully.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Infrastructure and process-level monitoring are visible in Dynatrace.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;However, Java deep monitoring is not working as expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;We tried enabling auto-injection using the following command:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;"C:\Program Files\dynatrace\oneagent\agent\tools\oneagentctl.exe" --set-auto-injection-enabled=true --restart-service&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The command returns the following output:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Stopping OneAgent service
Cannot enable auto-injection as it was disabled during installation, please contact support
Starting OneAgent service&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;However, when we check the current auto-injection status using:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;"C:\Program Files\dynatrace\oneagent\agent\tools\oneagentctl.exe" --get-auto-injection-enabled&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;the result is:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;This is confusing because the configuration reports that auto-injection is enabled, but attempting to enable it says that auto-injection was disabled during installation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We have also restarted the OneAgent service and the easyTravel/Java processes, but Java deep monitoring is still not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The Java process is running from the following path:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;C:\Program Files\dynaTrace\easyTravel (x64)\jre\bin\java.exe&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Example command line:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;"C:\Program Files\dynaTrace\easyTravel (x64)\jre\bin\java.exe"
-jar "C:\Program Files\dynaTrace\easyTravel (x64)\com.dynatrace.easytravel.launcher.jar"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;We would like to understand:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Why does &lt;/SPAN&gt;&lt;SPAN&gt;--get-auto-injection-enabled&lt;/SPAN&gt;&lt;SPAN&gt; return &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt; while &lt;/SPAN&gt;&lt;SPAN&gt;--set-auto-injection-enabled=true&lt;/SPAN&gt;&lt;SPAN&gt; reports that auto-injection was disabled during installation?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Does &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt; only represent the current configuration, while the OneAgent installation itself still prevents code-module injection?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is there any way to verify whether &lt;/SPAN&gt;&lt;SPAN&gt;oneagentjava.dll&lt;/SPAN&gt;&lt;SPAN&gt; is actually injected/loaded into the Java process?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Can this condition be corrected without reinstalling OneAgent?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;If reinstalling OneAgent is required, which installer parameter or installation option should we verify to ensure auto-injection is enabled?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Are there any additional logs or diagnostic files we should check to identify why Java deep monitoring is not being activated?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Any guidance on how to troubleshoot this auto-injection status mismatch and restore Java deep monitoring would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Note: We are using Dynatrace free trail account.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2026 09:39:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/OneAgent-auto-injection-was-disabled-on-this-host-during/m-p/305010#M1715</guid>
      <dc:creator>FullastackMon</dc:creator>
      <dc:date>2026-10-03T09:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent auto-injection was disabled on this host during installation.</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/OneAgent-auto-injection-was-disabled-on-this-host-during/m-p/305011#M1716</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/104438"&gt;@FullastackMon&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why --get-auto-injection-enabled returns true while the set command says "disabled during installation"&lt;/STRONG&gt;&lt;BR /&gt;These are two separate, independent settings:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;Installation-level auto-injection is a kernel-driver-level capability baked in at install time. It controls whether the &lt;U&gt;&lt;STRONG&gt;oneagentmon&lt;/STRONG&gt; &lt;/U&gt;kernel driver (which enables automatic DLL injection into processes) was registered. This cannot be changed post-installation.&lt;/LI&gt;&lt;LI&gt;&lt;U&gt;&lt;STRONG&gt;--get/set-auto-injection-enabled&lt;/STRONG&gt;&lt;/U&gt; is a runtime configuration flag that sits on top of the installation-level capability. It can be toggled freely, but it has no effect if the underlying installation-level capability was disabled.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So &lt;U&gt;true &lt;/U&gt;from &lt;U&gt;--get-auto-injection-enabled&lt;/U&gt; only means the runtime config wants injection enabled it does not confirm that the kernel driver is actually capable of injecting. The warning message "Cannot enable auto-injection as it was disabled during installation" is the definitive signal that the kernel driver was not installed.&lt;/P&gt;&lt;P&gt;&lt;U&gt;How to verify whether oneagentjava.dll is actually loaded&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Use either of these methods:&lt;/P&gt;&lt;P&gt;&lt;U&gt;Process Explorer (Use Sysinternals process monitor tool (ofcourse its free):&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Open Process Explorer as Administrator -&amp;gt;Find your java.exe process -&amp;gt; Press Ctrl+D to open the DLL view -&amp;gt; Search for oneagentjava.dll — if it's absent, injection is not working&lt;/P&gt;&lt;P&gt;&lt;U&gt;Check the oneagentmon driver:&lt;/U&gt;&lt;BR /&gt;Open Device Manager -&amp;gt; View -&amp;gt; Show hidden devices -&amp;gt; Non-Plug and Play Drivers -&amp;gt; Look for Dynatrace OneAgent Monitor (oneagentmon)&lt;BR /&gt;If it's missing or in an error state, the injection mechanism was not installed&lt;/P&gt;&lt;P&gt;&lt;U&gt;Check OneAgent logs:&lt;/U&gt; %PROGRAMDATA%\dynatrace\oneagent\log\&lt;/P&gt;&lt;P&gt;Look for entries referencing injection, java, or code module errors here will confirm the root cause.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can this be fixed without reinstalling? - No&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When reinstalling, ensure you do not pass --set-auto-injection-enabled=false. The default is enabled, so simply omitting that flag is sufficient.&lt;/P&gt;&lt;P&gt;Additional diagnostics to collect before reinstalling&lt;BR /&gt;Generate a support archive for a full picture. This ZIP will contain injection logs, configuration snapshots, and driver status useful if you want to confirm the root cause before proceeding.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sujit&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2026 00:32:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/OneAgent-auto-injection-was-disabled-on-this-host-during/m-p/305011#M1716</guid>
      <dc:creator>sujit_k_singh</dc:creator>
      <dc:date>2026-10-04T00:32:36Z</dc:date>
    </item>
  </channel>
</rss>

