프로그래밍

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
무분별한 사용은 차단될 수 있습니다.
번호 제목 글쓴이 추천 수 날짜 조회 수
5695 [프로그래밍] 윈도우 부팅화면 봐주실분 바나나맛두부 0 2 일 전 168
5694 [프로그래밍] 아 시발 퇴사마렵다 9 인간지표 0 3 일 전 373
5693 [프로그래밍] C#이 ㅈ사기 언어인 이유 19 ye 4 3 일 전 907
5692 [프로그래밍] 요즘 모바일 개발은 어떤 걸 사용하나요? 13 커피좋아용 0 5 일 전 367
5691 [프로그래밍] 취준생 안드로이드 팀플 주제 머할까요... 8 조강현 0 6 일 전 248
5690 [프로그래밍] 공통코드테이블은 대체 왜 만드냐 9 잠적자 0 7 일 전 450
5689 [프로그래밍] 토이프로젝트 주제 선정 3 개드립눈팅1세대 0 7 일 전 243
5688 [프로그래밍] 엥 구글 플러터 유기각 재는거임?? 4 최수연 0 10 일 전 383
5687 [프로그래밍] 반도체 장비 업계인 있음? 9 캡틴띠모 0 10 일 전 308
5686 [프로그래밍] 안드로이드 책 추천좀 6 집에가게해줘 0 11 일 전 165
5685 [프로그래밍] 폰 스크리닝 해 본 사람 있어? 3 무지개빛푸딩 0 12 일 전 408
5684 [프로그래밍] jsp 트리메뉴 만들고있는데 구상한게가능한지 의견좀물어볼께 11 평택국 0 12 일 전 183
5683 [프로그래밍] JPA 도와줘어억 ㅠ 10 모그리또 0 12 일 전 276
5682 [프로그래밍] 의사는 뽑는 인원 제한하는데 부캠은 왜 제한 안 할까 5 조강현 0 14 일 전 391
5681 [프로그래밍] 그 혹시 게임쪽 종사자 있음? 17 god79ii 0 18 일 전 651
5680 [프로그래밍] 코린이 ㅅㅂ 뭐가 문젠지 모르겠어요 9 집에가게해줘 0 18 일 전 476
5679 [프로그래밍] Dear Imgui 라고 아시나요? 2 년째모쏠 0 19 일 전 255
5678 [프로그래밍] 현업개발자분들 주말엔 편하게 쉴수있나요? 10 키로 0 19 일 전 904
5677 [프로그래밍] 무엇이든 물어보세요. 28 변현제 0 21 일 전 436
5676 [프로그래밍] 개발자보단 엔지니어가 취업이 잘됨 5 iillillill 2 23 일 전 786