Questions tagged [504]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

IIS in windows 2019 HAproxy 504 gateway issue

We have an haproxy device that load balances a number of devices. However starting 1/18 two windows 2019 IIS servers have intermittently started responding to haproxy with a 504. This setup has been ...
steelrat405's user avatar
0 votes
0 answers
67 views

Nginx, getting upstream timed out error

On my machine, there are multiple virtual hosts deployed. I have a proxy server for these hosts, which redirects requests to the server. However, I keep getting an upstream timed out error when I try ...
Lucky Doodle's user avatar
0 votes
0 answers
233 views

200 success code in Apache log but 504 error in the browser for the same request

Apache logs 200 (success) code but browser shows 504 Gateway timeout error for the same request. Also, it times out just after aws load balancer idle time out value which is 1200 (20mins). I do not ...
PoojaA's user avatar
  • 1
0 votes
1 answer
293 views

nginx proxy to apache in local enviroment avoid error 504

Hi guys I have a setup where I use Nginx as entry point for my HTTP request on port 80 and then I make a proxy to port 8080 where Apache is running a virtual host with PHP7.4 + MySQL running on ...
Minos Framework's user avatar
0 votes
1 answer
376 views

HAProxy caches connection error?

We have a backend service currently served in front of a HAProxy proxy server for load balancing. When we shut down the backend service for maintenance, client connecting to the HAProxy is receiving ...
ipohfly's user avatar
  • 115
0 votes
0 answers
439 views

Nginx server give me 504 error

I am using nginx webserver on a WSL, Ubuntu. I have Magento need to run on this server. Where or what I can do to adjust, so I can have 504 error fix? does my default doing the right job? Please help ...
Paul Fan's user avatar
  • 103
-1 votes
1 answer
7k views

504 Gateway Time-out on NGINX Reverse Proxy even though the container is up

I have the following Docker setup: jwilder/nginx-proxy for the reverse proxy jrcs/letsencrypt-nginx-proxy-companion for SSL (Let's Encrypt) custom WildFly container as the endpoint My problem is ...
crispyzlata's user avatar
1 vote
1 answer
99 views

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 ...
Paul Murphy's user avatar
0 votes
1 answer
581 views

Nginx not scaling more than 750 connection when used as reverse proxy

I have a mobile application in which we are using Nginx as a Reverse proxy which routes request to Nginx. The Nginx request in app server is passed to Node.js for processing. We are getting 504 ...
SuryaVeepuri's user avatar
0 votes
0 answers
864 views

PHP-FPM pools of a domain are working non stop

My server OS is centOS. I use Apache for httpd. Every site runs PHP by own user. One of my sites (let's say that 504domain.com) gives 504 gateway error constantly. Restarting Apache makes the site ...
borayeris's user avatar
  • 213
0 votes
1 answer
938 views

Mail sends fine but returning 504 error

I noticed all of a sudden that any operation that has to do with sending email on my site returns with 504 server timeout page. Fortunately, the email gets sent but returns a 504 error. I went further ...
Kunsal Ajay's user avatar
0 votes
1 answer
64 views

504 timeout after migrating from Ubuntu to Debian server

So this is a rather strange error. After migrating my websites via Plesk Migrator to my new server (from Ubuntu to Debian), I get a 504 error when trying to access one of my websites. However, once I ...
Hillcow's user avatar
  • 121
4 votes
2 answers
27k views

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 ...
Pedro's user avatar
  • 291
0 votes
1 answer
163 views

Thunderbird can send emails over own mailserver, K-9 not

I switched to K-9 and APG recently to send and recieve emails and be able to en- and decrypt emails on the go. I've setup my own email server quite a while ago and everything works fine in Thunderbird,...
Blubberlutsch's user avatar
1 vote
1 answer
3k views

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 ...
Xenophiliac's user avatar
0 votes
0 answers
470 views

HTTP webserver gateway timeout 504 only from one ISP

I have configured a nginx http webserver to serve a site on CentOS 6 Virtual machine. every things are works fine but when I connect to site from a special ISP, the site wait and after a while respond ...
Ghasem Pahlavan's user avatar
1 vote
1 answer
2k views

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: ...
cawecoy's user avatar
  • 273
2 votes
0 answers
2k views

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 (...
Daniel Friedmann's user avatar
1 vote
1 answer
4k views

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 ...
fpghost's user avatar
  • 693
2 votes
0 answers
306 views

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, ...
hakunami's user avatar
  • 121
3 votes
1 answer
3k views

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 ...
Martin Taleski's user avatar
-1 votes
1 answer
5k views

Tomcat is unresponsive intermittently

Tomcat is unresponsive and throwing 504 intermittently. But there is not much CPU usage. We suspected it could happen we receive many number of requests and made tomcat unresponsive. We gave 400 as ...
Selvakumar P's user avatar
1 vote
1 answer
24k views

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 ...
Szymon Łazaruk's user avatar
3 votes
1 answer
21k views

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. ...
gyaani_guy's user avatar
0 votes
1 answer
2k views

Curl get of .cgi file, Always 504 gateway time out

I have a ip cam and I use Get method to switch on the alarm. When I use browser everything is ok http://da***.com:808/set_alarm.cgi?user=***&pwd=***&motion_armed=1" If a try to use this php ...
davide's user avatar
  • 1
1 vote
2 answers
2k views

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 ...
John Tate's user avatar
  • 179
0 votes
0 answers
350 views

One of our customers is experiencing a 504 error, where is that to occur?

One of our customers is having some problems accessing our web site. They've got 2 machines, and each of them is experiencing different symptoms, but I suspect that even though they're experiencing ...
Rod's user avatar
  • 575
0 votes
1 answer
1k views

504 bad gateway with Nginx

I have a J2EE application hosted on a linux VPS server. I use nginx as the web server and tomcat6 as the application server. At times, the website keeps waiting to load or sometimes even throws a 504 ...
Maxim Dsouza's user avatar
0 votes
1 answer
2k views

Nginx 504 Time out when zipping/unzipping and moving files

We're getting a 504 time out in Wordpress with a feature we have attached to "publish post" which takes an attacked zip file, unzips it, moves the unzipped files to s3, makes a new Zip and moves that ...
Danny Shepherd's user avatar
0 votes
1 answer
5k views

nginx, gunicorn and django weird 504 gateway timeout

I have an nginx / gunicorn / django setup as follows: Nginx server { listen 80; server_name myserver.com; root /www/python/apps/pyapp/; access_log /var/log/nginx/myserver.com....
user avatar
0 votes
1 answer
1k views

nginx crashes on ssl after about a minute

Here are my configuration files ssl.conf # HTTPS server # server { listen 443 ssl; server_name api.domain.com; error_log /var/log/nginx/api.error.log; location / { ...
Scott's user avatar
  • 1
10 votes
1 answer
55k views

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 ...
rajankaneria's user avatar
4 votes
1 answer
4k views

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 ...
grufftech's user avatar
  • 6,860
1 vote
3 answers
20k views

Error 504 Gateway timeout

I would like to know if an error 504 Gateway timeout always come from the load balancer or it can also be originated from Apache and the PHP code it's running ? Thanks
mnml's user avatar
  • 347
2 votes
3 answers
6k views

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 ...
javipas's user avatar
  • 1,362
8 votes
1 answer
14k views

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's user avatar
  • 738