简体   繁体   English

无法运行 ECS 外部任务

[英]Cant run ECS external task

I have an EC2 ubuntu machine (g5.large).我有一台 EC2 ubuntu 机器 (g5.large)。 I registered the machine as an external instance on ECS.我将机器注册为 ECS 上的外部实例。 I created Task definition, cluster, etc... Did a couple of testing runs and everything went fine.我创建了任务定义、集群等……进行了几次测试,一切顺利。

Than I created new cluster with new EC2 (same configs and settings as above) and suddenly I can't run any task definition.比我用新的 EC2 创建新的集群(与上面相同的配置和设置)突然我无法运行任何任务定义。

I get this error: CgroupError: Agent could not create task's platform resources我收到此错误:CgroupError:代理无法创建任务的平台资源

Solved!解决了!

echo "GRUB_CMDLINE_LINUX=systemd.unified_cgroup_hierarchy=false" | sudo tee /etc/default/grub.d/cgroup.cfg
sudo update-grub

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM