service-fabric icon indicating copy to clipboard operation
service-fabric copied to clipboard

[BUG] Service Fabric Explorer reporting UnexpectedTermination for SetupEntryPoint bat script

Open mwasplund opened this issue 2 years ago • 1 comments

Describe the bug When using the SetupEntryPoint to call a batch script at startup the script will exit with status code 0 to indicate it successfully completed, however SFX is still showing these process exited events and Unexpected and marking them as errors. this makes it hard to track when the scripts are actually failing.

Area/Component: Monitoring?

To Reproduce Steps to reproduce the behavior:

  1. follow the steps outlined here to run a setup script: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-run-script-at-service-startup
  2. Navigate to SFX
  3. Note that the Setup.bat script is exiting with 0 and no std error output and is still shown as error:

Expected behavior I would expect the startup script to exit with status 0 to indicate a success and there should be no error events.

Observed behavior:

Screenshots image

Service Fabric Runtime Version: 9.0.*

Environment: Standalone but also on azure clusters

  • OS: Windows 11
  • Version 9.0.1048

If this is a regression, which version did it regress from? no


Assignees: /cc @microsoft/service-fabric-triage

mwasplund avatar Aug 16 '22 19:08 mwasplund

We are having the same issue.

Azure Cluster version: 9.1.1390.9590

Anyone at MS seeing this?

clausndk avatar Feb 23 '23 09:02 clausndk