Question
Installed ELk Log Stack gives 502 Bad Gateway
Hi,
I just installed Elk Log Stack with one click install on Ubuntu 14.04,
When i logged into the ip with the user password as described in:
https://www.digitalocean.com/community/tutorials/how-to-use-the-digitalocean-elk-stack-one-click-application
Then I get a Nginx 502 Bad Gateway, i have following in the /var/log/nginx/error.log
2015/07/26 08:57:40 [error] 934#0: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 37.24.151.202, server: , request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:5601/”, host: “46.101.233.103”
2015/07/26 08:57:40 [error] 934#0: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 37.24.151.202, server: , request: “GET /favicon.ico HTTP/1.1”, upstream: “http://127.0.0.1:5601/favicon.ico”, host: “46.101.233.103”, referrer: “http://46.101.233.103/”
I’m new to the log stack and sort of new to nginx, and i expected the one click install to work out of the box.. What can i do to fix this ?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Good morning,
If you are still having this issue, which I have been having with more frequency lately likely due to an Elasticsearch issue after increasing load on our server close to four-fold, please give this a try:
Restart the ELK stack, from Kibana down to Logstash, in order.
For example:
Let your services get back to a stable status, especially in the case of Elasticsearch (e.g. all of the nodes are coming back online properly, which can be checked using the HEAD plugin (https://www.elastic.co/guide/en/elasticsearch/reference/1.4/modules-plugins.html#site-plugins)).
I hope that this helps.
– Michael
there is a typo in “sudo service elasticsearsh start”, should be “sudo service elasticsearch start”