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 #773

Closed
llamafilm opened this issue Oct 25, 2023 · 3 comments
Closed

Error: NoCredentialProviders #773

llamafilm opened this issue Oct 25, 2023 · 3 comments

Comments

@llamafilm
Copy link

Hello. I've just downloaded goofys version 0.24.0-45b8d78375af1b24604439d2e60c567654bcdf88.
I'm running in EC2 with IAM instance profile but I'm getting this error when trying to mount:

s3.ERROR code=NoCredentialProviders msg=no valid providers in chain. Deprecated.#012#011For verbose messaging see aws.Config.CredentialsChainVerboseErrors, err=<nil>
main.ERROR Unable to access 'mybucketname': NoCredentialProviders: no valid providers in chain. Deprecated.#012#011For verbose messaging see aws.Config.CredentialsChainVerboseErrors
main.FATAL Mounting file system: Mount: initialization failed

The command I ran is ./goofys --region us-west-2 mybucketname /mnt/goofys/

I do not have a credentials file, and the aws cli works automatically using the instance role, e.g. aws s3 ls s3://mybucketname.

@NohYeongHun
Copy link

  1. Try putting the aws credential file in /root/.aws or

  2. The contents of the aws credentials file
    aws_access_key_id
    Check if it is aws_secret_access_key or

I solved it through number 1.

@alxsbn
Copy link

alxsbn commented Nov 13, 2023

Same issue here. How is this possible to not being able to use the IAM instance profile? It was something deprecated, because we're using Goofys for a long time and this was supported before

@llamafilm
Copy link
Author

I'm closing my own issue as a duplicate of #671.

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

3 participants