Showing results for 
Show  only  | Search instead for 
Did you mean: 

Installing oneagent as a daemon on AWS ECS with ec2 launch type


This is the first time we are looking to onboard our ECS services running on Ec2 launch type. Followed the Dynatrace documentation  and created an one agent task definition. When I try to deploy a service with in a specific cluster with the created Oneagent task definition, the deployment is unable to complete. Not sure, what exactly is stopping the service to be deployed. 

Attached the One agent logs and task definition



DynaMight Guru
DynaMight Guru

Hi @ManasaM 

I take it you have done all the pre-steps? Does the installation stop for you at point 5? (

There is an error entry in the logs from python - however this applies to plugins - after which the whole OA process stops.

[stderr] Could not find platform independent libraries <prefix>
[2023-11-02 19:23:36.210 UTC] [0000085e] [severe ] [oneagentplugin] [stderr] Could not find platform dependent libraries <exec_prefix>
[2023-11-02 19:23:36.210 UTC] [0000085e] [severe ] [oneagentplugin] [stderr] Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]

*I would recommend creating a new ticket in support at the same time.



Have a nice day!

Hi @radek_jasinski 
Thank you for responding. I have created a support ticket as well.
Regarding the pre-requisites, Are there any major things to be check listed apart from a PAAS token with required scopes, having ECS instance role to EC2 servers??

Iam not sure exactly at which step it stopped the installation as it doesnt throw any specific error.  In the event history it says "the container instances doesn't met the requirements". please find the attached screenshot.

Also, in the oneagent logs, it says switching to unprivileged user. Does it mean the container is running in unprivileged mode?

22:31:43 Starting agents...
22:31:43 Starting Dynatrace OneAgent from within the container.
Switching to unprivileged user, uid:998, gid:1001
[2023-11-02 22:31:43.904 UTC] [00002b53] [info   ] [watchdog] Dynatrace Watchdog, Copyright (C) 2012-2023 Dynatrace LLC.
[2023-11-02 22:31:43.905 UTC] [00002b53] [info   ] [watchdog] Version:, date: 2023.10.24 15:00:54, SCM Revision: 313d30d88f5f1fafd0baacf830567f60e4ae666d

Featured Posts