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

Wordpress import process ends in 502 Bad Gateway error

I have a Wordpress website which have been working flawlessly for a while now in a LEMP with Ubuntu. However, today I had to import a previously exported XML from another Wordpress and in the middle of the process I get the 502 Bad Gateway…
1
vote
0 answers

My web application is running on One Server and two worker nodes

my nginx config file is server { listen ip-address:80 ; server_name subdomain.domain.com; server_name www.subdomain.domain.com; server_name ipv4.subdomain.domain.com; location / { proxy_pass…
MUmar
  • 11
  • 1
0
votes
1 answer

nginx gunicorn django 502 worker timeout just on some pages

I configured a django app with gunicorn and nginx all was working perfectly until the installation of SSL certifiate on the server. firstly all pages were served perfectly but after some time some pages were showing 502 Bad gateway while others are…
chipop
  • 1
  • 1
  • 3
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…
Tie
  • 223
  • 1
  • 2
  • 11
0
votes
0 answers

HTTP 502 (Bad Gateway), niginx connect() to 127.0.0.1:8889 failed (99: Cannot assign requested address) while connecting to upstream

We have a server application running behind nginx, and the client side will keep getting and writing data to it through HTTP request but should return really fast. After running sometime, client side start receiving HTTP 502 Bad Gateway error, and…
gogog22510
  • 1
  • 1
  • 1
  • 3
0
votes
2 answers

NGINX and PHP-FPM 502 bad gateway

Ok so here is the situation, we currently have a server and we are now migrating to AWS. We have somehow identical configuration and we already tried to run apache benchmark so the PHP-FPM pool is somehow optimize as far as I know. But after we…
Rei
  • 23
  • 2
  • 7
0
votes
2 answers

How to config Ngnix to achieve any possible website error for testing

I'm developing a website using Django framework and Nginx. Would like to create a false system error and observer how my system responds. This is a nice article however this only create false Error 502 only. I would like to test other error…
Kim
  • 3
  • 2
0
votes
1 answer

Apache server throw me 502 error when I try to access site with Public IP

I have a little strange case. I configured two servers in AWS: Develop and QA, the two with Ubuntu 16.04, Apache 2 and PHP 7.0. I created a website en Develop, and configured its VirtualHost file. So, in Develop I edit its /etc/hosts file to point…
0
votes
2 answers

Setup GitLab behind nginx with https and responding on different port

Dear serverfault community, I have recently installed bundled GitLab on my VPS running Ubuntu14.04. To get it running, I have used nginx, which is routing one particular subdomain to GitLab over http. So far so good, it works fine and does not…
olhur
  • 3
  • 4
0
votes
0 answers

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 throw 502 errors randomly. All websites hosted on…
nyro
  • 101
  • 2
0
votes
2 answers

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: fastcgi_finish_request(); in php to finish the request…
David
  • 103
  • 5
0
votes
1 answer

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 requests except for multipart POST requests. The…
kosta
  • 1
  • 1
  • 2
0
votes
1 answer

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 received an invalid response while acting as a…
0
votes
1 answer

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 server with uwsgi running on arch linux, here are the…
Never Nor
  • 101
  • 1
  • 4
0
votes
0 answers

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 seconds: All requests are blocked and you can't even…