커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
502 Bad Gateway 오류
undefined주차
북마크
신*준
댓글
7
추천
0
조회수
26
조회수
26
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


Elastic Beanstalk 에서

severe 라고 메시지가 뜨고,

원인은

  • Process default has been unhealthy for 22 minutes (Target.ResponseCodeMismatch).
  • Following services are not running: web.

이렇게 뜹니다.


따라서, 제가 올린 url을 들어가면 아래 메시지가 나옵니다.

502 Bad Gateway





스파르타 즉문즉답스파르타 즉문즉답





$ eb logs

Retrieving logs...

============= i-0f3c89c6a82b79735 ==============

----------------------------------------

/var/log/nginx/error.log

----------------------------------------

2023/04/07 14:03:25 [error] 2700#2700: *213 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.11.24, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.5.204"

2023/04/07 14:03:29 [error] 2700#2700: *215 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.2.86, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.5.204"

2023/04/07 14:03:30 [error] 2700#2700: *217 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.30.115, server: , request: "GET / HTTP/1.1", 

upstream: "http://127.0.0.1:8000/", host: "172.31.5.204"

2023/04/07 14:03:40 [error] 2700#2700: *219 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.11.24, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.5.204"

2023/04/07 14:03:45 [error] 2700#2700: *221 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.2.86, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.5.204"

2023/04/07 14:03:45 [error] 2700#2700: *223 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.30.115, server: , request: "GET / HTTP/1.1", 

upstream: "http://127.0.0.1:8000/", host: "172.31.5.204"

2023/04/07 14:03:55 [error] 2700#2700: *225 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.11.24, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.5.204"

2023/04/07 14:04:00 [error] 2700#2700: *227 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.2.86, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.5.204"

2023/04/07 14:04:00 [error] 2700#2700: *229 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.30.115, server: , request: "GET / HTTP/1.1", 

upstream: "http://127.0.0.1:8000/", host: "172.31.5.204"

2023/04/07 14:04:06 [error] 2700#2700: *231 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.2.86, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "myweb.eba-nauwtmgy.ap-northeast-2.elasticbeanstalk.com"

2023/04/07 14:04:07 [error] 2700#2700: *231 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.2.86, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:8000/favicon.ico", host: "myweb.eba-nauwtmgy.ap-northeast-2.elasticbeanstalk.com", referrer: "http://myweb.eba-nauwtmgy.ap-northeast-2.elasticbeanstalk.com/"

-- More --


취소
 공유
취소
댓글 0
댓글 알림
나의얼굴