简体   繁体   English

Azure 服务启动日志

[英]Azure service startup logs

I have asp.net core 2.2 application running on azure service.我在 azure 服务上运行了 asp.net core 2.2 应用程序。 It was working fine before but now when I deploy it I get this error: An error occurred while starting the application.它之前工作正常,但现在当我部署它时An error occurred while starting the application.此错误: An error occurred while starting the application. I don't see anything in application log files because this happens before application starts.我在应用程序日志文件中看不到任何内容,因为这发生在应用程序启动之前。 So, my question is, is there any azure log file which I can take look at to see what is causing the error?所以,我的问题是,是否有任何 azure 日志文件我可以查看以查看导致错误的原因?

Many startup errors will not see any useful information in the log.许多启动错误不会在日志中看到任何有用的信息。 At this time you can use the kudu tool (this is the method provided by MS, this is the doc ), which is located under the Under Development Tools / Advanced Tools.这时候就可以使用kudu工具(这是MS提供的方法,这是doc ),它位于Under Development Tools/Advanced Tools下。

How to use kudu tools: kudu工具使用方法:

Open Kudo打开工藤

Go to DEBUG CONSOLE (Top Menu), then CMD转到调试控制台(顶部菜单),然后 CMD

CD site光盘站点

CD wwwroot光盘 wwwroot

DIR to list contents. DIR 列出内容。 Find your dll in the list to ensure you are in the right location.在列表中找到您的 dll,以确保您位于正确的位置。

DOTNET your.dll DOTNET your.dll

For more information about how to use the kudu tools, have a look of this doc:有关如何使用 kudu 工具的更多信息,请查看此文档:

https://social.technet.microsoft.com/wiki/contents/articles/36467.understanding-the-azure-app-service-editor.aspx https://social.technet.microsoft.com/wiki/contents/articles/36467.understanding-the-azure-app-service-editor.aspx

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

相关问题 需要重新启动的Azure云服务启动任务 - Azure Cloud Service Startup Task that requires reboot Azure C# 应用程序中的服务故障日志 - Azure Service fault logs in C# application 在Azure中收集Service Fabric群集日志 - Collect Service Fabric Cluster logs in Azure 在Owin Startup类中使用OnMessage订阅Azure Service Bus - Subscribing to Azure Service Bus using OnMessage in Owin Startup class Azure云服务不会将辅助角色日志写入WADLogsTable - Azure Cloud Service won't write Worker Role Logs to WADLogsTable 如何从应用服务将日志发送到 Azure 上的 EventHub - How to send logs to EventHub on Azure from App Service 在哪里可以找到 Azure 应用服务的 docker 容器日志 - Where can I find docker container logs for Azure App Service Azure 启动时的功能管理 - Azure Feature Management on startup 从启动脚本调用的C#程序访问Azure服务配置 - Access Azure Service config from C# program called by a startup script .net 5 登录到 azure 应用程序服务协议 stream 在 startup.cs 之外不起作用 - .net 5 logging to azure app service protocol stream not working outside startup.cs
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM