728x90
반응형
flask, uwsgi, nginx 연동 도중 아래와 502 Bad Gateway 에러가 발생.
우선 /var/log/nginx/error.log를 확인했는데,
2022/02/12 00:49:54 [error] 1458540#1458540: *7 upstream prematurely closed connection while reading response header from upstream, client: 1.1.1.1, server: xxx.kr, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:/tmp/uwsgi.sock:", host: "xxx.kr:80"
이런 에러 로그가 있었다.
삽질 끝에 해결책을 발견했는데,
sudo apt install uwsgi-plugin-python
후에 uwsgi 실행하면서 --plugin python3 옵션을 넣어주니 해결!
uwsgi.ini에 plugins=python3를 추가해도 된다.
https://stackoverflow.com/questions/10748108/nginx-uwsgi-unavailable-modifier-requested-0
728x90
반응형
'how to' 카테고리의 다른 글
how to fix "Error message: crypto_alg: ARIA-CBC: not found" in openVPN (0) | 2023.04.25 |
---|---|
how to set ssl certificate using "Let's encrypt" in nginx (0) | 2023.04.12 |
how to solve ERROR [internal] load metadata for docker.io/libaray/~~ (0) | 2022.06.02 |
how to solve "iPA file installation failed" on jailbreaked iOS (0) | 2022.04.11 |
how to solve "waiting for debugger" on android (0) | 2022.04.06 |
how to fix pip3 error : ImportError: cannot import name 'PackageFinder' from 'pip._internal.index' (0) | 2022.01.30 |
how to solve "DNS_PROBE_FINISHED_NXDOMAIN" (0) | 2021.12.16 |
how to solve burp suite "connection refused: connect" error (0) | 2021.09.01 |
how to fix VMware NAT Service Error 1067 (0) | 2021.07.27 |
how to solve burp suite error "Received fatal alert: no_application_protocol" (0) | 2021.05.12 |
댓글