Questions tagged [502-error]

HTTP Error 502 Bad gateway

The HTTP Error 502 (Bad Gateway) is an HTTP status code, that means that one server received an invalid response from another server.

83 questions
1
vote
1 answer

Proxy Error 502 "Error reading from remote server" Apache 2.4.18 Ubuntu with HTTPS into Docker container

I'm no expert and can't see what's the problem, but obviously this error is caused by a tiny detail it seems I can't debug. Any idea? What I have: I have multiple virtual hosts configured with Apache2 that manage trafic to different websites. All…
Julien G
  • 11
  • 1
  • 3
1
vote
1 answer

502 error when wordpress site hosted on AWS, but not Google cloud

I've got a problem with my wordpress site that means I get a 502 bad gateway error. The site is hosted on AWS (EC2 instance). I migrated the site to a google cloud instance to test if that would work and the site and the site works there so…
Lisa
  • 21
  • 2
1
vote
1 answer

502 bad gateway nginx and apache servers

Hello there can you please help me im trying to setup apache and nginx server on my ubuntu 16.04 server, but when i try to visit localhost/info.php fo example im getting 502 Bad Gateway nginx/1.9.15 (Ubuntu) error 502 bad gateway and this is from…
Dimitar
  • 123
  • 1
  • 1
  • 8
1
vote
0 answers

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$ { if (!-e $request_filename) { rewrite…
laketuna
  • 125
  • 9
1
vote
2 answers

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; } } Now suddenly it doesn't anymore... I don't…
davidhq
  • 215
  • 2
  • 9
1
vote
1 answer

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 admin. When I attempt to post or update a post my…
DRK
  • 11
  • 2
1
vote
1 answer

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 returns the 502 for any desktop skin but works fine when…
Christian
  • 779
  • 1
  • 13
  • 31
1
vote
2 answers

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 just practicing. My config file is as follows (it's…
HectorOfTroy407
  • 135
  • 1
  • 5
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
1 answer

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 SharePoint page. The retrieved page issues a AJAX…
MvdD
  • 173
  • 2
  • 4
  • 10
1
vote
2 answers

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 : OpenSSL 1.0.0-fips 29 Mar 2010 Network I can't…
foru
  • 11
  • 3
1
vote
1 answer

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 fwrite/fread cycle takes another 300ms. To reduce…
leeoniya
  • 127
  • 5
1
vote
0 answers

Upstream prematurely closed FastCGI stdout while reading response header from

I have a setup of nginx1.20.1 + php7.3.3 on Centos7. We run those VMs beneath google cloud load balancer. Sometimes, randomly there is 502 returned to the end client. I traced one of those error sources to the Nginx error log saying "upstream…
Tim
  • 31
  • 3
1
vote
1 answer

Angular server side rendering keeps going down to 502 errors

So I have been running my front end on the server for a few weeks now(angular Server Side rendering). I keep running into this issue where the front end goes down to a 502 error. I have to restart the server ever few hours to ensure that it is back…
Venomoustoad
  • 111
  • 2
1
vote
0 answers

Apache HTTP proxy work for some destination ip and receive 502 Bad Request from other destinations

I've an HTTP proxy like this: Listen 8240 ProxyRequests On SetEnv force-proxy-request-1.0 1 SetEnv proxy-nokeepalive 1 If I try an HTTP GET to an ip: curl -v…
alex
  • 11
  • 1