Report this

What is the reason for this report?

NGNIX 504 Gateway Time-out

Posted on April 23, 2021

Hi, I’ve been following this tutorial

https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-20-04

I’m stuck on Configuring Nginx to Proxy Requests.

Nginx error logs: 2021/04/23 18:08:01 [error] 115757#115757: *4 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 80.5.115.86, server: sub.mysite.comm, request: “GET /favicon.ico HTTP/1.1”, upstream: “http://unix:/root/text_generator/textgen.sock/favicon.ico”, host: “www.sub.mysite.com”, referrer: “http://www.sub.mysite.com/

In the browser my IP address page shows a “Welcome to nginx!” message and my website returns 504 Gateway Time-out nginx/1.18.0 (Ubuntu).

Thanks in advance I’m very stuck!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.