504 Gateway Timeout. The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
Questions tagged [http-status-code-504]
279 questions
2
votes
1 answer
Errors 504 and 413 in fresh installation on NGINX server
I have set up my first nginx server and in PhpMyAdmin i am getting the following errors:
Error 413 - Request Entity Too Large
Error 504 - Gateway Timeout Reloaded
I used the following line and install the nginx and php files.
sudo apt-get install…

PeterPan2020
- 174
- 1
- 12
2
votes
1 answer
504 gateway timeout error on aws in specific region
Current environment:
Node.js API server is hosted on EC2 instance (Ubuntu20.04) with Load balancer and Security Group, we are serving as HTTPS.
Front End is on S3 linked with Cloudfront.
These two servers are using Route 53 as a DNS provider and…

Liu Zhang
- 1,808
- 19
- 31
2
votes
0 answers
Why does update to scipy 1.4 crash mod_wsgi application on AWS Elastic Beanstalk (causing HTTP status 504)?
We have a Django app running on AWS Elastic Beanstalk (EB), behind a load balancer. The instances run the latest standard Amazon Linux environment with Python 3.6, and using the standard EB mod_wsgi configuration (with Apache 2.4).
Somewhere in the…

djvg
- 11,722
- 5
- 72
- 103
2
votes
0 answers
504 gateway time-out after 3 minutes (Apache in Docker)
I work on a Laravel project hosted in a Docker container with Apache. I have a script which call an API, it can take more than 3 minutes to respond, but I get this timeout error every time after 3 minutes:
504 gateway time-out
I tried to increase…

Sayydika
- 158
- 1
- 8
2
votes
0 answers
Random slow response time making app crash on beanstalk
We have a php app using laravel on elastic beanstalk that's been running for almost 2 years. Since the last 2 weeks(almost 3) we've been having random really high response time which cause the Database connections to become stuffed which then cause…

Tommy Gaudreau
- 250
- 2
- 6
2
votes
3 answers
504 Timeout while reading reponse from the server
I have an Angular frontend, and a .NET CORE backend. I have one particular request which is quite heavy and takes a while to execute.
When I look in the browser console, I get a 504: Timeout while reading response from the server.
The backend…

BartKrul
- 577
- 1
- 8
- 21
2
votes
0 answers
Node API gets timed out till i restart pm2 again
I have created basic API's in node using express, Every thing works fine but suddenly some times i get 504 time out where pm2 status is online and the timeout continues till i restart the pm2 again, I have even checked the server health every thing…

Srinath
- 275
- 3
- 11
2
votes
0 answers
Nginx proxy server running in Docker container returns 504
I am trying to setup a docker network of two containers. One container holds a Wildfly application, and the other machine is an Nginx proxy server. The proxy server is just a placeholder for a load balancer used in a production environment.…

Christian Baker
- 375
- 2
- 7
- 22
2
votes
1 answer
Getting error 504 in test server but not locally
I've been trying to fix a really annoying problem in a Java Web project. We use Spring (3.1.4) with webflow (2.3.1), running over Wildfly 11.0 on a Amazon Server. In short, the remote server is giving 504 - Timeout error for a task that the local…
2
votes
1 answer
504 error, long loading with Laravel
I'm facing a problem for a week and I'm struggling to identify the source of it.
To summarize the problem, my website is very long to load from time to time (10 ~ 60sec), ending sometimes in a 504 error Bad Gateway on a file (css, img, js, totally…

Dunnbar
- 53
- 1
- 8
2
votes
2 answers
Http status code if auth server times out
Let's say we are initiating oauth flow from our server and the provider times out. What do we return as status code? 503 for try again later or 504 to state some other server timed out?

Behlül
- 3,412
- 2
- 29
- 46
2
votes
2 answers
AWS - How to set HTTP 502 timeout?
We have an elasticbeanstalk application that runs an api. Now the requests to the API frequently expected to take tens of seconds to be satisfied. I used to get an http 504 Gateway_Timeout for the requests after 60s of sending the requests.
So I…

An Illusion
- 769
- 1
- 10
- 24
2
votes
1 answer
Cross domain request timeout in IE11 only (fine in other browsers)
I have an issue with an app running in Internet Explorer 11 which makes an external API request to amplitude.com and returns an 504 GATEWAY TIMEOUT error - this causes a long delay in the page (it will sometimes crash) and returns the following in…

Zabs
- 13,852
- 45
- 173
- 297
2
votes
2 answers
504 error with nginx and flask docker containers
Two days of work and I'm still stuck. I'm running separate nginx and application containers. The application container has a flask app that runs a gunicorn process on port 8000.
Everytime I nav to localhost:8080 which is the nginx port 80 is mapped…

Andrew Graham-Yooll
- 2,148
- 4
- 24
- 49
2
votes
1 answer
HTTP 504 Gateway Time-out when serving static file with Django (Nginx + Gunicorn)
I've been having problem hosting my Django project on Amazon EC2.
Using Gunicorn and Nginx to host the site, I get the following error when trying to load my page in the browser (excerpt from the Javascript console):
Failed to load resource: the…

josephbagaric
- 23
- 6