프로그래밍

uwsagi + nginx + flask 관련 문제가 4시간 째 안 풀려요

uwsagi + nginx + flask python으로 aws linux ubuntu에 실행 중이고, flask python 파일이 잘 동작하는 것을 [public ip]:8000 을 통해서 확인했습니다.

 

flask python 파일 코드를 수정했습니다.

 

하지만 여전히 [public ip]:8000 로 접속해보면 이전 코드에 기반한 페이지가 보입니다.

 

$sudo service uwsgi restart 를 실행하면

 

Job for uwsgi.service failed because the control process exited with error code.
See "systemctl status uwsgi.service" and "journalctl -xeu uwsgi.service" for details.
 

 

$sudo service nginx restart 를 실행하면

 

Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.
 

가 나옵니다.

 

GPT4 한테 물어보고, 구글에 검색해봐도 해결방법을 모르겠습니다.

 

 

제발 도와주세요 ㅠㅠㅠ

 

아래는 $journalctl -xeu nginx.service 결과 입니다.

 

Nov 25 13:24:46 ip-172-31-13-131 uwsgi[4329]:  * Starting app server(s) uwsgi
Nov 25 13:24:46 ip-172-31-13-131 uwsgi[4329]:    ...fail!
Nov 25 13:24:46 ip-172-31-13-131 systemd[1]: uwsgi.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit uwsgi.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Nov 25 13:24:46 ip-172-31-13-131 systemd[1]: uwsgi.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit uwsgi.service has entered the 'failed' state with result 'exit-code'.
Nov 25 13:24:46 ip-172-31-13-131 systemd[1]: Failed to start LSB: Start/stop uWSGI server instance(s).
░░ Subject: A start job for unit uwsgi.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit uwsgi.service has finished with a failure.
░░
░░ The job identifier is 2391 and the job result is failed.
Nov 25 13:25:47 ip-172-31-13-131 systemd[1]: Starting LSB: Start/stop uWSGI server instance(s)...
░░ Subject: A start job for unit uwsgi.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit uwsgi.service has begun execution.
░░
░░ The job identifier is 2549.
Nov 25 13:25:47 ip-172-31-13-131 uwsgi[4456]:  * Starting app server(s) uwsgi
Nov 25 13:25:47 ip-172-31-13-131 uwsgi[4456]:    ...fail!
Nov 25 13:25:47 ip-172-31-13-131 systemd[1]: uwsgi.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit uwsgi.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Nov 25 13:25:47 ip-172-31-13-131 systemd[1]: uwsgi.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit uwsgi.service has entered the 'failed' state with result 'exit-code'.
Nov 25 13:25:47 ip-172-31-13-131 systemd[1]: Failed to start LSB: Start/stop uWSGI server instance(s).
░░ Subject: A start job for unit uwsgi.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit uwsgi.service has finished with a failure.
░░
░░ The job identifier is 2549 and the job result is failed.
 

2개의 댓글

2023.11.25

자세한건 모르겠지만 Failed to start LSB 이건 해결해야될듯. 저것때문에 uwsgi 서비스가 안올라가는듯

0
2023.11.25

sudo nginx -t 해봐

0
무분별한 사용은 차단될 수 있습니다.
번호 제목 글쓴이 추천 수 날짜 조회 수
181136 [모바일] 아이폰 새로 샀는데 심 넣기 전에는 와이파이가 되는데 심 넣... 쵸코우유 0 1 시간 전 44
181135 [잡담] 공채 다시 준비해봐야겠다 1 찰나생멸 1 3 시간 전 96
181134 [컴퓨터] Sn850x 2tb 102달러면 무난? 4 광어우럭따 0 4 시간 전 104
181133 [잡담] 애즈락 메인보드 사는건 아니라고 배웠는데,,, 16 오브 0 6 시간 전 202
181132 [견적] 선생님들 롤이랑 웹서핑 말고 안하는데 견적 뽑으면 3 해병대갤러리1210기 0 6 시간 전 85
181131 [잡담] 마우스 휠 튀는거 wd40뿌리니까 고쳐짐 ㅋㅋ 4 이제는끝내자 0 8 시간 전 217
181130 [잡담] 4900hs/1660ti 6 초째 금딸중 0 9 시간 전 121
181129 [컴퓨터] xbox 컨트롤러 인식 이상해짐 RX7900XTX 0 10 시간 전 70
181128 [모바일] 보급형 스마트폰 중에 좀 작고 괜찮은거 뭐 있음? 4 피자박사 0 10 시간 전 106
181127 [컴퓨터] 고수님들 4060ti cpu좀 추천해주세요 5 가탄 0 10 시간 전 117
181126 [모바일] 갤럭시 키보드 자모 분리 나만 이러냐?? 3 달맛소스 0 10 시간 전 128
181125 [잡담] gx87 첫 타오주문 성공ㅋㅋ 1 손만잡고잔다며 2 13 시간 전 174
181124 [모바일] sm-v700 최초 스마트 시계 커스텀 과정??? hepatoma 0 13 시간 전 109
181123 [잡담] C타입이어폰 수월우 메이 간단후기 9 ladin 0 14 시간 전 226
181122 [모바일] ipad air 11 6세대 vs pro 11 4세대 4 인내 0 15 시간 전 114
181121 [정보] 인텔 다음 세대 2 만취한트롤 0 15 시간 전 149
181120 [컴퓨터] 디스코드 오류 도와주실 분 ㅠㅠ 4 달달한커피 0 15 시간 전 72
181119 [잡담] 의자 10만원 내외로 구매하려면 뭐가 좋을까? 4 이라기시따 1 19 시간 전 140
181118 [모바일] 갤럭시 21 울트라를 LTE로 쓰는데 갤럭시 24 + 사면 유심만 ... 4 어중E 0 1 일 전 255
181117 [컴퓨터] 모니터 충동 구매.. 8 그달 0 1 일 전 323