<?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: liboneagentproc.so appears to be rewriting nginx.conf in such a way to cause errors. in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Liboneagentproc-so-appears-to-be-rewriting-nginx-conf-in-such-a/m-p/126115#M1290</link>
    <description>&lt;P&gt;Oneagent is modifying the configuration files at runtime (no persistent changes). As it causes issues with your NGINX configuration, I suggest opening a support ticket to get this investigated as this should not happen.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 17 Dec 2019 07:04:09 GMT</pubDate>
    <dc:creator>Julius_Loman</dc:creator>
    <dc:date>2019-12-17T07:04:09Z</dc:date>
    <item>
      <title>Liboneagentproc.so appears to be rewriting nginx.conf in such a way to cause errors</title>
      <link>https://community.dynatrace.com/t5/Extensions/Liboneagentproc-so-appears-to-be-rewriting-nginx-conf-in-such-a/m-p/126114#M1289</link>
      <description>&lt;P&gt;We have custom nginx plugin that has a single directive that goes into nginx.conf. We usually place this directive right inside the http block.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;http { &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;     tcell_app_id xxxxxxxx;&lt;BR /&gt;     ... &lt;/PRE&gt;
&lt;P&gt;This works fine without Dynatrace.&lt;/P&gt;
&lt;P&gt;Running with Dynatrace, we get a strange error from nginx:&lt;/P&gt;
&lt;PRE&gt;# sh -x dynatrace-agent64.sh nginx -g "daemon off;"&lt;BR /&gt;...&lt;BR /&gt;nginx: [emerg] "tcell_app_id" directive is duplicate in /usr/local/openresty/nginx/conf/nginx.conf:19&lt;/PRE&gt;
&lt;P&gt;Strange because that directive is not duplicated and this works fine without Dynatrace.&lt;/P&gt;
&lt;P&gt;Now if I move our directive down a bit inside the http { block, the error goes away when running with Dynatrace.&lt;/P&gt;
&lt;PRE&gt;http {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; ...&lt;BR /&gt;     ...&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;     tcell_app_id xxxxxxxx;&lt;BR /&gt;     server { &lt;/PRE&gt;
&lt;P&gt;So something in Dynatrace appears to be processing or writing this file before startup, and it is causing problems with custom directives.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 14:25:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Liboneagentproc-so-appears-to-be-rewriting-nginx-conf-in-such-a/m-p/126114#M1289</guid>
      <dc:creator>paul_callahan</dc:creator>
      <dc:date>2023-05-18T14:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: liboneagentproc.so appears to be rewriting nginx.conf in such a way to cause errors.</title>
      <link>https://community.dynatrace.com/t5/Extensions/Liboneagentproc-so-appears-to-be-rewriting-nginx-conf-in-such-a/m-p/126115#M1290</link>
      <description>&lt;P&gt;Oneagent is modifying the configuration files at runtime (no persistent changes). As it causes issues with your NGINX configuration, I suggest opening a support ticket to get this investigated as this should not happen.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Dec 2019 07:04:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Liboneagentproc-so-appears-to-be-rewriting-nginx-conf-in-such-a/m-p/126115#M1290</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2019-12-17T07:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: liboneagentproc.so appears to be rewriting nginx.conf in such a way to cause errors.</title>
      <link>https://community.dynatrace.com/t5/Extensions/Liboneagentproc-so-appears-to-be-rewriting-nginx-conf-in-such-a/m-p/126116#M1291</link>
      <description>Actually, moving the directive doesn't seem to make a difference.  It seems to randomly work and then not work.&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Dec 2019 18:45:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Liboneagentproc-so-appears-to-be-rewriting-nginx-conf-in-such-a/m-p/126116#M1291</guid>
      <dc:creator>paul_callahan</dc:creator>
      <dc:date>2019-12-17T18:45:24Z</dc:date>
    </item>
  </channel>
</rss>

