Health Checks in PSU 4.0.0-beta1

Product: PowerShell Universal
Version: 4.0.0-beta1
Host: IIS (Server 2019)

The health checks report:

  1. The CPU utilisation of the VM as a very large number.

  2. IIS WebSocket Feature Enabled error with casting unsigned int to signed int.

    See the below in the logs

    [14:34:50 ERR] Health check failed: Unable to cast object of type 'System.UInt32' to type 'System.Int32'.
    System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.Int32'.
       at PowerShellUniversal.IISWebSocketCheck.Check(IServiceProvider serviceProvider) in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\Health\IISWebSocketCheck.cs:line 42
       at PowerShellUniversal.HealthCheckService.RunChecks() in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\Health\HealthCheckService.cs:line 38
    

This has been patched for tonight’s nightly build.

1 Like