santthosh/aws-es-kibana

Error running on Amazon Linux AMI with docker

jayhilden opened this issue · 1 comments

Here is the command I'm trying to run on a brand new EC2 instance running Amazon Linux:

sudo docker run -d -e LIMIT=1000kb -e AWS_ACCESS_KEY_ID=someID -e AWS_SECRET_ACCESS_KEY=secret -p 80:9200 aws-es-kibana -b 0.0.0.0 myURL

It starts without a problem, but if I run wget localhost I get the following.

--2017-08-10 21:00:58--  http://localhost/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2017-08-10 21:00:58 ERROR 403: Forbidden.

Because I'm running this command from localhost there shouldn't be any security issues getting in the way.

Any ideas?

I found the issue was that my user wasn't allowed to connect because of IP restrictions. This information was hidden to me by the proxy. I forked this and made an update so that on startup it tries the connection and displays an error message if it fails. If you want me to PR it into here I'd be happy to.

jayhilden@25bd45a