1
vote
0answers
36 views

upstream timed out (110: Connection timed out) while connecting to upstream

I have my backend in France and one of my frontend servers is in Japan. This issue doesn't happen with any other of my frontends, only this Japan server, which already has about 2s latency from most ...
1
vote
0answers
166 views

nginx connection timeout & client closed connection issue

I have this nginx server running on AWS & it was working all fine until recently when couple of users started complaining about the website not opening until they made some 10 attempts to access ...
0
votes
1answer
550 views

nginx upstream timed out. Multiple servers at the same time

I have several servers serving a single site. Main server runs nginx and php-fpm. And all the other servers run php-fpm. The server that runs both nginx and php-fpm connects via a unix socket and the ...
1
vote
0answers
164 views

Make nginx stop accepting incoming connections when upstream is not available

I am running the following Puppet setup: Two puppet masters,each running nginx and uwsgi as a backend. Load balancing and HA between the two puppet masters is done via simple DNS round robin. The ...
0
votes
1answer
369 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 ...
0
votes
0answers
1k views

Nginx, Django, uwsgi upstream prematurely closed connection

I have a django app running on Nginx and uwsgi. The app works fine usually, but I have noticed one thing that is whenever I restart my server and try to work on my app I am getting Nginx 404 error and ...
0
votes
1answer
819 views

Nginx php-fpm pool being blocked and stop responding

I'm having some issues with requests for pages not getting a response after requests take a long time to process. I have nginx setup to use php-fpm. I have two pools setup in PHP-FPM. One pool for ...
1
vote
1answer
934 views

upstream prematurely closed connection while reading response header from upstream, client

I'm using nginx and spawnf-cgi with apc and memcache enabled.I'm getting 502 bad gate way on browser and this error on error log. 2013/01/07 06:55:46 [error] 90799#0: *53 upstream prematurely closed ...
0
votes
1answer
1k views

Nginx proxy timeout while uploading big files

I'm experiencing strange behaviour with Nginx. In my case Nginx acts as proxy to Jetty. Config below: server { listen 80; client_header_timeout 3m; client_body_timeout 3m; ...
0
votes
2answers
756 views

Upload large files failed with “ResponseText: 504 Gateway Time-out”

server setting: Ubuntu server 10.10 using nginx 0.7.67 PHP 5.3.3 with PHP-FPM Drupal 7 site. post_max_size = 1000M upload_max_filesize = 1000M max_execution_time = 3600 request_terminate_timeout = ...
3
votes
1answer
957 views

Nginx as reverse proxy: how to properly configure gateway timeout?

We have configured Nginx as a reverse proxy to an Apache server farm, but I'm running into trouble with the gateway timeouts. Our Goal in human readable form is: "Deliver a request within one second, ...
0
votes
1answer
5k 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 ...
0
votes
1answer
4k views

How to find the connection time-out value in linux?

I am setting up a nginx webserver with php-fpm and (d)dos deflate to ban attacks. Now currently there is no traffic to my server at all, as i'm testing things. With this command i can see who is ...
3
votes
1answer
331 views

Nginx + Passenger : stop file uploads timing out after 30 seconds

I have a ruby app which runs under passenger and nginx. If i try to upload a largish file (eg 15+ meg), when it gets to 30s in, the upload restarts (according to chrome) and at the end of the next 30 ...
1
vote
1answer
1k views

How to debug memc/memcached timeouts with Nginx?

Problem Regular timeouts from the memcached backends in Nginx (see example errors below) Things already tested: it occurs both on local and remote memcached servers so the network can't be the ...
1
vote
1answer
616 views

NGINX basic auth timeout?

I've protected a directory with satisfy and basic_auth, but seems that the validation is not stored in a cookie which after some time it's deleted, seems it's ip or something based. So i login once ...
2
votes
1answer
2k views

Nginx + PHP-FPM Timeouts, almost zero load consumption?

I've got a server running on a Linode with Ubuntu 10.04 LTS, Nginx 0.7.65, MySQL 5.1.41 and PHP 5.3.2 with PHP-FPM. There is a WordPress blog on it, updated to WordPress 3.2.1 recently. I have made ...
3
votes
2answers
9k views

Nginx proxy_read_timeout vs. proxy_connect_timeout

I've started using Nginx as a reverse proxy for a set of servers that provide some sort of service. The service can be rather slow at times (its running on Java and the JVM sometimes gets stuck in ...
1
vote
1answer
923 views

Rails, passenger nginx and upload connection resets

Uploading a largish (2mb) file to nginx/passenger results in my connection being reset. I have tried editing configuration fields of nginx but apparently these are superseded by passenger's config. ...
3
votes
1answer
2k views

Nginx and uwsgi timeouts

I have nginx serving a django app powered by uwsgi. Occasionally I am getting 504's and want to increase the timeout. When using the nginx uwsgi module, do I need to use a special param to account for ...
12
votes
7answers
49k views

Nginx + php-fpm “504 Gateway Time-out” error with almost zero load (on a test-server)

After debugging for 6-hours - I am giving this up :| We have a nginx+php-fpm+mysql in LAN with almost 100 wordpress (created and used by different designers/developers all working on test wordpres ...
1
vote
0answers
323 views

Consequences of and alternatives to setting large nginx timeout on server to download large files

I have set the timeouts in nginx's proxy.conf to large values in order to download a large pdf. I suspect that this is not the right solution. What bad result could this have and is there a better ...
4
votes
1answer
1k views

Setting up Nginx to *not* retry on Rails timeouts

I have a Rails+Phusion Passenger set-up. Sometimes, the user query that Nginx is proxying to Passenger/Rails times out. How can we set Nginx such that after keepalive_timeout, Nginx does NOT retry but ...