microsoft / service-fabric

Service Fabric is a distributed systems platform for packaging, deploying, and managing stateless and stateful distributed applications and containers at large scale.
https://docs.microsoft.com/en-us/azure/service-fabric/
MIT License
3.03k stars 401 forks source link

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

Open mwasplund opened 2 years ago

mwasplund commented 2 years ago

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

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


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

clausndk commented 1 year ago

We are having the same issue.

Azure Cluster version: 9.1.1390.9590

Anyone at MS seeing this?