03 Nov 2023 04:47 PM - last edited on 08 Aug 2024 09:09 AM by Michal_Gebacki
Hello,
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
03 Nov 2023 05:44 PM
Hi @ManasaM
I take it you have done all the pre-steps? Does the installation stop for you at point 5? (https://docs.dynatrace.com/docs/shortlink/aws-ecs#deploy-oneagent-as-a-daemon-service)
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.
Radek
03 Nov 2023 06:44 PM
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. www.dynatrace.com
[2023-11-02 22:31:43.905 UTC] [00002b53] [info ] [watchdog] Version: 1.277.165.20231024-150054, date: 2023.10.24 15:00:54, SCM Revision: 313d30d88f5f1fafd0baacf830567f60e4ae666d