Closed micheletest closed 7 years ago
Hi @micheletest sounds like something is going wrong with ECR authentication. Are you running a recent stack version with the ECRAccessPolicy
parameter?
The auth token for ECR is 12 hours, which sounds like re-auth somehow isn't happening.
hi @lox I don't think we are setting the ECRAccessPolicy, which would explain this. I am out of the office, but can confirm if that fixes this early next week. Thanks for looking at this.
@micheletest alternately, set AWS_ECR_LOGIN=true
in your env vars.
@lox Thanks - setting the AWS_ECR_LOGIN in your env vars worked.
Great! Updating to the latest stack should fix it too.
On Wed., 30 Nov. 2016 at 8:28 am, Michele Martone notifications@github.com wrote:
@lox https://github.com/lox Thanks - setting the AWS_ECR_LOGIN in your env vars worked.
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/buildkite/elastic-ci-stack-for-aws/issues/178#issuecomment-263704561, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA9jneyEN1UQosxSKjGfWs35MV25mLZks5rDJkCgaJpZM4K6rdQ .
Urgh, this is a regression. Will fix.
Fixed in master.
Especially in the morning, you may see: ERROR: denied: Your Authorization Token has expired. Please run 'aws ecr get-login' to fetch a new one. When this happens, it's an agent that has been running for more than a day.
Here are some excerpts from a build that had this happen. I modified it and removed parts so let me know if this is sufficient (removed any identifying characteristics of what this job is doing).