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.
6974
자세한건 모르겠지만 Failed to start LSB 이건 해결해야될듯. 저것때문에 uwsgi 서비스가 안올라가는듯
tolabose
sudo nginx -t 해봐