502网关错误解决_“ HTTP 502错误的网关”错误和解决方案

502网关错误解决

502网关错误解决

The HyperText Transfer Protocol (HTTP) 502 Bad Gateway the server error is generated when an invalid response is received from a server. “502 Bad Gateway” is an HTTP status code that is defined and standardized with RFC. The “502 Bad Gateway” status code is defined in RFC 10.5.3.

当从服务器接收到无效响应时, HyperText Transfer Protocol (HTTP) 502 Bad Gateway服务器错误生成。 “ 502 Bad Gateway”是使用RFC定义和标准化的HTTP状态代码。 “ 502 Bad Gateway”状态代码在RFC 10.5.3中定义。

什么是“ HTTP 502错误网关”错误? (What Is “HTTP 502 Bad Gateway” Error?)

HTTP uses status codes in order to provide information about the HTTP request between client and servers. Every HTTP request will return a HTTP status code like successful, failed, warning etc. The web is complex where some servers can make HTTP request to other servers too. “HTTP 502 Bad Gateway” is a status code is mainly returned from a server where this server make some request to other server and can not get information and “HTTP 502 Bad Gateway” is returned to the user.

HTTP使用状态代码以便提供有关客户端和服务器之间的HTTP请求的信息。 每个HTTP请求都将返回HTTP状态代码,例如成功,失败,警告等。网络很复杂,有些服务器也可以向其他服务器发出HTTP请求。 “ HTTP 502错误网关”是主要从服务器返回的状态代码,该服务器向其他服务器发出请求并无法获取信息,并且“ HTTP 502错误网关”返回给用户。

“ HTTP 502错误网关”表达式 (“HTTP 502 Bad Gateway” Expressions)

Even the canonical name for the “HTTP 502 Bad Gateway” is used to express the error but there are other expressions to show this error. The following errors are generally used for the web.

即使使用“ HTTP 502错误网关”的规范名称也可以表示错误,但是还有其他表达式可以显示此错误。 以下错误通常用于网络。

  • 502 Bad Gateway

    502错误的网关
  • 502 Service Temporarily Overloaded

    502服务暂时超载
  • Error 502

    错误502
  • Temporary Error (502)

    暂时错误(502)
  • 502 Proxy Error

    502代理错误
  • 502 Server Error: The server encountered a temporary error and could not complete your request

    502服务器错误:服务器遇到临时错误,无法完成您的请求
  • HTTP 502

    HTTP 502
  • 502. That’s an error

    502.那是一个错误
  • Bad Gateway: The proxy server received an invalid response from an upstream server

    错误的网关:代理服务器收到来自上游服务器的无效响应
  • HTTP Error 502 – Bad Gateway

    HTTP错误502 –错误的网关
  • 502 Bad Gateway NGINX

    502错误的网关NGINX
  • A blank white screen

    黑屏

Also other than different applications, software, operating systems uses the web for different purposes and can get “HTTP 502 Bad Gateway” error and print in different forms.

此外,除了不同的应用程序之外,软件,操作系统还出于不同目的使用网络,并且会出现“ HTTP 502错误网关”错误并以不同形式打印。

LEARN MORE  How To Specify Host, Port and Protocol For Tcpdump?
了解更多信息如何为Tcpdump指定主机,端口和协议?

Windows Update requires to access th update servers which uses HTTP protocol to get information. The following error is returned which is related with the “HTTP 502 Bad Gateway” status code.

Windows Update需要访问使用HTTP协议获取信息的更新服务器。 返回以下错误,该错误与“ HTTP 502错误网关”状态代码相关。

0x80244021 error code or the message WU_E_PT_HTTP_STATUS_BAD_GATEWAY

Google provides a lot of web related services like Gmail, Google Search, Google Cloud, Google Drive Google Map etc. These service may return the “HTTP 502 Bad Gateway” error like below.

Google提供了许多与Web相关的服务,例如Gmail,Google搜索,Google Cloud,Google Drive Google Map等。这些服务可能会返回“ HTTP 502 Bad Gateway”错误,如下所示。

HTTP 502 Bad Gateway Error For Google Services
Google服务的HTTP 502错误网关错误

Linux Package Management command named “apt-get” uses HTTP in order to get recent package information and issue an “Error 502 Bad Gateway” error.

名为“ apt-get”Linux软件包管理命令使用HTTP来获取最新的软件包信息并发出“错误502 Bad Gateway”错误。

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/main/source/Sources  502  Bad Gateway [IP: 91.189.91.13 80]
HTTP 502 Bad Gateway Error For Ubuntu Apt-Get
Ubuntu Apt-Get的HTTP 502错误网关错误

Linux Yum is another package manager for RPM based distributions and the HTTP 502 Error is expressed like below.

Linux Yum是另一个用于基于RPM的发行版的程序包管理器,并且HTTP 502错误表示如下。

error was [Errno 14] HTTP Error 502: Bad Gateway
HTTP 502 Bad Gateway Error For Yum Command
HTTP 502错误的Yum命令网关错误

是什么原因导致“ HTTP 502错误的网关”错误?(What Cause “HTTP 502 Bad Gateway” Error?)

“HTTP 502 Bad Gateway” error is mainly related to the communication problems between intermediate servers. This means we have no control over this error.

“ HTTP 502错误网关”错误主要与中间服务器之间的通信问题有关。 这意味着我们无法控制此错误。

  • Browser Problem

    浏览器问题
  • DNS Problem

    DNS问题
  • Firewall Configuration

    防火墙配置
  • Internet Access

    互联网
  • Remote Website Problem

    远程网站问题
  • Server Overload

    服务器超载
  • Website Software Error

    网站软件错误

Microsoft IIS“ HTTP 502错误的网关”子状态信息(Microsoft IIS “HTTP 502 Bad Gateway” SubStatus Information)

Microsoft IIS version 7.0 and later provides more detailed information about the “HTTP 502 Bad Gateway” error. It provides sub status code like “502.1”, “502.2” where every sub status code provides a specific case. This sub status information is not standard and only provided by the Microsoft IIS server.

Microsoft IIS 7.0和更高版本提供了有关“ HTTP 502错误网关”错误的更多详细信息。 它提供子状态代码,如“ 502.1”,“ 502.2”,其中每个子状态代码都提供了特定的情况。 此子状态信息不是标准的,仅由Microsoft IIS服务器提供。

  • 502.1 – CGI application timeout.

    502.1 – CGI应用程序超时。
  • 502.2 – Bad gateway: Premature Exit.

    502.2 –错误的网关:过早退出。
  • 502.3 – Bad Gateway: Forwarder Connection Error (ARR).

    502.3 –网关错误:转发器连接错误(ARR)。
  • 502.4 – Bad Gateway: No Server (ARR).

    502.4 –网关错误:无服务器(ARR)。
LEARN MORE  Linux Lftp Client Tutorial For Ftp, Http, Sftp, Https, Ftps, Fish Potocols
了解更多有关Ltftp,Http,Sftp,Https,Ftps,Fish PotocolLinux Lftp客户端教程

如何修复/解决“ HTTP 502错误的网关”错误?(How To Fix /Solve “HTTP 502 Bad Gateway” Error?)

The “HTTP 502 Bad Gateway” error can be solved in different ways. Event the error is mainly related with the remote server or network there are some basic checks in order to fix or overcome this error.

可以通过不同方式解决“ HTTP 502错误网关”错误。 如果错误主要与远程服务器或网络有关,则存在一些基本检查以修复或克服此错误。

客户端解决方案 (Client Side Solutions)

Reload URL is the first and most practical way to solve this error. “F5” or refresh button of the web browser can be used. Actually this will not fix the problem directly but just make a check if the problem continue or not.

Reload URL是解决此错误的第一种也是最实用的方法。 可以使用Web浏览器的“ F5”或刷新按钮。 实际上,这不能直接解决问题,而只是检查问题是否继续。

Start New Session is another quick fix where previous sessions garbage will be omitted.

Start New Session是另一种快速修复方法,其中将忽略先前的会话垃圾。

Clear your browser cache where outdated or corrupted files that are stored in the browser will be removed which can cause “HTTP 502 Bad Gateway” error.

Clear your browser cache ,将删除其中存储在浏览Clear your browser cache中的过时或损坏的文件,这可能导致“ HTTP 502 Bad Gateway”错误。

Delete Cookies because previosuly stored cookies will use old values for an HTTP connection which can be cause of the “502 Bad Gateway” error.

Delete Cookies因为以前存储的Cookie将对HTTP连接使用旧值,这可能是“ 502 Bad Gateway”错误的原因。

Start Browsers in Safe/Private Mode which will omit previously craeted sessions and site preferences and prevent “502 Error”.

Start Browsers in Safe/Private ModeStart Browsers in Safe/Private Mode将忽略以前创建的会话和网站首选项,并防止出现“ 502错误”。

Try Different Browser where current browser may have problems. Try different browser like Google Chrome, Mozilla Firefox, Microsoft Edge, Opera, Internet Explorer, Safari etc.

在当前浏览器可能存在问题的地方Try Different Browser器”。 尝试使用其他浏览器,例如Google Chrome,Mozilla Firefox,Microsoft Edge,Opera,Internet Explorer,Safari等。

Disable Security Softwarewhere security software can block suspicious even legitimate action. Security software like Microsoft Defender, Kaspersky Endpoint Protection, Microsoft Forefront, TrendMicro Endpoint Protection etc. generally monitors network traffic and stops suspicious connections.

Disable Security Software ,因为安全软件可以阻止可疑甚至合法的行为。 像Microsoft Defender,Kaspersky Endpoint Protection,Microsoft Forefront,TrendMicro Endpoint Protection等安全软件通常会监视网络流量并停止可疑连接。

Restart Computer because some temporary configuration may prevent access to network and create “HTTP 502 Bad Gateway” error.

Restart Computer因为某些临时配置可能会阻止访问网络并产生“ HTTP 502 Bad Gateway”错误。

Restart Network Devices because they provide access to the internet and problem related with these devices will interrupt internet access which will cause “Bad Gateway Error”.

Restart Network Devices因为它们可以访问Internet,并且与这些设备相关的问题将中断Internet访问,从而导致“网关错误”。

Change DNS Server is related with your computer or router. Some “HTTP 502 Bad Gateway” errors are related with the DNS server errors or restrictions.

Change DNS Server与您的计算机或路由器相关。 某些“ HTTP 502错误网关”错误与DNS服务器错误或限制有关。

LEARN MORE  Apache Log Files
了解更多Apache日志文件

服务器/网络端解决方案(Server/Network Side Solutions)

Contact website owner is responsible for the website you want to access. The problem may be related with the website architecture where you can contact website owner for the problem.

Contact website owner负责您要访问的网站。 该问题可能与网站架构有关,您可以在其中与网站所有者联系以解决该问题。

Contact ISP because the internet connection is provided by the ISP where it can be responsible for the “502 Bad Gateway” error.

Contact ISP因为Internet连接是由ISP提供的,它可能导致“ 502 Bad Gateway”错误。

Check origin server where it can be down for the CDN architecture.

Check origin server在哪里可以关闭CDN体系结构。

Check Firewall Configuration and Logswhere server firewall can prevent some transfer between client or servers which will cause “HTTP 502 Bad Gateway” error.

Check Firewall Configuration and Logs ,其中服务器防火墙可以阻止客户端之间或服务器之间的某些传输,这将导致“ HTTP 502 Bad Gateway”错误。

Check Server Software where it may provide faulty responses or create unnecessary overload.

Check Server Software ,它可能会提供错误的响应或造成不必要的过载。

Check Server Services where services may be unreliable. If it is possible to restart the services and look for configuration changes.

Check Server Services服务可能不可靠的Check Server Services 。 如果可以重新启动服务并查找配置更改。

Check Database Server because slow queries slowdown the websites and cause sow responses which will end with timeout and “HTTP 502 Bad Gateway” error.

Check Database Server因为缓慢的查询会使网站变慢,并导致播种响应,并以超时和“ HTTP 502错误网关”错误结束。

Check Hosting Provider where there may a system or network problem related to the hosting which effects the web site.

Check Hosting Provider ,那里可能存在与影响网站的托管有关的系统或网络问题。

不同的“ HTTP 502错误网关”错误页面 (Different “HTTP 502 Bad Gateway” Error Pages)

Below we will list some popular services “HTTP 502 Bad Gateway” error pages.

下面我们将列出一些流行的服务“ HTTP 502 Bad Gateway”错误页面。

Cloudflare

云耀斑

HTTP 502 Bad Gateway Error For Cloudflare
Cloudflare的HTTP 502错误网关错误
HTTP 502 Bad Gateway Error For Cloudflare
HTTP 502 Cloudflare的网关错误错误

GoDaddy

去吧爸爸

HTTP 502 Bad Gateway Error For GoDaddy
GoDaddy的HTTP 502错误网关错误

Twitter

推特

HTTP 502 Bad Gateway Error For Twitter
Twitter的HTTP 502错误网关错误

Google

谷歌

HTTP 502 Bad Gateway Error For Google
Google的HTTP 502错误网关错误

Microsoft IIS

微软IIS

HTTP 502 Bad Gateway Error For IIS
IIS的HTTP 502网关错误

Nginx

Nginx的

HTTP 502 Bad Gateway Error For Nginx
Nginx的HTTP 502错误网关错误

翻译自: https://www.poftut.com/http-502-bad-gateway-error-and-solution/

502网关错误解决

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值