Skip to content
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

Error - NoCredentialProviders: no valid providers in chain. Deprecated. #605

Closed
buddhike opened this issue Nov 21, 2016 · 2 comments
Closed

Comments

@buddhike
Copy link

I'm trying to setup a new ECS Instance with standard AMI in our VPC. After starting up the instance I don't see it registering with specified ECS cluster. In our ecs-agent logs, I see the following error emitted quite frequently.

016-11-21T01:49:28Z [INFO] Starting Agent: Amazon ECS Agent - v1.13.1
2016-11-21T01:49:28Z [INFO] Loading configuration
2016-11-21T01:49:28Z [INFO] Event stream ContainerChange start listening...
2016-11-21T01:49:28Z [INFO] Checkpointing is enabled. Attempting to load state
2016-11-21T01:49:28Z [INFO] Loading state! module="statemanager"
2016-11-21T01:49:28Z [INFO] Detected Docker versions [1.17 1.18 1.19 1.20 1.21 1.22 1.23]
2016-11-21T01:49:49Z [WARN] Error getting valid credentials (AKID ): NoCredentialProviders: no valid providers in chain. Deprecated.
	For verbose messaging see aws.Config.CredentialsChainVerboseErrors

Our instance have the correct ecsInstanceRole. The VPC does not have direct access to internet. I use an HTTP proxy address which is configured in /etc/ecs/ecs.config.

Is there anything else I should do in addition to setting HTTP_PROXY property in ecs.config?

@samuelkarp
Copy link
Contributor

If you've only set HTTP_PROXY, it's likely that the requests to get credentials from the EC2 instance metadata service are being redirected through your proxy. Can you ensure that you've set the NO_PROXY environment variable in /etc/ecs/ecs.config as is documented here?

@buddhike
Copy link
Author

That did the trick. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants