dynamo-local-admin-docker icon indicating copy to clipboard operation
dynamo-local-admin-docker copied to clipboard

CredentialsError in web UI

Open mvayngrib opened this issue 7 years ago • 7 comments

first off, thanks for this project, it has been very useful to me!

recently, i've started seeing the below error when I open the web admin. Do you know what I might be doing wrong?

{
  "error": {
    "message": "Missing credentials in config",
    "code": "CredentialsError",
    "time": "2017-08-12T14:27:01.645Z",
    "retryable": true,
    "originalError": {
      "message": "Could not load credentials from any providers",
      "code": "CredentialsError",
      "time": "2017-08-12T14:27:01.645Z",
      "retryable": true,
      "originalError": {
        "message": "Connection timed out after 1000ms",
        "code": "TimeoutError",
        "time": "2017-08-12T14:27:01.644Z",
        "retryable": true
      }
    }
  }
}

mvayngrib avatar Aug 12 '17 14:08 mvayngrib

also this one:

{
  "error": {
    "message": "Missing credentials in config",
    "code": "CredentialsError",
    "time": "2017-08-12T14:34:28.910Z",
    "originalError": {
      "message": "Could not load credentials from any providers",
      "code": "CredentialsError",
      "time": "2017-08-12T14:34:28.910Z",
      "originalError": {
        "code": "ECONNRESET",
        "message": "socket hang up"
      }
    }
  }
}

mvayngrib avatar Aug 12 '17 14:08 mvayngrib

yes, i'm seeing this as well.. any advice on how to set the credentials?

gjesse avatar Aug 15 '17 18:08 gjesse

me2, any advice?

wilsont avatar Aug 22 '17 12:08 wilsont

ok, i have a temporary solution for this, until the owners get back to us. The gist is to add dummy credentials to /root/.aws/credentials

the fast way: use this fork and run docker-compose up: https://github.com/mvayngrib/dynamo-local-admin-docker

the slow way: use this branch on the same fork and build your own image with credentials built in

happy to submit a PR from either solution, depending on the owners' preference. I haven't tested the slow one, as I had trouble building the image, but the first one definitely works

mvayngrib avatar Aug 22 '17 14:08 mvayngrib

I still need to troubleshoot this, but in the meantime if someone wants to look in the commit log of https://github.com/aaronshaf/dynamodb-admin they may find the breaking commit there.

aaronshaf avatar Aug 22 '17 18:08 aaronshaf

You can also launch the container passing the AWS credentials as environment variables as well: docker run -p 8000:8000 -it -e AWS_ACCESS_KEY_ID=key -e AWS_SECRET_ACCESS_KEY=secret --rm instructure/dynamo-local-admin

That worked for me.

kbober-ebsco avatar Sep 21 '17 11:09 kbober-ebsco

This has been fixed in instructure/dockerfiles@f8e32d9e5ebffb3a7c09b988ceb70b5365a82963

tierra avatar Sep 27 '17 16:09 tierra