Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
502 Issue
#1
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

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!
Reply


Messages In This Thread
502 Issue - by itgavin - Oct-05-2022, 10:59 PM
RE: 502 Issue - by itgavin - Oct-12-2022, 11:30 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020