Web App突然产生错误 [英] Web App produced errors all of a sudden

查看:153
本文介绍了Web App突然产生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用户看到的错误:

Azure表示没有来自Azure或Azure的错误报告/警报,也没有运行状况问题.然而,我们的应用程序遇到了上述问题,被USERS检测到!这是无法接受的!为什么,为什么?

No error reports / alerts from Azure or within Azure, no Health Issues according to Azure. Yet our application encountered above issue, detected by USERS! This is unacceptable! How, Why? 


西欧地区

应用程序突然间产生了500个错误


Region West Europe

All of the sudden the application created 500 errors

如您所见,它始于世界标准时间01:47 PM,即11:47 UTC时间

我启用了诊断日志.收到的最后一个应用程序日志日志是那个时间,2018-10-15 11:47:22.514 +00:00确切地说


 然后再次收到的第一个日志是在2018-10-15 12:39:37.173 +00:00

As you can see, it starts at 01:47 PM, that is 11:47 UTC time

I have Diagnostic logs enabled. The last Application Logging log received is at that time,2018-10-15 11:47:22.514 +00:00  to be exact


 Then the first log received again is at 2018-10-15 12:39:37.173 +00:00

2018-10-15 12:39:37.173 +00:00

2018-10-15 12:39:37.173 +00:00

[信息] http://Microsoft.AspNetCore.Hosting .Internal.WebHost:请求启动HTTP/1.1 GET http://localhost/ 
2018-10-15 12:39:44.718 +00:00 [Information] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker:执行动作方法Babywatcher.Web.Controllers.HomeController.Index(Babywatcher.Web)与参数((null) )-ModelState有效
2018-10-15 12:41:17.064 +00:00 [Information] Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor:执行ViewResult,运行路径为/Views/Home/Index.cshtml的运行视图.

当我手动重新启动应用程序时,此日志文件确实包含一些其他.csv文件,这些文件仅包含在2018-10-15T12:37:38的关闭请求.并且一切正常.因此,看来根本没有日志记录为什么记录500错误.

[Information] http://Microsoft.AspNetCore.Hosting .Internal.WebHost: Request starting HTTP/1.1 GET http://localhost/  
2018-10-15 12:39:44.718 +00:00 [Information] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Executing action method Babywatcher.Web.Controllers.HomeController.Index (Babywatcher.Web) with arguments ((null)) - ModelState is Valid
2018-10-15 12:41:17.064 +00:00 [Information] Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor: Executing ViewResult, running view at path /Views/Home/Index.cshtml.

This log file does has some additional .csv files that just contain the shutdown request at 2018-10-15T12:37:38 when I manually restarted the app. And all works fine again. So it looks like here are NO LOGS at all why a 500 error is logged.

查看我FTP目录中的Web服务器日志,我确实看到了详细的错误页面报告. html页面显示以下信息:

Looking at the Web Server logs within my FTP directory, I do see detailed error page reports. The html page displays the following information:

HTTP错误502.3-错误的网关

尝试路由请求时出现连接错误.

推荐答案

很抱歉听到您在为Web应用程序提供服务时遇到错误.我猜这些是您的日志的来源-但我想确定-您有 已启用应用程序日志记录?

Sorry to hear that you ran into an error serving your web application. I'm guessing these are where your logs are from - but I wanted to make sure - do you have Application Logging enabled? 

Microsoft帮助您进行故障排除的最佳方法是需要一张票才能查看日志.在您的应用程序日志中,您应该看到失败的请求本身.从您所写的内容来看,在这种情况下,平台似乎并没有发生故障.我会 希望能看到资源健康报告.

The best way for Microsoft to help you troubleshoot will require a ticket to take a look into the logs. In your application logs, you should see the failed request itself. From what you've written, it doesn't appear the platform failed in this case. I would expect to see a Resource Health report if that was the case.

让我知道您是否能够提取一些更详细的日志.

Let me know if you're able to extract some more detailed logs. 


这篇关于Web App突然产生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆