Questions tagged [502]

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.

49 questions
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
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

nginx - 502 Bad Gateway ubuntu 14.04 aws ec2 django project + gunicorn

I'm trying to get my django project up and running on an aws ec2 instance. I'm using gunicorn with nginx, and I'm not really sure how I can tackle this problem. I've spent a couple hours on it already, including looking at other posts on this site..…
pyramidface
  • 111
  • 6
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
0 answers

Openshift proxy timeout

I have an application hosted with Openshift and I need it to generate some Excel reports. The report generation process can take a long time (over 5 minutes). This causes the the client to see a 502 error and the request times out. How can and where…
Varaghar
  • 11
  • 2
1
vote
2 answers

502 Bad Gateway Nginx

When I try to view my website homepage I get the following error dislayed: 502 Bad Gateway Nginx The error log found at /var/log/nginx shows the message: *2014/04/21 10:30:39 [error] 3807#0: 228 upstream sent invalid header while reading response…
Tignor
  • 31
  • 1
  • 4
1
vote
1 answer

Google AppEngine - 502 Bad Gateway

I'm running a Python Flask endpoint locally and it all works fine, but when I deploy it in GCP AppEngine, I get a 502 Bad Gateway. It seems to fail at about 200 reads of 2290 bytes each. I've increased the memory_gb of both the default YAML and the…
1
vote
0 answers

Why would TLS version in one config cause another to break?

I have an Apache proxy that has several VHosts. Some of these are legacy configs that were before my time. Long story short, I removed some .crt files on the server that had expired, and forgot to remove the associated /etc/apache2/ssl/*.conf files,…
DevOpsSauce
  • 348
  • 1
  • 5
  • 22
1
vote
1 answer

Installing Matomo on Nginx returns 502 Bad Gateway Error

I'm in the process of installing the Matomo Analytics platform on my Debian 10 server, running Nginx and using the Cloudflare DNS and CDN. Unfortunately I get a 502 Bad Gateway error when trying to access it, indicating that the error lies with the…
0
votes
2 answers

After Ubuntu 14.04 -> 16.04 upgrade, pypMyAdmin retuns 502 error on nginx

So I just upgraded my VPS from 14.04 to 16.04, the upgrade went well for most parts, but MySQL failed to update. I needed to manually remove mariadb-client first, and then I was able to install MySQL again, and everything on my website is now…
LBandy
  • 9
  • 2
0
votes
1 answer

nginx reverse proxy SSL

Goals: Have a single nginx reverse proxy for all sub-sites (running on other ports). BLOCK all direct connections, and instead; route through nginx. Problem(s): 502 gateway errors when trying to access https://www.example.com/site1/ (connect()…
0
votes
1 answer

502 Bad Gateway on localhost Apache

I'm trying to run a Drupal 7 multi-site install on my Mac (10.12.6). My directory setup: ~/Sites/index.html ~/Sites/drupal/docroot/sites/site1 ~/Sites/drupal/docroot/sites/site2 My /etc/hosts: 127.0.0.1 site1.local 127.0.0.1 site2.local If I…
OrdinaryHuman
  • 139
  • 2
  • 9
0
votes
1 answer

Almost all the http APIs return a 502 bad gateway error after adding a CDN

I just added my website to a CDN provider https://www.qiniu.com/en. Then I realised that almost all my http APIs (https://www.funfun.ink/httpOnly...) returned a 502 bad gateway error. Additionally, https://47.52.108.146/1/#/home did not work…
Thomas
  • 223
  • 1
  • 3
  • 11
0
votes
1 answer

502 error returned from nginx reverse proxy rewrite on some networks

I am getting connection timed out - 502 when connecting from one Internet connection (wifi 4g connection tried with different devices and browsers) while the server works perfectly on VPN, and different Internet connections (tried on several cell…
Ajay Singh
  • 297
  • 1
  • 3
  • 13
0
votes
1 answer

Nginx 502 error after updating Ubuntu 12.10 to 14.04?

I had a particularly outdated ubuntu distribution (12.10) and was beginning the process to update sequentially to 16.04. Yesterday, I successfully updated from 12.10->13.10->14.04 using the Ubuntu old releases archive and this tutorial from Digital…