The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
17 views

Listening to 127.0.0.1:9000 but var/run/php5-fpm.sock failed (2: No such file or directory)

I have a webserver configured to accept FastCGI requests at 127.0.0.1:9000 like below. /etc/php5/fpm/pool.d/www.conf: listen = 127.0.0.1:9000 /etc/nginx/sites-enabled/mysite: location ~ .php$ { ...
1
vote
2answers
40 views

nginx default error page stopped working for some reason

This used to work: server { server_name example.com; location / { proxy_pass http://localhost:8888; error_page 502 /502.html; } location = /502.html { root /var/www/example; } ...
2
votes
0answers
27 views

How to distinguish between internal error code 502 and upstream returned http_502 on a nginx proxy

We use nginx as a http proxy server.The following configuration: location / { proxy_pass_header Server; proxy_pass $scheme://$http_host$request_uri; } When urls proxied return error code ...
0
votes
2answers
54 views

How to add a fallback to my proxy in nginx?

I am trying to build a proxy for my node application through nginx thinking this will give me error pages if the node application failed or is not available on the port. The node app runs on ...
0
votes
0answers
72 views

nginx + php-fpm: 502 - when mysql is under load

mas :) I've got the following hardware 1 dedicated MySQL server (5.1x) 3 webservers with nginx and php-fpm (Ubuntu 12) and I'm running a small magento shop and several other low-traffic sites on ...
0
votes
0answers
294 views

Docker: Nginx and hhvm socket configuration returns 502 Bad Gateway

I am trying to run nginx and hhvm with docker-compose and socket file configuration but it returns a 502 error. I can access to conf/hhvm/run/ from nginx and hhvm image. In the error.log nginx's file ...
1
vote
1answer
159 views

502 Error When Trying to Post/Update in Wordpress After HHVM Installation

I'm hoping someone can lead me in the right direction of how to track down this problem. I recently had HHVM installed on my server with PHP as a fallback. Since then I've been having issues in WP ...
2
votes
1answer
97 views

Apache RewriteRule 502 Error on dev server, works on live

I'm on Apache 2.2.15. My vhost.conf contains a RewriteRule to handle article URLs; # handling for neat article titles RewriteRule ^/news/[0-9]{4}/[A-za-z]{3}/([0-9a-zA-Z-]*)/([0-9]{4})([0-9]{6})/?$ ...
4
votes
2answers
208 views

Upgrade 2 Ghost blogs on same server, 1 quits immediately when run as a service

I have 2 Ghost blogs on a Digital Ocean server running: Ubuntu 14.04.3 LTS Nginx 1.4.6 (Ubuntu) Node v0.12.7 I used the instructions provided by Digital Ocean to set up the blogs, and they have ...
0
votes
0answers
413 views

Random 502 errors only with phpMyAdmin throgh nginx/php-fpm, with php segfault

I'm using nginx and php-fpm on many servers. Some have php 5.4 with APC and others 5.5 or 5.6 with opcache. PhpMyAdmin on servers on 5.4 work without any problems. PhpMyAdmin on servers on 5.5 or 5.6 ...
0
votes
2answers
208 views

Nginx throws 502 intermittently on every page when using fastcgi_finish_request()

I recently inherited administration over 2 Nginx boxes in AWS and am very unfamiliar with how PHP-FPM works (and doens't work). I recently integrated Keen.IO for backend user logging, using: ...
0
votes
1answer
332 views

proxy giving error 502 when uploading files to tomcat backend

So, I have an apache 2.2.16 (64 bit) installed on a Debian Server. I have configured a proxy, for a specific url to map to my backend Tomcat 7 server. Everything works fine for all of the GET/POST ...
1
vote
1answer
583 views

502 errors on random (not all) pages

A few weeks ago I noticed in the Google Webmaster tools that a few of my URL's were returning 502's. One such URL is http://www.sau.com.au/forums/topic/437438-around-the-bay-wrap-up/ This URL ...
0
votes
1answer
61 views

PHP 502 Server Error: Problems with code or server?

Not sure if this is the right forum, but I'm hoping someone can help me. We had a web app running on our web server for a while now. Suddenly it stopped working and displays a 502 error - Web server ...
2
votes
2answers
80 views

Where do these “single-dot” smtp connection failures come from?

I'm running a mailserver based on postfix. There are a lot of connection failures like this: Transcript of session follows. Out: 220 hostname.tld ESMTP Postfix In: . Out: 502 5.5.2 Error: command ...
0
votes
1answer
903 views

UWSGI Bad Gateway - Connection refused while connecting to upstream

Trying to get a basic Django app running on nginx using UWSGI. I keep getting a 502 error with the error in the subject line. I am doing all of this as root, which I know is bad practice, but I am ...
0
votes
1answer
2k views

502 bad gateway nginx. uwsgi, flask

Ok so I developed a web app in python and it worked with the internal server: if __name__ == '__main__': app.app.run(debug = True) with no issue at all. I am now trying to start up a nginx ...
2
votes
1answer
3k views

(111: Connection refused) while connecting to upstream - Opsworks Rails 4

I deployed a rails 4 application in OpsWorks (Ubuntu 14.04, nginx and unicorn), when I open the homepage I'm getting a 502 Bad Gateway error. In nginx/error.log I can see this error: 2015/01/25 ...
1
vote
1answer
16k 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 ...
0
votes
0answers
281 views

502 Bad Gateway on high traffic

When my website receives many requests per second (I assume at least 80 requests per second), the server randomly blocks some requests with 502 Bad Gateway nginx-errors. This happens every few ...
0
votes
0answers
129 views

Nginx not forwarding some requests

I have a set-up where Nginx is set up as a reverse proxy forwarding requests with some pre-defined strings in URL to a checkout server. Other requests are sent to a load balancer which further ...
2
votes
2answers
9k views

Nginx error stating connection refused to PHP-FPM port

Newly create LEMP stack running PHP-FPM on Ubuntu 14.04 x64. Attempting to access some PHP in my webroot. Browser is showing 502 Bad Gateway and Nginx error log is showing the following (my IP and ...
2
votes
1answer
6k views

Nginx + PHP-FPM on Centos 6.5 gives me 502 Bad Gateway (fpm error: unable to read what child say: Bad file descriptor)

I am setting up a standard LEMP stack. My current setup is giving me the following error: 502 Bad Gateway This is what is currently installed on my server: Here's the configurations I've ...
1
vote
3answers
3k views

Nginx 502 Bad Gateway when uploading files

I get the following error when I try to upload files to my node.js based web app: 2014/05/20 04:30:20 [error] 31070#0: *5 upstream prematurely closed connection while reading response header from ...
0
votes
1answer
6k views

Apache VirtualHost setup… 502 Bad Gateway

I am trying to set up apache virtual hosts on Ubuntu 12.04 lts. I followed this guide here http://www.debian-administration.org/articles/412 except I used /var/www not /home/www. Ive set the document ...
0
votes
1answer
6k views

HTTP 502 Bad Gateway error response

I'm debugging an issue and running out of ideas. I have a server with SharePoint code hosted at port 8080 and a WCF REST service at port 8801. From another machine on the domain, I can connect to the ...
1
vote
2answers
927 views

Error 502 - Random SSL Library Error: 336151568 error:14094410

I'm facing a random 502 error on my webservers. Rate : 0.5% Error in my logs: SSL Library Error: 336151568 error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure OpenSSL Version ...
0
votes
1answer
1k views

php-fpm + persistent sockets = 502 bad gateway

Put on your reading glasses - this will be a long-ish one. First, what I'm doing. I'm building a web-app interface for some particularly slow tcp devices. Opening a socket to them takes 200ms and an ...
0
votes
1answer
309 views

Passenger + RVM returns 502 for ruby 1.8.7 (passenger_root lies in ruby 1.9.3)

I'm using Passenger + RVM + Nginx, and my Rails applications which are configured for Ruby 1.9.3 work fine, but those for 1.8.7 always return a 502 error. Can anyone spot the trouble? My config is as ...
1
vote
1answer
474 views

Sporatic 502 errors with Ruby on Rails site running on Nginx

My Ruby on Rails site is throwing sporadic 502 errors. It is running on Nginx, installed with Passenger, and is hosted on a server running Ubuntu 10.04. It seems that the errors are becoming more and ...
0
votes
1answer
461 views

custom 502 error page for nginx with unicorn not working, driving me insane ;)

I tried several times and on multiple occasions to try and fix the below code for nginx with unicorn, but it just isen't working. So now posting here in last report some of you more talented could see ...
0
votes
1answer
860 views

custom 502 bad gataway for nginx, cannot get it to work, whats wrong?

Im trying to catch a 502 bad gataway for nginx with unicorn. This error is thrown when unicorn is not running. Im trying to use a custom error page instead for when unicorn is not running to no avail. ...
0
votes
1answer
852 views

Communication failure between nginx and PHP-FPM

I've received my very first VPS just today, and wanted to install a nginx + PHP + MariaDB setup on it. And, well, I actually did it, but I've got a problem configuring it. Getting nginx to serve a ...
0
votes
1answer
641 views

IIS7 - HTTP 502 in IE8 over HTTPS

I am developing web app using .NET 4.0 I'ts hosted on IIS7 and served over HTTPS. When I try to request a page with IE8, it doesn't load completely. So I looked into fiddler, and it shows me an HTTP ...
2
votes
2answers
8k views

Nginx: 502 Bad GateWay

I try install nginx. I used to lighttpd but now we must install nginx. Can you help me with configuration nginx? I use debian 6. My nginx.conf: user www-data; worker_processes 4; pid ...
3
votes
1answer
9k views

Resource temporarily unavailable while connecting to upstream (php5-fpm)

I frequently get this error on random pages when the are like ~+10K connections (netstat -an |grep 80 |wc -l). This happens while there is still +10GB of free memory and server load is less than 3. ...
0
votes
1answer
476 views

How to config Apache to get error 502 Bad Gateway for testing?

I'm developing a website with ajax allow many queries insert many many row to database in the same time. It's run ok on localhost, but when I deploy onto server (free Amazon server), it's often get ...
2
votes
2answers
4k views

Finding Nginx/PHP-FPM bottleneck that is causing random 502 gateway errors

I work for a rather busy internet site that is often gets very large spikes of traffic. During these spikes hundreds of pages per second are requested and this produces random 502 gateway errors. Now ...
38
votes
4answers
125k views

connect() failed (111: Connection refused) while connecting to upstream

I'm experiencing 502 gateway errors when accessing a PHP file in a directory (http://domain.com/dev/index.php), the logs simply says this: 2011/09/30 23:47:54 [error] 31160#0: *35 connect() failed ...
0
votes
4answers
776 views

502 error after adding module to a Django project running on nginx and gunicorn

I am trying to add a module to an existing Django project, but once I have done it I get a 502 error. The server is running Ubuntu. I don't think it has to do with the applications code because I got ...
3
votes
1answer
1k views

qmail responds 502 unimplemented on STARTTLS

I am trying to send mail with php using the PEAR Mail_queue package. It should be working, and it appeared to work twice, but for some reason I keep getting the following error response from qmail: ...
5
votes
1answer
6k views

Nginx + PHP-FPM = “Random” 502 Bad Gateway

I am running Nginx and proxying php requests via FastCGI to PHP-FPM for processing. I will randomly receive 502 Bad Gateway error pages - I can reproduce this issue by clicking around my PHP websites ...
4
votes
3answers
11k views

nginx 502 bad gateway - fastcgi not listening? (Debian 5)

I have experience with nginx but it's always been pre-installed for me (via VPS.net pre-configured image). I really like what it does for me, and now I'm trying to install it on my own server with ...
7
votes
4answers
3k views

What's the difference between example.com and www.example.com?

I'm a developer and I'm having trouble setting up some hosting, and I hope you guys can help me out. I've got a domain I'm setting up for a friend. URLs work fine when I use the short form, like ...