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.

45 questions
22
votes
3 answers

nginx : no live upstreams while connecting to upstream

502 bad gateway error displayed when switching between site pages and some times on home page but not for the first request on the home page it is only when another page redirect to it. and it happens for some javascript files load balancing…
Mohammad Jolani
  • 333
  • 1
  • 2
  • 8
7
votes
1 answer

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
  • 708
  • 1
  • 8
  • 17
5
votes
1 answer

nginx+ uwsgi gives 502 Bad Gateway

I used this guide to set it up and it was working to server my django app for a while, but after adding a new django module, without touching any of the nginx or uwsgi configs, now the server leads to 502 502 Bad Gateway error. The nginx error.log …
alfish
  • 3,027
  • 15
  • 45
  • 68
4
votes
2 answers

Nginx 502 bad gateway runing django in uwsgi

I tryed to restart a project in production and it stoped working. This is a django==1.5.1 and django-cms==2.4.1 project. I restarted because I've updated the project from django==1.4.1 to django==1.5.1, but as long as I know it doesn't change…
Mauricio
  • 203
  • 1
  • 2
  • 8
3
votes
1 answer

Nexus returns error 502 (Bad Gateway) when publishing artifacts

I've just completed the installation of Sonatype Nexus 3.2.1-01 and I'm trying to publish some artifacts using a Jenkins job and the Nexus Artifact Uploader 2.9 plugin. The upload starts fine: 100 % completed (572 kB / 572 kB). But then it throws…
Tedi
  • 161
  • 1
  • 1
  • 4
3
votes
3 answers

NGINX Proxy Pass to NodeJS App: Returning 502 error

I'm trying to setup NGINX as the frontend of my NodeJS app, which is live on 127.0.0.1:3000, but i can't resolve this 502 error. NGINX is locally reachable at http://55.55.55.5/ or http://dev.example dev.example (file in: /etc/nginx/sites-available…
Jack
  • 31
  • 1
  • 3
3
votes
3 answers

NginX & PHP-FPM, random 502

2010/09/19 14:52:07 [error] 1419#0: *10220 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: [...], server: [...], request: "POST /[...] HTTP/1.1", upstream: "fastcgi://unix:/server/php-fpm.sock:",…
pestaa
  • 477
  • 7
  • 10
2
votes
1 answer

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

I am experiencing 502 Bad Gateway errors after deploying a python flask application using dokku on digital ocean. I followed this tutorial to deploy my app on digital ocean using dokku. 2018/10/23 07:40:59 [error] 28652#28652: *1 connect() failed…
Deschant Kounou
  • 21
  • 1
  • 1
  • 3
2
votes
1 answer

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 created/updated so far, can some one take a look at the…
Latheesan
  • 347
  • 2
  • 6
  • 18
2
votes
3 answers

Custom page on 502 Bad Gateway error

I want to use Nginx as a simple reverse proxy, but if the server behind Nginx is down I just was to display a blank page. For some reason this configuration isn't displaying a blank page on error 502 and I can't figure out why. user…
user55583
2
votes
0 answers

NGINX 502 Bad Gateway error inside Docker container

I haven't had any issues with my Docker container or NGINX until today where I am getting a random unexpected 502 Bad Gateway error even though I have made no changes to my configuration files, Docker files, or any other file in my project. The 502…
1
vote
1 answer

Change error page for 502 Bad Gateway error Nginx not working

I have researched online for a means to change the error page when running into a 502 Bad Gateway error. I have tried all the methods given to no avail. I looked in the nginx.conf file and saw that it points to /usr/share/nginx/html/50x.html when…
1
vote
0 answers

nginx 502 bad gateway with nodejs

i am an student who is working on a nodejs + nginx project taht i didn't start, so im not sure what is going on.... when i try accessing to my website, i am recibing a 502 Bad Gateway nginx/1.12.2 error. i have been trying to solve it with the…
Nacho
  • 11
  • 2
1
vote
1 answer

Nginx CentOS 7 PHP-FPM 7 502 Bad Gateway

I have configured Nginx, PHP-FPM 7 on CentOS 7. I am now having a 502 error. In www.conf: user and group are nginx. listen = /var/run/php-fpm.sock listen.owner = nginx listen.group = nginx listen.mode = 0660 In…
freddyk
  • 11
  • 1
  • 2
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
2 3