<?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: AWS fargate in Container platforms</title>
    <link>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266896#M2844</link>
    <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/84911"&gt;@Cath&lt;/a&gt;&amp;nbsp;are you using the runtime injection?&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/aws-fargate#runtime" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/aws-fargate#runtime&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Based on your Dockerfile I belive you don't have correct permissions on the OneAgent files in the volume you are mounting.&amp;nbsp; Can you check that if you run a shell in your container?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you can run a shell for myuser user, just run:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LD_PRELOAD="/opt/dynatrace/oneagent/agent/lib64/liboneagentloader.so" java -jar myapp.jar&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;It should give an stderr error if library cannot be preloaded.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jan 2025 14:37:48 GMT</pubDate>
    <dc:creator>Julius_Loman</dc:creator>
    <dc:date>2025-01-08T14:37:48Z</dc:date>
    <item>
      <title>AWS fargate issues</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266514#M2834</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We have some spring boot application, running in a docker container with AWS fargate.&lt;/P&gt;
&lt;P&gt;We used the runtime injection described here &lt;A href="https://docs.dynatrace.com/docs/ingest-from/amazon-web-services/integrate-into-aws/aws-fargate" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/ingest-from/amazon-web-services/integrate-into-aws/aws-fargate&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Everything was working fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is, until security showed up, saying we shouldn't use "root" to start the container.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So add added the user in the dockerfile, made the proper chown / chmod to /opt/dynatrace. The first part goes well, downloading the agent, unzipping... Then, when the app starts, one agent isn't started. No initialization logs, no error logs. Just nothing. Note that&amp;nbsp;DT_LOGLEVELCON is set to&amp;nbsp;FINEST&lt;/P&gt;
&lt;P&gt;Removing USER my_user from the docker file fix it, but don't fix the security issue.&lt;/P&gt;
&lt;P&gt;Yet no matter what I do, no monitoring unless I start as root.&lt;/P&gt;
&lt;P&gt;At this point I'm thinking the only way out is to switch to build-time injection.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any clues, what could a possible be missing ?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 12:39:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266514#M2834</guid>
      <dc:creator>Cath</dc:creator>
      <dc:date>2025-12-17T12:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: AWS fargate</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266694#M2837</link>
      <description>&lt;P&gt;You have either permission issues with loading oneagent (but you write you did a chown/chmod) or your preloading applies to root user - which is most likely. Try to add ENV LD_PRELOAD command from the docs for the user - meaning after the USER statement in the Dockerfile.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 11:46:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266694#M2837</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2025-01-06T11:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: AWS fargate</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266849#M2841</link>
      <description>&lt;P&gt;Tanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did try that. But no chance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Though about some missing capacities, but my tries there where unsuccessful as well.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I went into the container to manually call&lt;BR /&gt;dynatrace-agant.sh java my_app.jar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;as root, you see the one agant logs. As my custom user, you see using DT_HOME ... then the process seams to hang for a little while, and the app starts.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 10:18:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266849#M2841</guid>
      <dc:creator>Cath</dc:creator>
      <dc:date>2025-01-08T10:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: AWS fargate</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266850#M2842</link>
      <description>&lt;P&gt;Can you share how does your Dockerfile look like? And can you show the runtime configuration of the container? Env variables / command?&lt;BR /&gt;&lt;BR /&gt;Looking for the method how OneAgent gets loaded in your case.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 10:25:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266850#M2842</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2025-01-08T10:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: AWS fargate</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266888#M2843</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;RUN &lt;/SPAN&gt;&lt;SPAN&gt;mkdir &lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;p &lt;SPAN&gt;/&lt;/SPAN&gt;opt&lt;SPAN&gt;/&lt;/SPAN&gt;dynatrace&lt;SPAN&gt;/&lt;/SPAN&gt;oneagent &lt;SPAN&gt;&amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;chown &lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;R myuser:myuser&lt;SPAN&gt;/&lt;/SPAN&gt;opt&lt;SPAN&gt;/&lt;/SPAN&gt;dynatrace &lt;SPAN&gt;&amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;chmod &lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;R &lt;SPAN&gt;777 &lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;opt&lt;SPAN&gt;/&lt;/SPAN&gt;dynatrace&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;USER &lt;/SPAN&gt;myuser&lt;BR /&gt;&lt;SPAN&gt;VOLUME &lt;/SPAN&gt;[&lt;SPAN&gt;"/opt/dynatrace/oneagent"&lt;/SPAN&gt;]&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ENV &lt;/SPAN&gt;&lt;SPAN&gt;DT_DEBUG&lt;/SPAN&gt;=&lt;SPAN&gt;"true"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;ENV &lt;/SPAN&gt;&lt;SPAN&gt;DT_LOGLEVELCON&lt;/SPAN&gt;=&lt;SPAN&gt;"DEBUG"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;ENV &lt;/SPAN&gt;&lt;SPAN&gt;LD_PRELOAD&lt;/SPAN&gt;=&lt;SPAN&gt;"/opt/dynatrace/oneagent/agent/lib64/liboneagentloader.so"&lt;BR /&gt;&lt;BR /&gt;ENTRYPOINT ["/bin/sh", "./docker_args.sh"]&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;where docker_args.sh do java -jar myapp.jar&lt;/P&gt;&lt;P&gt;Originally it was also in the task definition with the same values.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 13:48:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266888#M2843</guid>
      <dc:creator>Cath</dc:creator>
      <dc:date>2025-01-08T13:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: AWS fargate</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266896#M2844</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/84911"&gt;@Cath&lt;/a&gt;&amp;nbsp;are you using the runtime injection?&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/aws-fargate#runtime" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/aws-fargate#runtime&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Based on your Dockerfile I belive you don't have correct permissions on the OneAgent files in the volume you are mounting.&amp;nbsp; Can you check that if you run a shell in your container?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you can run a shell for myuser user, just run:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LD_PRELOAD="/opt/dynatrace/oneagent/agent/lib64/liboneagentloader.so" java -jar myapp.jar&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;It should give an stderr error if library cannot be preloaded.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 14:37:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266896#M2844</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2025-01-08T14:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: AWS fargate</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266904#M2845</link>
      <description>&lt;P&gt;Ok. your remark got me to try some stuff with export LD_PRELOAD= ..&lt;/P&gt;&lt;P&gt;and it seam in some situation,&amp;nbsp;LD_PRELOAD is just... ignored.&lt;/P&gt;&lt;P&gt;&lt;A href="https://unix.stackexchange.com/questions/757484/ld-preload-does-not-work-and-ld-debug-shows-nothing" target="_blank" rel="noopener"&gt;https://unix.stackexchange.com/questions/757484/ld-preload-does-not-work-and-ld-debug-shows-nothing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I did add capabilities.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't fix the trouble yet, but at least it a clue.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 15:24:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266904#M2845</guid>
      <dc:creator>Cath</dc:creator>
      <dc:date>2025-01-08T15:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: AWS fargate</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266923#M2846</link>
      <description>&lt;P&gt;Soo.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I replaced the 777 by +x, removed capacities on the java process.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our app don't start, can't bind port 80. But, dynatrace agent starts. All along we where looking for not enough permission. It was a problem of too many permissions triggering linux security.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 16:42:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266923#M2846</guid>
      <dc:creator>Cath</dc:creator>
      <dc:date>2025-01-08T16:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: AWS fargate</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266939#M2847</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/84911"&gt;@Cath&lt;/a&gt;&amp;nbsp;yes of course it did not start as it was already started in the container. So your permissions in the volume with OneAgent data must be fixed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 20:20:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/AWS-fargate-issues/m-p/266939#M2847</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2025-01-08T20:20:57Z</dc:date>
    </item>
  </channel>
</rss>

