Oct-05-2022, 10:59 PM
(This post was last modified: Oct-12-2022, 09:13 PM by Larz60+.
Edit Reason: fixed error tags
)
Our company internal portal is running Python 3+Nginx+flask+Gunicorn on Ubuntu server. This portal was written by previous staff and I have just joined this company. My boss told me that this portal was no problem half a year ago, but now when we load it, the browser shows 502 Bad Gateway and asks me to fix it.
I am a newbie to Python. I already searched on Google, and it seems that Gunicorn, Nginx are still running after reboot. And when searching Nginx error log, it shows
- I tried to locate favicon.ico in linux but could not find it.
- I tried to search for source files, but also could not find it, I just wondered where it came from?
- As there is no one to touch the system, why has it become this 502 issue in half a year later?
Can any expert share tips with me to solve this? Many thanks!
I am a newbie to Python. I already searched on Google, and it seems that Gunicorn, Nginx are still running after reboot. And when searching Nginx error log, it shows
Error: 782#782: *8823 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.10, server: portal.mydomain.com, request: "GET /favicon.ico HTTP/1.1", upstream: "http://0.0.0.0:5123 /favicon.ico", host: "192.168.1.105", referrer: "https://192.168.1.105/"
[
port 5123 is from Gunicorn, I have the following questions:- I tried to locate favicon.ico in linux but could not find it.
- I tried to search for source files, but also could not find it, I just wondered where it came from?
- As there is no one to touch the system, why has it become this 502 issue in half a year later?
Can any expert share tips with me to solve this? Many thanks!