-
Notifications
You must be signed in to change notification settings - Fork 602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Credential should be scoped to a valid region, not 'eu-west-1'. " #74
Comments
I haven't been able to reproduce this unfortunately. I ran a script that launched and terminated batches of instances using user-data very similar to yours, but all of them ended up with agentConnected = true. I went through at least a couple hundred instances. You can find the hacky script I threw together here. I am using a slightly newer build of the agent in the above, but it only has logging changes which I hoped would help debug this if I ran into it. Can you give me more information about what you're doing? Your instances are in It would be very helpful if you could add Thanks, |
Thanks for taking the time to investigate on this one!
Currently I'm running only three EC2 instances in the same ECS cluster in AMI: CoreOS-alpha-668.2.0-hvm (ami-c5b7d8b2) I'll enable debug logging now and keep you posted with more information as soon as the problem occurs again. |
The SDK can handle setting the endpoint better than the Config code did; the endpoint behavior before was a legacy of a time with no sdk. The specific issue was that the endpoint would be set incorrectly if the ec2 metadata service did not return any value. In line with this, if no region can be determined it now is a fatal error. Relates to aws#74
Hi, the problem occurred again. This time we had debug logging turned on. https://gist.github.com/seiffert/393b72bdde650df9450d @euank: You referenced this issue in one of your commits. I see that it is merged into the Thanks, |
Unfortunately the debug logging still doesn't show enough information 😞. I've added more logging around suspect areas since then and, in the above referenced commit, fixed one possible cause of this behavior. We don't currently have a public image of the dev branch, but you're welcome to use a build I have of it, I'm hopeful that if the above doesn't fix it, the debug output from the current dev branch / next agent release will end up being more useful. Thanks for bearing with me so far and continuing to help figure this out, Edit: You also might be able to avoid this issue by setting the environment variable |
Thanks again for the effort you put into this! |
@euank I just made an observation that might help localise the underlying problem. Using the currently released version of the ecs agent (i.e., the In other words, without checkpointing, but with |
We use checkpointing from the beginning, so at least in our case this problem occurred with checkpointing enabled! FYI: No crashes since I switched to a build of the |
Released with v1.2.0. |
Hi,
I'm using the agent in a Docker container (using the official
amazon/amazon-ecs-agent
image from Docker Hub) on a CoreOS EC2 instance. (see the systemd unit file below) Right now, I'm having problems having the agents reliably register the instances at ECS. I can't really tell when exactly this happens, but in one out of three starts of the agent, it keeps logging the following lines and does not report the agent to be connected in the ECS Console.The Systemd unit file I'm using is:
/etc/ecs/ecs.config
:The text was updated successfully, but these errors were encountered: