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
212
votes
11 answers
Nginx reverse proxy causing 504 Gateway Timeout
I am using Nginx as a reverse proxy that takes requests then does a proxy_pass to get the actual web application from the upstream server running on port 8001.
If I go to mywebsite.example or do a wget, I get a 504 Gateway Timeout after 60…

Dave Roma
- 2,449
- 3
- 18
- 13
25
votes
10 answers
504 Gateway Timeout - Two EC2 instances with load balancer
This might be the impossible issue. I've tried everything. I feel like there's a guy at a switchboard somewhere, twirling his mustache.
The problem:
I have Amazon EC2 running an application. It functions without issue when there is only one…

user3035649
- 472
- 1
- 4
- 12
24
votes
3 answers
504 Gateway Time-out The server didn't respond in time. How to fix it?
The client requested to download a compressed log file, using Ext.js a form submission on an embedded iframe. Request was sent to server, which has Apache and JBoss 6. The servlet compresses log files, do some database operation and returns the…

Ricardo
- 3,696
- 5
- 36
- 50
23
votes
3 answers
What can I do to fix a 504 gateway timeout error?
I have been using jquery to try and pull data from an API. However I am getting a 504 error. Even when I am using postman to test the data this happens. Can anyone suggest what I need to do to get around this?

Cathy Regan
- 251
- 1
- 2
- 7
23
votes
2 answers
Git Error: The requested URL returned error: 504 Gateway Timeout while accessing http://
I am using a VM provisioned by my company's internal cloud (KVM) - RHEL 6.4.
I am able to clone external repositories from the internet. Yet, I cannot figure out how to clone internal repositories on my company's intranet.
At first I didn't set the…

Matthew Moisen
- 16,701
- 27
- 128
- 231
22
votes
7 answers
WCF - (504) The server did not return a response for this request
I have a JSONP WCF Endpoint and am trying to track down why I am getting a 504 error.
HTTP/1.1 504 Fiddler - Receive Failure
Content-Type: text/html
Connection: close
Timestamp: 11:45:45:9580
ReadResponse() failed: The server did not return…

Keith Barrows
- 24,802
- 26
- 88
- 134
19
votes
2 answers
What is the difference between HTTP 408 and 504 errors?
These are both timeout errors, but who is timing out in a 408 vs. a 504?
From w3, 408 is defined as:
The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications…

alksdjg
- 1,019
- 2
- 10
- 26
17
votes
3 answers
Debugging 504 Gateway Timeout and its actual cause and solution
We are running following stack on our web server Varnish + Nginx + FastCGI (php-fpm) on RHEL 6.6
Its a dynamic website with different result sets everytime and has around 2 million url's indexed with Google.
Its running on nginx/1.5.12 and PHP…

KeyurM
- 388
- 1
- 3
- 12
10
votes
4 answers
nginx 504 Gateway Time-out
I'm running a rails3.0.7 project with phusion-passenger on nginx.
While I was doing a ajax which took about 15 mins to process.
It jump up an error with firebug which said "504 Gateway Time-out" after 10 mins from calling the ajax.
Could someon give…

ben
- 1,525
- 2
- 15
- 15
8
votes
1 answer
504 Gateway Time-out media temple
I am constantly getting 504 Gateway Errors when my php script needs to run for longer than 60 seconds.
I am on Media Temple on a dedicated server. I have contacted Media Temple and they have been helpful but none of their suggestions seem to work…

user1503606
- 3,872
- 13
- 44
- 78
8
votes
1 answer
504 Error On Server
I'm loading data into a text file and when the procedure takes long (lots of data) I get a 504 response (viewed in Fiddler) and obviously the file fails to generate. I thought I'd try increasing the session timeout in my web.config, but that didn't…

Rivka
- 2,172
- 10
- 45
- 74
7
votes
2 answers
Angular service worker with @angular/pwa package showing `HTTP error 504` when offline
I am working on an angular PWA application. So I added an npm package by ng add @angular/pwa. It is added successfully with no errors.
The generated Manifest is working fine. But I am facing issues with the service worker. When the application goes…

Alok Mali
- 2,821
- 2
- 16
- 32
7
votes
1 answer
Shiny App not deploying: Error pushing repository: 504 Gateway Time-out Execution halted
I've rerun my app several times without a problem, but am recently getting an error and can't deploy my app. It is able to run on my local desktop though so I know the
Preparing to deploy application...DONE
Uploading bundle for application:…

Megan Hepner
- 71
- 1
7
votes
1 answer
Is it appropriate to return HTTP 504 Gateway Timeout as a response if a database server times out?
In a REST service, is returning a 504 status code appropriate when the application times out waiting for a database query and is unable to complete the client's request?
504 Gateway Timeout
The server was acting as a gateway or proxy and did not…

gregmac
- 24,276
- 10
- 87
- 118
7
votes
6 answers
Making a web interface to a script that takes 30 minutes to execute
I wrote a python script to process some data from CSV files. The script takes between 3 to 30 minutes to complete, depending on the size of the CSV.
Now I want to put in a web interface to this, so I can upload the CSV data files from anywhere. I…

Pranab
- 2,207
- 5
- 30
- 50