将我的一个应用程序部署到Service Fabric Cluster失败,并触发了不健康评估,错误事件为:There was an error during CodePackage activation.The service host terminated with exit code:3762504530
但是,在部署应用程序的节点上,健康状态指示:The application was activated successfully.
有没有办法获得关于错误事件的更详细的报告?
发布于 2016-06-18 01:46:02
在这种情况下,我通常会通过RDP连接到受影响的节点,并执行以下操作:
ServiceManifest.xml中的<ConsoleRedirection>启用)和错误存储在日志文件夹中。在您的DEV集群上,这应该是C:\SfDevCluster\Data\_App\Node.x\<ApplicationTypeFolder>\log。在Azure的默认安装中,它应该是D:\SvcFab\_App\<ApplicationTypeFolder>\log- 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.
https://stackoverflow.com/questions/37885213
复制相似问题