简体   繁体   English

Azure Web 应用程序是 503 服务不可用。 我如何让它恢复运行?

[英]Azure web app is 503 Service Unavailable. How do I get it back running?

Our website has been hosted on Azure for a few years.我们的网站已经在 Azure 上托管了几年。 Tonight it is throwing 503 Service unavailable errors.今晚它抛出 503 服务不可用错误。 I cannot even load a url to a .jpg file.我什至无法将 url 加载到 .jpg 文件中。 I have restarted the app and still nothing loads from the website.我已经重新启动了应用程序,但仍然没有从网站加载任何内容。 I cannot buy Azure support because I have bought and cancelled Azure support in the past.我无法购买 Azure 支持,因为我过去购买并取消了 Azure 支持。 We are a 3 person business and depend on our small website and it is down and I don't know what to do.我们是一个 3 人的企业,依赖于我们的小型网站,它已经关闭,我不知道该怎么办。 None of the trace logs make any sense to me.任何跟踪日志对我来说都没有任何意义。

I think 503 could mean that you reached a quota and Azure now respond with a 503 for requests.我认为 503 可能意味着您已达到配额,Azure 现在以 503 响应请求。 So I would check the Quotas section within your App Service Plan.因此,我会检查您的应用服务计划中的配额部分。 Also check: Troubleshoot HTTP errors of "502 bad gateway" and "503 service unavailable" in Azure App Service另请查看: Azure 应用服务中“502 错误网关”和“503 服务不可用”的 HTTP 错误疑难解答

There are several things you can do to help remedy the situation.您可以做几件事来帮助纠正这种情况。

  • Restart the application (please indicate what it is that will help us)重新启动应用程序(请说明对我们有什么帮助)

  • Restart the instance that the application is running on.重新启动运行应用程序的实例。

  • Restore from a previous working backup of the site.从站点的先前工作备份恢复。

You should also add more information to your post so we can help, like what application you are using eg Apache, Nginx ect.您还应该在您的帖子中添加更多信息,以便我们提供帮助,例如您使用的应用程序,例如 Apache、Nginx 等。

I've also had a similar problem.我也有类似的问题。 I had two deployment slots and in the first slot (production) which I had the latest code and in the second slot, I've missed deploying the latest code and configured traffic as 60-40 which gave me hard time finding it.我有两个部署槽,在第一个槽(生产)中我有最新的代码,在第二个槽中,我错过了部署最新代码并将流量配置为 60-40,这让我很难找到它。

Once I've set 100% to the production slot it started working.一旦我将 100% 设置为生产槽,它就开始工作了。

Just thought to share this in case it could be useful if you come across the same stuff in the future.只是想分享一下,以防您将来遇到相同的东西时会有所帮助。

For us it was a result of the remote debugger.对我们来说,这是远程调试器的结果。 Disabling remote debugger and restarting the app service fixed the 503 error.禁用远程调试器并重新启动应用服务修复了 503 错误。 I think one dev was remote-debugging while another was deploying the app and that seems to have caused an issue under the hood of the app service that broke port binding (we were seeing a stack track in logs about failing to bind to port).我认为一个开发人员在进行远程调试,而另一个开发人员正在部署应用程序,这似乎在应用程序服务的底层造成了一个问题,该问题破坏了端口绑定(我们在日志中看到了关于未能绑定到端口的堆栈跟踪)。

For me it was "Path mappings" in "Configuration".对我来说,它是“配置”中的“路径映射”。

As soon as i added a new Azure Storage Mount, the application broke.一旦我添加了一个新的 Azure Storage Mount,应用程序就崩溃了。

Setting my Storage account -> Networking, to "Enabled from all networks" fixed the issue.将我的存储帐户 -> 网络设置为“从所有网络启用”解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM