Post-Upgrade-Questions

After upgrading from 2.12.2 to 3.7.10 I have a few lingering issues/questions:

  1. It sometimes takes dashboards multiple times to start. It seems like it has something to do with either session variables or runspaces. I initialize a number of session variables to $null on dashboard startup and those show up with path not found errors in the logs. The final error before the dashboard fails to start is always about the inability to allocate a runspace. I’ve increased runspaces for my environment to 512, so I don’t think there should be any resource scarcity there.

  2. Element behavior is a little different. I have an auth-dependent UD-Dynamic that builds either a card with a login prompt or a page-specific footer based on whether login has been processed successfully or not. In PSU 2.12 when the login card was not present (after successful login) it was not drawn at all and the page reflowed to use that space. In PSU 3.7 it appears there is still some whitespace allocated at the top of my page left over from the circular UD-Progress that spins as the login processes. Example below. On further inspection it looks like it might be some element of the toolbar/footer?
    neato-1
    neato-2
    neato-3

Failed start

Waiting for dashboard information...
Dashboard information received. Starting dashboard.
Creating services.
C:\Program Files (x86)\Universal\Modules\Universal\Universal.psd1
Startup: Cannot find path 'session:user' because it does not exist.
Startup: at <ScriptBlock>, E:\PSURepository\dashboards\Roles\Roles.ps1: line 5
at <ScriptBlock>, <No file>: line 1
Startup:    at System.Management.Automation.SessionStateInternal.SetVariable(VariablePath variablePath, Object newValue, Boolean asValue, Boolean force, CommandOrigin origin)
   at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
   at System.Management.Automation.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Startup: Cannot find path 'session:loggedInUser' because it does not exist.
Startup: at <ScriptBlock>, E:\PSURepository\dashboards\Roles\Roles.ps1: line 6
at <ScriptBlock>, <No file>: line 1
Startup:    at System.Management.Automation.SessionStateInternal.SetVariable(VariablePath variablePath, Object newValue, Boolean asValue, Boolean force, CommandOrigin origin)
   at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
   at System.Management.Automation.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Startup: Cannot find path 'session:loggedInUserIsAdmin' because it does not exist.
Startup: at <ScriptBlock>, E:\PSURepository\dashboards\Roles\Roles.ps1: line 7
at <ScriptBlock>, <No file>: line 1
Startup:    at System.Management.Automation.SessionStateInternal.SetVariable(VariablePath variablePath, Object newValue, Boolean asValue, Boolean force, CommandOrigin origin)
   at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
   at System.Management.Automation.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Startup: Cannot find path 'session:opCredential' because it does not exist.
Startup: at <ScriptBlock>, E:\PSURepository\dashboards\Roles\Roles.ps1: line 8
at <ScriptBlock>, <No file>: line 1
Startup:    at System.Management.Automation.SessionStateInternal.SetVariable(VariablePath variablePath, Object newValue, Boolean asValue, Boolean force, CommandOrigin origin)
   at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
   at System.Management.Automation.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Startup: Cannot find path 'session:azCredential' because it does not exist.
Startup: at <ScriptBlock>, E:\PSURepository\dashboards\Roles\Roles.ps1: line 9
at <ScriptBlock>, <No file>: line 1
Startup:    at System.Management.Automation.SessionStateInternal.SetVariable(VariablePath variablePath, Object newValue, Boolean asValue, Boolean force, CommandOrigin origin)
   at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
   at System.Management.Automation.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Startup: Cannot find path 'session:loginSuccess' because it does not exist.
Startup: at <ScriptBlock>, E:\PSURepository\dashboards\Roles\Roles.ps1: line 11
at <ScriptBlock>, <No file>: line 1
Startup:    at System.Management.Automation.SessionStateInternal.SetVariable(VariablePath variablePath, Object newValue, Boolean asValue, Boolean force, CommandOrigin origin)
   at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
   at System.Management.Automation.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Startup: Cannot find path 'session:loginStep' because it does not exist.
Startup: at <ScriptBlock>, E:\PSURepository\dashboards\Roles\Roles.ps1: line 13
at <ScriptBlock>, <No file>: line 1
Startup:    at System.Management.Automation.SessionStateInternal.SetVariable(VariablePath variablePath, Object newValue, Boolean asValue, Boolean force, CommandOrigin origin)
   at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
   at System.Management.Automation.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Startup: Cannot find path 'session:departments' because it does not exist.
Startup: at <ScriptBlock>, E:\PSURepository\dashboards\Roles\Roles.ps1: line 16
at <ScriptBlock>, <No file>: line 1
Startup:    at System.Management.Automation.SessionStateInternal.SetVariable(VariablePath variablePath, Object newValue, Boolean asValue, Boolean force, CommandOrigin origin)
   at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
   at System.Management.Automation.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Startup: Cannot find path 'session:combinedManagedGroups' because it does not exist.
Startup: at <ScriptBlock>, E:\PSURepository\dashboards\Roles\Roles.ps1: line 18
at <ScriptBlock>, <No file>: line 1
Startup:    at System.Management.Automation.SessionStateInternal.SetVariable(VariablePath variablePath, Object newValue, Boolean asValue, Boolean force, CommandOrigin origin)
   at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
   at System.Management.Automation.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Failed to get dashboard. There is no Runspace available to run scripts in this thread. You can provide one in the DefaultRunspace property of the System.Management.Automation.Runspaces.Runspace type. The script block you attempted to invoke was: Get-Module System.Management.Automation.PSInvalidOperationException
Inner Exception: 
Dashboard configuration complete.

Successful start

Waiting for dashboard information...
Dashboard information received. Starting dashboard.
Creating services.
C:\Program Files (x86)\Universal\Modules\Universal\Universal.psd1
Startup: Cannot find path 'session:user' because it does not exist.
Startup: at <ScriptBlock>, E:\PSURepository\dashboards\Roles\Roles.ps1: line 5
at <ScriptBlock>, <No file>: line 1
Startup:    at System.Management.Automation.SessionStateInternal.SetVariable(VariablePath variablePath, Object newValue, Boolean asValue, Boolean force, CommandOrigin origin)
   at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
   at System.Management.Automation.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Startup: Cannot find path 'session:loggedInUser' because it does not exist.
Startup: at <ScriptBlock>, E:\PSURepository\dashboards\Roles\Roles.ps1: line 6
at <ScriptBlock>, <No file>: line 1
Startup:    at System.Management.Automation.SessionStateInternal.SetVariable(VariablePath variablePath, Object newValue, Boolean asValue, Boolean force, CommandOrigin origin)
   at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
   at System.Management.Automation.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Startup: Cannot find path 'session:loggedInUserIsAdmin' because it does not exist.
Startup: at <ScriptBlock>, E:\PSURepository\dashboards\Roles\Roles.ps1: line 7
at <ScriptBlock>, <No file>: line 1
Startup:    at System.Management.Automation.SessionStateInternal.SetVariable(VariablePath variablePath, Object newValue, Boolean asValue, Boolean force, CommandOrigin origin)
   at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
   at System.Management.Automation.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Startup: Cannot find path 'session:opCredential' because it does not exist.
Startup: at <ScriptBlock>, E:\PSURepository\dashboards\Roles\Roles.ps1: line 8
at <ScriptBlock>, <No file>: line 1
Startup:    at System.Management.Automation.SessionStateInternal.SetVariable(VariablePath variablePath, Object newValue, Boolean asValue, Boolean force, CommandOrigin origin)
   at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
   at System.Management.Automation.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Startup: Cannot find path 'session:azCredential' because it does not exist.
Startup: at <ScriptBlock>, E:\PSURepository\dashboards\Roles\Roles.ps1: line 9
at <ScriptBlock>, <No file>: line 1
Startup:    at System.Management.Automation.SessionStateInternal.SetVariable(VariablePath variablePath, Object newValue, Boolean asValue, Boolean force, CommandOrigin origin)
   at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
   at System.Management.Automation.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Startup: Cannot find path 'session:loginSuccess' because it does not exist.
Startup: at <ScriptBlock>, E:\PSURepository\dashboards\Roles\Roles.ps1: line 11
at <ScriptBlock>, <No file>: line 1
Startup:    at System.Management.Automation.SessionStateInternal.SetVariable(VariablePath variablePath, Object newValue, Boolean asValue, Boolean force, CommandOrigin origin)
   at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
   at System.Management.Automation.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Startup: Cannot find path 'session:loginStep' because it does not exist.
Startup: at <ScriptBlock>, E:\PSURepository\dashboards\Roles\Roles.ps1: line 13
at <ScriptBlock>, <No file>: line 1
Startup:    at System.Management.Automation.SessionStateInternal.SetVariable(VariablePath variablePath, Object newValue, Boolean asValue, Boolean force, CommandOrigin origin)
   at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
   at System.Management.Automation.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Startup: Cannot find path 'session:departments' because it does not exist.
Startup: at <ScriptBlock>, E:\PSURepository\dashboards\Roles\Roles.ps1: line 16
at <ScriptBlock>, <No file>: line 1
Startup:    at System.Management.Automation.SessionStateInternal.SetVariable(VariablePath variablePath, Object newValue, Boolean asValue, Boolean force, CommandOrigin origin)
   at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
   at System.Management.Automation.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Startup: Cannot find path 'session:combinedManagedGroups' because it does not exist.
Startup: at <ScriptBlock>, E:\PSURepository\dashboards\Roles\Roles.ps1: line 18
at <ScriptBlock>, <No file>: line 1
Startup:    at System.Management.Automation.SessionStateInternal.SetVariable(VariablePath variablePath, Object newValue, Boolean asValue, Boolean force, CommandOrigin origin)
   at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
   at System.Management.Automation.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Starting scheduler.
Dashboard configuration complete.
Product: PowerShell Universal
Version: 3.7.10
1 Like