Questions tagged [502-error]

HTTP Error 502 Bad gateway

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

nginx failed to run on localhost because address is already in use, but no other process is listening on the same port

my macbook air restarted itself a couple of days ago for some reason, after that restart i kept getting the error 502 whenever i try to access my localhost. i googled and searched and none of the ...
0
votes
1answer
14 views

Nginx custom 502 page with nested proxies

I know how to create a custom 502 page for an upstream error and did it without problems many times, however in this particular case where one proxied response is passed to another proxy I can't find ...
1
vote
0answers
38 views

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; ...
0
votes
1answer
28 views

Lighttpd/Nginx Non-Functional

I'm using the Blackboard AMI from AWS and can't get the lighttpd to function on it. I continually get 502s. I've run service lighttpd status which gave me back: ● lighttpd.service - Lighttpd Daemon ...
0
votes
1answer
568 views

How to configure nginx.conf and php-fpm using brew servinces in MAC-OS in order to run php?

I have following logs in php-fpm log . [19-Jan-2020 15:09:33] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root [19-Jan-2020 15:09:33] NOTICE: [pool www] 'user' directive ...
0
votes
1answer
476 views

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 ...
0
votes
0answers
630 views

Failed WebSocket connection handshake error response code: 502

I am facing a weird nginx + websocket related issue so wanted to ask if any of you can give me an idea what is causing this error and if there is any way to fix it. I run a chatroom website (https) ...
0
votes
1answer
1k views

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 ...
3
votes
1answer
115 views

Apache Local virtualhosts not working (502 error) [closed]

My local dev environment consists of a mac with OSX El Capitan 10.11.6. I have Apache 2.4.28 installed. Something seems to have gone wrong with my virtual host configuration as none of my local ...
2
votes
1answer
5k views

Difference between keepalive in apache2.conf and in ProxyPass

I am using Apache 2.2.22 What is the difference, if there is any, between the Keepalive directive in /etc/apache2/apache2.conf # # KeepAlive: Whether or not to allow persistent connections (more ...
0
votes
1answer
1k views

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, ...
3
votes
1answer
587 views

After upgrade from ubuntu 14.04 to 16.04, nginx error 502: bad gateway until nginx is restarted

I have researched this problem, but in most cases the cause of the 502 error is an improperly configured nginx.conf or upstream service. I believe this is different.. As the title suggests, I ...
0
votes
0answers
353 views

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 ...
1
vote
1answer
773 views

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 ...
0
votes
2answers
5k views

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 ...
0
votes
2answers
66 views

How to config Ngnix to achieve any possible website error for testing [closed]

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 ...
0
votes
1answer
39 views

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,...
-1
votes
0answers
807 views

centOS 7 nginx 502 bad gateway error [closed]

im using VPS with 2 cores 3GB ram 1.5GB swap i been using nginx for more than year and i have not had any problem, nginx only uses between 300 to 700MB ram only my website is not so busy i get between ...
3
votes
1answer
9k views

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 % ...
2
votes
1answer
14k views

Nginx reverse proxying to upstream getting 502 Bad Gateway?

My current Application deployment is receiving traffic on HTTP port and Nginx redirect it to HTTPS. This is working fine. Now we are planning to have another Nginx server act like a Load balancer to ...
2
votes
1answer
11k views

502 “Error reading from remote server” when upstream service errors

I have apache set up as a reverse proxy. When the upstream service has an error (e.g. 500) the error is not returned to the client, but instead apache serves up a 502 "Error reading from remote server"...
0
votes
1answer
6k views

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....
1
vote
0answers
2k views

Squid 502 errors

I am using Squid 3.3.13 with no cache enabled and all my clients in LAN are using it to access to HTTP and HTTPS websites. I am not using it as transparent proxy but clients have it configured in OS ...
0
votes
2answers
1k views

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....
1
vote
0answers
2k 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
125 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
136 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 502 ...
2
votes
2answers
7k 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 127.0.0....
2
votes
0answers
2k 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
1k 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
893 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
339 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
1k 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
1k 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
3k 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
2k 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
652 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
458 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
3k 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
7k 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 ...
3
votes
1answer
6k 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 06:19:...
1
vote
1answer
21k 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
968 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 seconds:...
0
votes
0answers
244 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 ...
6
votes
2answers
32k 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
7k 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 created/...
2
votes
4answers
7k 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 ...
1
vote
1answer
21k 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 ...
1
vote
1answer
11k 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
2k 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 :...