title: 502 bad gateway Elastic Beanstalk Spring Boot
body: <p>I deployed a Spring Boot app on AWS Elastic Beanstalk. I am facing a 502 Bad Gateway error. I cannot find anything useful from the logs</p>
  
  <p>/var/log/nginx/error.log</p>
  
  <blockquote>
    <p>2019/02/10 02:12:54 [error] 3257#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: ...., server: , request: "GET / HTTP/1.1", upstream: "<a href="http://127.0.0.1:5000/" rel="noreferrer">http://127.0.0.1:5000/</a>", host: "...."</p>
  </blockquote>
  
  <p>I do not have any html files for front-end. I just want to upload deploy the api to share the documentation from swagger ui.</p>