Comments (8)
@grayaii Yes, you can cause ecs-init to cache the agent by running start ecs
.
from amazon-ecs-init.
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.
@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.
@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.
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:
- Launch a new instance off the latest ECS-optimised AMI.
- Configure proxy (specific to our environment) and register with ECS cluster. Everything is fine.
- Run
yum update
to updateecs-init
. - 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.
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.
@samuelkarp , thanks, this indeed was the issue here!
from amazon-ecs-init.
Closing. From the comments, I believe the issue has been resolved.
from amazon-ecs-init.
Related Issues (20)
- Add staticcheck tool to ecs-init (same as agent) HOT 1
- Containers with multiple listening ports in 'host' networking unable to send traffic to other local ports HOT 2
- Installation of ecs volume plugin on RHEL HOT 3
- ECS Agent update issue HOT 1
- iptables rule isn't removed on service restart after changing ECS_ALLOW_OFFHOST_INTROSPECTION_ACCESS from false to true HOT 1
- Setting ECS_ALLOW_OFFHOST_INTROSPECTION_ACCESS=true doesn't appear to work on Amazon Linux 1 HOT 1
- ECS cluster registers new task every time While uploading large file in aws ecs through loadbalancer with 503 gateway error HOT 7
- ECS service doesn't always run at boot time due to systemd breaking service ordering cycles HOT 4
- Migrate from dep to go modules for dependency management HOT 1
- Configurable ecs-agent image version HOT 8
- Support overriding ecs agent certificate with host certificate for generic rpm package
- 1.53.0 not availalbe as rpm HOT 1
- Running "make deb" or "make generic-rpm" does not package amazon-ecs-volume-plugin HOT 2
- Offhost ECS Agent Container Introspection is permanently enabled when primary NIC is not called eth0 HOT 4
- ecs anywhere install script: unnecessary requirement on dirmngr HOT 1
- post-stop seems to require dockerd socket access HOT 11
- Cannot build RPM package on CentOS 7.9.2009 HOT 2
- amazon-ecs-volume-plugin.service is missing in SLES 15 SP2 amazon-ecs-init 1.53 version HOT 2
- [Proposal] Integrate ECS Init into ECS Agent & deprecate standalone ECS Init repository HOT 3
- VolumeDriver.Create: encountered error(s) in creating the volume HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-ecs-init.