Open MODUSCarstenScholling opened 1 week ago
@freddydk I cannot proof this is a BCContainerHelper issue, but it took me hours already to explain this to myself. I cannot imagine how to explain this to anyone else not familiar with BCCH, PS, and BC.
Currently on vacation - but you can try a few things. Remove-BcContainerSession before entering the loop with publishing apps - this removes prior "state" of stuff. Note that you can also specify -usepwsh on a specific Invoke-Script call - or you can try -useSession false.
I will look closer at the issue when I am back
Have some great days off!
Removing the session did not work. I was aware of -usePwsh $true, using this for now as a workaround.
Publish-NavApp in a container hangs running PS7 (after a prev. publish failure)
Publish-NavApp in a container hangs running PS7. But this is dependent on other commands. I have added a script below to repro. It has to do with a failing publish of one app and a failing publish of another app depending on the previous failing app. But it is required to have the runtime creation. I have tried to reduce, but I failed.
The errors for the last app are never shown in the console. instead the command hangs for hours if not canceled and the error is pushed to the event log.
Due to the fact that we have 150 apps, not every combination work together. This is not known while we create runtime packages for every app and every supported platform. So there can be compiler errors due to obsoletions or similar stuff.
The result is shown in the table below. The process hangs always when usePwshForBc24 is false. But due to the other case with other issues #3575 and PowerShell/PowerShell#23982, we can not turn it on.
I have added the transcripts for every combination and the script to repro. If you need, I can provide
Scripts used to create container and cause the issue
The error or hang occurs when processing publishing of Tour Planning, after Packing Unit Mgt. failed already. The list of apps depends on each other.
Full output of scripts
CrashMe-Transcripts.zip