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
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
1 answer

Nginx Error 502 when uploading large images

The environment: Fresh install of Ubuntu 16.04 on a 256MB VPS LEMP stack with PHP 7.1 Latest WordPress install with Avada theme & associated plugins only. At least 75MB of RAM free when not uploading The error: Getting 502 errors when uploading…
Titan
  • 3
  • 3
0
votes
0 answers

Multiple Gunicorn daemons for Django projects with Nginx result in 502 Bad Gateway for one

I want to run two Django applications on the same server, with Nginx and Gunicorn. I can run them separately, but not both at the same time: When I try, one is OK, but for the other one I receive 502. Here are my configuration files: First nginx…
0
votes
2 answers

502 bad gateway when trying to log out through nginx reverse proxy

When I try to log out my php application, the nginx reverse proxy throws a 502 bad gateway error. The error log shows this error: [error] 20284#0: *1 upstream sent too big header while reading response header from upstream, client: 127.0.0.1,…
James Kirkby
  • 168
  • 2
  • 9
0
votes
0 answers

Configuring Nginx Reverse Proxy: Resolving Bad Gateway Issue

I am attempting to set up an Nginx reverse proxy that should be accessible from another server. The purpose is to redirect requests to an upstream test environment. The connection necessitates a certificate and key, both of which I have successfully…
0
votes
1 answer

nginx error logging generates upstream sent too big header while reading response header from upstream

When i add error_log('what ever') in my php scripts and there are to many in one script, it generates a 502 error with "upstream sent too big header while reading response header from upstream" in the error log. When i remove any of the…
0
votes
0 answers

kubernetes responding with 502

I have a cluster running 2 deployments and an ingress (caddy). One of my deployments is working fine, its a golang image listening on 80. The other deployment is a php-fpm image listening on 9000, when I make any request to the php-fpm domain, it…
wcb
  • 1
0
votes
0 answers

Cloudflare Argo Tunnel gives 502 bad gateway sometimes, but it’s fixed when I reload

I have a Cloudflare Argo tunnel with two subdomains. Each of them points to a port on localhost. About half of the time, when I visit those subdomains, they show 502 bad gateway, even though the gateway works fine. If I reload the page it works as…
Globe
  • 101
  • 1
0
votes
1 answer

Nginx Bad gateway error code 502 archivematica

hey everyone I am a new to Linux. I have installed archivematica on my VM using VMware Workstation. I have followed the guide below, but when i try to access this machine using its IP address which is 172.16.0.12:8000 or even without the port…
0
votes
0 answers

Error 502: Deploy Django application with Gunicorn and Nginx

I have developed a web application with Django and I am trying to publish it in a virtual machine created with Azure. To do that I'm using the following software stack: Ubuntu (20.04) Django (3.0.7) Virtualenv (20.0.17) Gunicorn (20.1.0) Nginx…
El_Merendero
  • 111
  • 3
0
votes
0 answers

nginx always serves 502 Bad Gateway

I am trying to run a proxy with Nginx and I implemented the following tutorial as preparation. I did exactly as instructed here and I was served a 502 Bad Gateway result when I entered…
Mnemosyne
  • 131
  • 1
  • 7
0
votes
1 answer

AWS Load Balancer 502 Bad Gateway

I have multiple node web servers hosted on EC2 with a Load Balancer, and some users are getting a 502 even before the request reaches the server. I don't have the logs of those requests inside the servers, that's why I am assuming that the request…
soltex
  • 101
  • 1
  • 2
0
votes
0 answers

apache web server 502 error proxy error when direct to an image url

Good day, I have an Apache web server, and I configure ProxyPass it to my application server. Everything is work unless the connection to the image in application server. I will hit 502 for the request to image url. The following is my configuration…
0
votes
2 answers

nginx proxy server 502 Bad Gateway

First of all, forgive me if I say something stupid, I have no experience with server administration but I've been assigned this task. For our webapp we want to set up a proxy server so that clients owning domains of their own can point to our proxy…
dabadaba
  • 101
  • 1
  • 3
-1
votes
0 answers

centOS 7 nginx 502 bad gateway error

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 400 to 500 visitors a day, im using unmanaged…
cezar
  • 1
  • 2