-
Notifications
You must be signed in to change notification settings - Fork 613
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
runtime error: index out of range #1237
Comments
it is happening again
|
@cgouteix good catch, thanks for bringing this to our attention. |
also - I'm not able to reproduce this error on my end and some more logging data would be very helpful for debugging this issue. Do you mind sharing your container image metadata as well? Specifically I'm curious about the healthcheck command and how the output from that is interacting with the agent. Would you be able to send me logs from the problematic instance? If this is easily reproducible for you, I'd also suggest running the agent with You can capture logs using our log collection tool and email them to me directly at adnkha at amazon dot com. If you end up sending the logs to my email, please update this issue so I don't miss them. Thanks 😄 |
I'll try to reproduced it and give you more info. But for now I had to roll back to the previous ami. I think maybe it has something to do with Scheduled Tasks. I use them a lot. |
So it seems that I was right. |
We are facing the same problem here, but this error occurs when agent try to stop a task with two containers. |
+1 I'm seeing a lot of these after upgrading to 1.17.0. I'm anxiously awaiting 1.17.1. |
The latest release 1.17.1 includes a fix for this issue. |
Summary
After upgrading to 1.17.0, the agent container is enable to start on some randomly instances.
Description
I'm using ECS and an EC2 Autoscaling Group. All my containers have docker's healthcheck on.
I'm using ami-63cbae0c (amzn-ami-2017.09.h-amazon-ecs-optimized) in eu-central-1. I was on ami-eacf5d85 (amzn-ami-2017.09.f-amazon-ecs-optimized) with no such trouble.
After upgrading to 1.17.0 I get this behavior randomly (some EC2 instances and all):
service xxx was unable to place a task because no container instance met all of its requirements. The closest matching container-instance xxx encountered error "AGENT". For more information, see the Troubleshooting section.
false
for the previously mentionned instanceecs-agent
container is perpetually restarting. Its last log message ispanic: runtime error: index out of range
(see the trace bellow)Environment Details
Supporting Log Snippets
Very hard to catch, because the agent container is recreated every few seconds:
The text was updated successfully, but these errors were encountered: