Product: PowerShell Universal
Version: 3.7.4
My Team recently upgraded our PS Universal from 3.5.5 to 3.7.4, which has caused a lot of job failure issues.
I am receiving in about every other job execution, Did not receive port from client process. Previously this was a rare maybe once a day issue.
These jobs are running using the non-integrated Powershell 5.1 instance. The only changes in our environment are that we have a custom module for a few SQL related commands.
Jobs kick off, and then fail with the above mentioned error.
I’ve increased the job timeout timer to 240 seconds, but unfortunately this does not help the issue, and only increases the time it takes to fail.
Viewing Diagnostics under general settings shows some items that may be related:
[1673639946925] - AuthenticationScheme: "Cookies" was successfully authenticated.
[1673639946933] - AuthenticationScheme: "OpenIdConnect" was successfully authenticated.
[1673639946940] - Attempting to bind parameter '"id"' of type '"System.Int64"' using the name '"id"' in request data ...
[1673639946950] - Done attempting to bind parameter '"id"' of type '"System.Int64"'.
[1673639946961] - Attempting to bind parameter '"timestamp"' of type '"System.Boolean"' using the name '"timestamp"' in request data ...
[1673639946970] - Done attempting to bind parameter '"timestamp"' of type '"System.Boolean"'.
[1673639946979] - Attempting to bind parameter '"format"' of type '"System.String"' using the name '""' in request data ...
[1673639946987] - Could not find a value in the request with name '""' for binding parameter '"format"' of type '"System.String"'.
[1673639946995] - Done attempting to bind parameter '"format"' of type '"System.String"'.
[1673639947208] - AuthenticationScheme: "Cookies" was successfully authenticated.
as well as
[1673640129308] - Finished groom job.
[1673640131241] - Error executing job 2982: Did not receive port from client process. at UniversalAutomation.Services.GrpcExecutionService.ExecuteScript(Job job, ExecutionEnvironment environment, ExecuteScriptRequest request, ExecutionCallback executionCallback) in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\Automation\GrpcExecutionService.cs:line 87
at UniversalAutomation.ExecutionService.ExecutePowerShell(Script script, IEnumerable`1 parameters, Job job, Schedule schedule, ExecutionCallback callback) in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\Automation\ExecutionService.cs:line 719
at UniversalAutomation.ExecutionService.TryExecute(Job job, Schedule schedule) in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\Automation\ExecutionService.cs:line 368
at UniversalAutomation.ExecutionService.Execute(Job job, Schedule schedule) in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\Automation\ExecutionService.cs:line 215 System.Exception
[1673640131351] - AuthenticationScheme: "Cookies" was successfully authenticated.
I’ve been unable to find a probable cause for why this may be occuring. My only theory is possibly the custom module, but that worked fine in 3.5.5. Any help would be greatly appreciated, as this has had a significant impact on automation efforts.