Questions tagged [bad-gateway]

Bad gateway refers to http error 502 which is mean that a server which is try to fulfill the client request received an invalid response from upstream server

Bad gateway refers to http error 502 which is mean that a server which is try to fulfill the client request received an invalid response from upstream server.

For more information look for this article: https://www.lifewire.com/502-bad-gateway-error-explained-2622939

167 questions
29
votes
2 answers

Docker Swarm Windows Worker with Traefik returns Gateway Timeout

The objective is to get a mixed OS Docker swarm running using Linux servers and Windows 10 Machines running Docker For Windows Currently Windows workers are theoretically supported on mixed os swarms provided the --endpoint-mode flag is set to…
Matt Hawes
  • 291
  • 2
  • 7
26
votes
3 answers

Traefik > "Bad gateway" (error 502) for some containers

I meet some problems using traefik with docker and I don't know why. With some containers, it's works like a charm and for other ones, I have an error when I try to access to these ones : Bad gateway (error 502). Here is my traefik.toml : # Service…
Alextoch
  • 263
  • 1
  • 3
  • 5
14
votes
10 answers

Traefik Bad Gateway

I've got some strange issue. I have following setup: one docker-host running traefik as LB serving multiple sites. sites are most php/apache. HTTPS is managed by traefik. Each site is started using a docker-compose YAML containing the…
x4k3p
  • 1,598
  • 2
  • 22
  • 42
10
votes
3 answers

New Laravel (Homestead) installation: 502 Bad Gateway - *Refresh* - the website is displayed correctly

I tried to setup a local Laravel project. So I decided to use the Homestead vagrant box. After I installed the whole thing like in this Tutorial I was looking forward to see the result in the browser: The first dispay was a nginx 502 Bad Gateway…
Orcaplans
  • 103
  • 1
  • 5
8
votes
2 answers

"502 bad gateway" - 1MB limit static page served from AWS Lambda to Application Load Balancer

When accessing our static webpage hosted on an ALB served by a Lambda, we get a 502 bad gateway error. In the ALB logs, we can see that the error is that our Lambda response is larger than 1MB. We want to continue using an Application Load Balancer…
7
votes
4 answers

How to fix 502 Bad Gateway NGINX error while deploying a django app on AWSEB command line?

I have been trying to deploy a Django application on awsebcli. immediately I enter the eb open command I get 502 Bad Gateway NGINX error in return on my web browser. Please I need assistance on how to fix this error, for a better view and…
7
votes
1 answer

What does the nginx 502 559 error code mean?

I'm getting a "502 559" error in my nginx error logs. I know that the 502 means "bad gateway". What does the 559 mean?
user2023861
  • 8,030
  • 9
  • 57
  • 86
7
votes
1 answer

502 bad gateway mvc core app on CentOS

I made a website in MVC Core and tried to publish it to the web on a CentOS 7 VPS. It runs well, when I curl it it responds. Then i installed nginx and it showed the default page, when trying it from my computer. Then i changed nginx.conf to the…
Robert
  • 201
  • 1
  • 7
6
votes
0 answers

How to force retry when an apt install has failed ? APT::Acquire::Retries does not seem to work

I am working with a corporate repository mirroring canonical repository. I suspect that this corporate repository is not reliable, because I have sporadic failures such as: Failed to fetch ... 502 Bad Gateway [IP: ...] Failed to fetch ... 404 …
6
votes
1 answer

traefik 502 bad gateway after a certain time

Problem I'm running traefik to serve a python django app inside an docker container. The app is running without problems over https or http. After a unspecific time (under an hour) traefik logs says "502 Bad Gateway" and my nginx and uwsgi logs dont…
triras
  • 61
  • 3
5
votes
0 answers

serverless on aws lambda got 502 error of Internal server error

I try to use serverless with aws lambda service. my serverless.yml is: service: webpack-4-example # Add the serverless-webpack plugin plugins: - serverless-webpack - serverless-offline provider: name: aws runtime: nodejs8.10 region:…
user504909
  • 9,119
  • 12
  • 60
  • 109
4
votes
0 answers

Nodejs Axios get request with 502 Bad Gateway response for some sites

Hi I'm developing a small Node JS script for downloading to local files images from differents weather sat/radar sites. For exapmple https://radar.weather.gov/ridge/lite/KBYX_loop.gif when I open this url in my browser it opens perfectly the gif…
4
votes
1 answer

Can't publish my Python packe to PyPi - Bad Gateway

I am currently trying to publish a Python package on PyPi. I have built the package and the command twine check dist/* has also run successfully. Now when I try to upload it via Twine, I get a 502 Bad Gateway Error: Received "502: Bad Gateway"…
Plebo13
  • 99
  • 1
  • 6
4
votes
0 answers

Azure Logic App FTP Copy File gives BadGateway

I have a Logic App that triggers when a Blob is added or modified. The next action is to Copy file to FTP. This only works when we edit the FTP connection and delete the port. When this runs manually it works fine. After a few minutes, the API…
shanabus
  • 12,989
  • 6
  • 52
  • 78
3
votes
0 answers

502 Bad Gateway nginx error while uploading large file

I am getting 502 Bad Gateway error when I tried to upload larger size file, greater than 500MB. I have added below annotation to my ingress.yaml file, but still it doesn't work. I have deployed nginx with the help of kubernetes. …
SVD
  • 385
  • 4
  • 24
1
2 3
11 12