Azure Service Fabric Activation Error

There was an error during CodePackage activation.The service host terminated with exit code:3762504530 failure to deploy one of my applications to Service Fabric Cluster and caused an unhealthy rating with the error message: There was an error during CodePackage activation.The service host terminated with exit code:3762504530

However, in the node where the application is deployed, a health state indicates: The application was activated successfully.

Is there a way to get a more detailed error report?

+8
azure azure-deployment azure-service-fabric
source share
1 answer

I usually connect via RDP to the affected node and do the following things in this case:

  • Check console / logout / console logs . The Fabric service stores console output (if enabled through <ConsoleRedirection> in ServiceManifest.xml ) and errors in the log folder. On a DEV cluster, this should be C:\SfDevCluster\Data\_App\Node.x\<ApplicationTypeFolder>\log . When installed by default in Azure, it should be D:\SvcFab\_App\<ApplicationTypeFolder>\log

  • Eventlog .NET exceptions sometimes appear in the Application log, but Service Fabric also has its own subfolder, which may contain useful events.

  • PerfView : PerfView is a very powerful tool for monitoring ETW events (event tracing for Windows). Because .NET exceptions are logged as ETW events, PerfView can show you useful exceptions. Here is a quick tutorial:

    • Download and run PerfView
    • Go to "Collection β†’ Collection." Deselect "Merge".
    • Click "Build".
    • Now kill your service desk through Process Explorer if it is running. After a while, Service Fabric will start it again.
    • If your service is not running, redeploy the service.
    • After the service fails, click Stop Collection in PerfView.
    • Now double-click "Events" in the left tree - this will open all recorded ETW events.
    • Find "Microsoft-Windows-DotNETRuntime / Exception / Start" and double-click on it.
    • You should now see all the .NET exceptions that occurred, sorted by time.
+16
source share

All Articles