Giter Site home page Giter Site logo

Comments (8)

samuelkarp avatar samuelkarp commented on May 20, 2024 1

@grayaii Yes, you can cause ecs-init to cache the agent by running start ecs.

from amazon-ecs-init.

grayaii avatar grayaii commented on May 20, 2024

Or better yet, have a way to NOT download ECS agent from s3 (just look at what happened today... s3 went down, and "ecs start" failed due to not being able to download from s3). If we can burn the agent onto the AMI, there should be no reason for the box to access s3 at all.

from amazon-ecs-init.

samuelkarp avatar samuelkarp commented on May 20, 2024

@grayaii When you're using the ECS-optimized AMI, the agent is already cached and does not need to be downloaded from S3. However, if you update and install a new version of ecs-init, that new version will not have the agent cached and will need to download it.

from amazon-ecs-init.

grayaii avatar grayaii commented on May 20, 2024

@samuelkarp Thanks for the quick reply! We are not using an ECS optimized AMI; we are using our own AMIs. We burn the yum install of ecs-init into the AMI.

So basically to burn it on the AMI, we just need to run "start ecs", and THEN burn the AMI?
If so, that would be awesome! Thanks!

from amazon-ecs-init.

endofcake avatar endofcake commented on May 20, 2024

I am seeing this issue after upgrading to the latest version of ecs-init ecs-init-1.15.2-2.amzn1.x86_64.

Steps I performed:

  1. Launch a new instance off the latest ECS-optimised AMI.
  2. Configure proxy (specific to our environment) and register with ECS cluster. Everything is fine.
  3. Run yum update to update ecs-init.
  4. ECS agent is no longer able to start:
2017-11-21T21:50:44Z [INFO] pre-start
2017-11-21T21:50:44Z [INFO] Downloading Amazon EC2 Container Service Agent
2017-11-21T21:50:44Z [DEBUG] Downloading published md5sum from https://s3.amazonaws.com/amazon-ecs-agent/ecs-agent-v1.15.2.tar.md5
2017-11-21T21:50:49Z [ERROR] could not download Amazon EC2 Container Serivce Agent: Get https://s3.amazonaws.com/amazon-ecs-agent/ecs-agent-v1.15.2.tar.md5: dial tcp 54.231.120.226:443: i/o timeout
2017-11-21T21:50:49Z [INFO] post-stop

from amazon-ecs-init.

samuelkarp avatar samuelkarp commented on May 20, 2024

Configure proxy (specific to our environment) and register with ECS cluster. Everything is fine.

Did you also configure the proxy for ecs-init? You can follow these instructions to set proxy configuration in /etc/init/ecs.override.

from amazon-ecs-init.

endofcake avatar endofcake commented on May 20, 2024

@samuelkarp , thanks, this indeed was the issue here!

from amazon-ecs-init.

fierlion avatar fierlion commented on May 20, 2024

Closing. From the comments, I believe the issue has been resolved.

from amazon-ecs-init.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.