首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Azure服务结构激活错误

Azure服务结构激活错误
EN

Stack Overflow用户
提问于 2016-06-17 23:24:54
回答 1查看 15.5K关注 0票数 19

将我的一个应用程序部署到Service Fabric Cluster失败,并触发了不健康评估,错误事件为:There was an error during CodePackage activation.The service host terminated with exit code:3762504530

但是,在部署应用程序的节点上,健康状态指示:The application was activated successfully.

有没有办法获得关于错误事件的更详细的报告?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-06-18 01:46:02

在这种情况下,我通常会通过RDP连接到受影响的节点,并执行以下操作:

  • Check Console-Out / Console-Error logs:Service Fabric将控制台输出(如果通过ServiceManifest.xml中的<ConsoleRedirection>启用)和错误存储在日志文件夹中。在您的DEV集群上,这应该是C:\SfDevCluster\Data\_App\Node.x\<ApplicationTypeFolder>\log。在Azure的默认安装中,它应该是D:\SvcFab\_App\<ApplicationTypeFolder>\log
  • EventLog:.NET exceptions有时会出现在“应用程序”日志中,但是Service Fabric也有自己的子文件夹,其中可能包含有用的events.
  • PerfView:PerfView是一个非常强大的工具来监控.NET事件(Windows的事件跟踪)。由于.NET异常被记录为ETW事件,因此PerfView可能会向您显示有用的异常。这里有一个快速教程:

代码语言:javascript
复制
- Download and run [PerfView](https://github.com/Microsoft/perfview/blob/master/documentation/Downloading.md)
- Go to "Collect -> Collect". De-Select "Merge". 
- Click "Start Collection". 
- Now kill your Service Fabric Service through Process Explorer, in case it is running. Moments later, Service Fabric will start it again. 
- If your service is not running, re-deploy your service.
- After the service failed, press "Stop collection" in PerfView. 
- Now double-click on "Events" in the left tree - this will open all recorded ETW events. 
- Search for "Microsoft-Windows-DotNETRuntime/Exception/Start" and double click on it. 
- You should now see all .NET exceptions that occurred, ordered by time.

票数 31
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37885213

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档