Questions tagged [504]
33 questions
9
votes
1 answer
How do I increase FastCGI read timeout to prevent 504 error on nginx?
I am running a file with considerable amount of coding. It takes approximately 55 seconds to process 500 users, but now I have to process 1000 users. The default timeout is 60 seconds, so I have to increase the FastCGI read timeout.
I found this…
rajankaneria
- 93
- 1
- 1
- 3
7
votes
1 answer
Simulate 502 & 504 on nginx
Is there any way to simulate these errors? I created some custom files for it, but I want to be sure that are displayed correctly. I made different message for every vhost.
Thank you in advance.
MihaiM
- 708
- 1
- 8
- 17
4
votes
2 answers
Intermittent 504 errors with HAProxy
I've been struggling with this issue for weeks and I'm running out of ideas. I run HAProxy to proxy requests among 3 backends based on the requests' path/headers.
My backends are:
An Amazon S3 bucket
A Node.js app (2 servers)
A service called…
Pedro
- 291
- 1
- 3
- 9
4
votes
1 answer
HAProxy Specific URI
So my HAProxy configuration is similar to this.
listen webaustin 0.0.0.0:80
mode http
timeout connect 12000
timeout server 60000
timeout queue 120000
balance roundrobin
option httpchk GET /index.html
log global
…
grufftech
- 6,620
- 4
- 35
- 37
3
votes
1 answer
Apache and mod_wsgi returning 504 error when posting specific SVG string
I have a wierd 504 error occuring in Apache + mod_wsgi when I post a specific SVG string. The backend application is Python Flask, but it does not seem to get to the application at all.
Here is one request that returns a 504 error:
curl…
Martin Taleski
- 363
- 3
- 5
- 14
3
votes
1 answer
cURL throws 504 gateway timeout error with external website on my vps
The following returns a gateway timeout on my vps (debian, squeeze)
curl --head http://www.flipkart.com/
HTTP/1.1 504 Gateway Timeout
But works fine i.e gives a 302 HTTP on my home computer.
So I guess something is wrong in my vps settings.…
gyaani_guy
- 171
- 1
- 1
- 8
2
votes
0 answers
Amazon ELB https termination results in 504 for large file uploads
I've stumbled upon the following issue and can't seem to find a solution.
Setup:
IIS server behind Amazon ELB setup to terminate SSL connections on the ELB with a setup of https 443 -> https 443 (port 443 on the ELB forwards to port 443 on the…
Daniel Friedmann
- 21
- 3
2
votes
0 answers
Got 504 Timeout in 200ms. What does that mean?
I have a website. Using Nginx and Spring. Today, some of APIs got 504 gateway timeout, but these time-out return instantly. I suppose a time-out error should be returned after a period of time. So, what does this mean?
hakunami
- 121
- 2
2
votes
3 answers
504 Gateway Time-Out after publishing on a Nginx-Apache-WordPress platform
I've set up a blog with WordPress and with Nginx acting as a proxy reverse for Apache. Everything goes really well, but there's a little problem.
When I write a new post, I can save the draft and everything works fine. But if I clic on the Publish…
javipas
- 1,292
- 3
- 23
- 38
1
vote
1 answer
Difficulty removing website from AWS services
Designing a website for a client and taking over from previous guy who set it all up in AWS. I’m not familiar and the learning curve is steep. The last few days I’m getting a 504 gateway problem and the website is broken.
So, bought new traditional…
Paul Murphy
- 25
- 7
1
vote
1 answer
Recurrent 502, 504 errors despite low cpu and memory usage
I'm struggling with this problem since quite a while. I have t2.site instance on AWS hosting a very low traffic personal website built with wordpress, nothing extraordinary. I first used Apache2, and after a few months running perfectly I suddenly…
Xenophiliac
- 117
- 1
- 7
1
vote
1 answer
I can't avoid 504 gateway time-out
In order to avoid the nginx 504 gateway time-out, I've tried to do this in the beginning of my PHP code:
set_time_limit(0);
Also, I've tried to raise the time settings at /etc/php/7.0/fpm/php.ini:
max_execution_time = 3600
max_input_time =…
cawecoy
- 233
- 3
- 10
1
vote
1 answer
Amazon EC2 504 Gateway Time-out
I have only a single amazon EC2 free-tier instance. It's hosting two Django sites that currently get almost no traffic, barely a handful of requests per day. The server is apache with mod_wsgi, and apache is configured with WSGIDaemonProcess,…
fpghost
- 663
- 1
- 10
- 22
1
vote
1 answer
504 Gateway timeout / 502 Bad gateway after installing php curl - server nginx
I have (well had) a working server with nginx on board.
A server (dedicated) was only used to host a drupal site.
Recently we decided to host also a magento store on it and started preparation.
Since magento and nginx did not work together out of…
Szymon Łazaruk
- 13
- 1
- 1
- 4
1
vote
2 answers
PHP Gateway Timeout
I need to make PHP execution longer, and whatever else might be a problem. I thought I'd already done so but I'm still getting gateway timeouts from my recent wordpress install. The php-fpm pool has the following configuration
[john]
user =…
John Tate
- 179
- 4
- 19