Currently running 3 Dashboards on my instance. One (which is the production dashboard), does not auto-start when the Powershell Universal service starts up. I can manually start it no problem. 1 of the dev-dashboards is the same code as the prod (with a couple of extra’s in it). I tried looking through the logs, but could not find anything. Not sure if anyone could point me to anything specific so I could provide more information, or if anyone else has had similar issues.
I’d suggest turning up logging to Debug for the Default log level. We do some additional logging about starting the dashboard processes as well as any STDOUT produced by those processes.
I turned on debugging, dashboard started.
I reverted to normal logging, dashboard did not start.
I turned on debugging, dashboard started.
I reverted to normal logging, dashboard did not start.
I turned on debugging, dashboard started.
I reverted to normal logging, dashboard DID start.
I restarted the service, and the dashboard started.
But here is something from the debug log…
2021-09-22T14:32:06.2476162-04:00 [DBG] Loading framework from asset directory: C:\ProgramData\PowerShellUniversal\Dashboard\Frameworks\UniversalDashboard\2.9.9 (67d454a5)
2021-09-22T14:32:07.3733712-04:00 [DBG] The specified RequiredModules entry 'Universal' in the module manifest 'C:\ProgramData\PowerShellUniversal\Dashboard\Frameworks\UniversalDashboard\2.9.9\UniversalDashboard.psd1' is invalid. Try again after updating this entry with valid values. (2e6cdc60)
2021-09-22T14:32:07.3889463-04:00 [DBG] Loading framework from asset directory: C:\ProgramData\PowerShellUniversal\Dashboard\Frameworks\UniversalDashboard\3.5.1 (67748671)
2021-09-22T14:32:07.5191331-04:00 [DBG] The specified RequiredModules entry 'Universal' in the module manifest 'C:\ProgramData\PowerShellUniversal\Dashboard\Frameworks\UniversalDashboard\3.5.1\UniversalDashboard.psd1' is invalid. Try again after updating this entry with valid values. (4df3cbe3)
2021-09-22T14:32:07.5201421-04:00 [DBG] Loading framework from asset directory: C:\ProgramData\PowerShellUniversal\Dashboard\Frameworks\UniversalDashboard\3.6.0 (c1480138)
2021-09-22T14:32:07.6544343-04:00 [DBG] The specified RequiredModules entry 'Universal' in the module manifest 'C:\ProgramData\PowerShellUniversal\Dashboard\Frameworks\UniversalDashboard\3.6.0\UniversalDashboard.psd1' is invalid. Try again after updating this entry with valid values. (a61c6ebf)
2021-09-22T14:32:07.7751769-04:00 [DBG] The specified RequiredModules entry 'UniversalDashboard' in the module manifest 'C:\ProgramData\PowerShellUniversal\Dashboard\Components\UniversalDashboard.Charts\1.3.2\UniversalDashboard.Charts.psd1' is invalid. Try again after updating this entry with valid values. (e063b8b7)
2021-09-22T14:32:07.9060633-04:00 [DBG] The specified RequiredModules entry 'UniversalDashboard' in the module manifest 'C:\ProgramData\PowerShellUniversal\Dashboard\Components\UniversalDashboard.CodeEditor\1.1.1\UniversalDashboard.CodeEditor.psd1' is invalid. Try again after updating this entry with valid values. (05afda7a)
2021-09-22T14:32:08.0184935-04:00 [DBG] The specified RequiredModules entry 'UniversalDashboard' in the module manifest 'C:\ProgramData\PowerShellUniversal\Dashboard\Components\UniversalDashboard.Map\1.0\UniversalDashboard.Map.psd1' is invalid. Try again after updating this entry with valid values. (a1910263)
2021-09-22T14:32:08.1922699-04:00 [DBG] Reading configuration file licenses.ps1 (54ebd27c)
2021-09-22T14:32:08.2869995-04:00 [DBG] Activating online license key... (110fa7ec)
2021-09-22T14:32:11.2204400-04:00 [DBG] Reading configuration file accessControls.ps1 (de0353aa)
2021-09-22T14:32:11.2210774-04:00 [DBG] Reading configuration file tags.ps1 (502a9e15)
2021-09-22T14:32:11.2235811-04:00 [DBG] Reading configuration file settings.ps1 (25ccd83a)
2021-09-22T14:32:11.2347450-04:00 [DBG] Reading configuration file variables.ps1 (fed1013d)
2021-09-22T14:32:11.2592621-04:00 [DBG] Reading configuration file roles.ps1 (eb4aef62)
2021-09-22T14:32:11.2835589-04:00 [DBG] Reading configuration file environments.ps1 (64b51cd2)
2021-09-22T14:32:11.5029781-04:00 [DBG] Reading configuration file scripts.ps1 (30814263)
2021-09-22T14:32:11.5797898-04:00 [DBG] Reading configuration file authentication.ps1 (5f7879e3)
2021-09-22T14:32:11.5806455-04:00 [DBG] Reading configuration file endpoints.ps1 (3751b85e)
2021-09-22T14:32:11.8396315-04:00 [DBG] Adding endpoint: (POST) /cdetails (9872fd85)
2021-09-22T14:32:11.8412433-04:00 [DBG] Reading configuration file dashboards.ps1 (6293f74f)
2021-09-22T14:32:11.8734695-04:00 [DBG] Reading configuration file schedules.ps1 (37071f11)
2021-09-22T14:32:11.9143249-04:00 [DBG] Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe with command line -NoProfile -Command "& { [System.Reflection.Assembly]::LoadFrom('D:\Universal\Host\Host.dll') | Out-Null; [UniversalHost.AgentService]::StartDashboard(49380, 22660, 49378) }" (b76f622e)
2021-09-22T14:32:11.9143608-04:00 [INF] Starting job using Process. (4d0a5a43)
2021-09-22T14:32:11.9645074-04:00 [INF] Scheduling script 4 on schedule 0 0 * * * with time zone America/New_York. (5aaaad6e)
2021-09-22T14:32:11.9668777-04:00 [INF] Scheduling job '1' with schedule 0 0 * * * on time zone America/New_York (d1ac76b2)
2021-09-22T14:32:12.0206280-04:00 [DBG] Reading configuration file publishedFolders.ps1 (024d01a3)
2021-09-22T14:32:12.0210751-04:00 [DBG] Reading configuration file ratelimits.ps1 (9a933eb1)
2021-09-22T14:32:12.0215216-04:00 [DBG] Reading configuration file triggers.ps1 (37bab43c)
2021-09-22T14:32:12.0219152-04:00 [DBG] Reading configuration file loginPage.ps1 (2804e6ac)
2021-09-22T14:32:12.0960686-04:00 [DBG] Deploying embedded assets (e8761142)
2021-09-22T14:32:12.0962077-04:00 [DBG] Loading framework in: D:\Universal\UniversalDashboard\Frameworks\v2 (56c7b7e4)
2021-09-22T14:32:12.1199000-04:00 [DBG] Registered SignalR Protocol: "json", implemented by "Microsoft.AspNetCore.SignalR.Protocol.JsonHubProtocol". (c8f2a7df)
2021-09-22T14:32:12.2523454-04:00 [INF] Now listening on: "http://[::]:80" (d826f4b8)
2021-09-22T14:32:12.2523774-04:00 [INF] Now listening on: "https://[::]:443" (d826f4b8)
2021-09-22T14:32:12.2524326-04:00 [DBG] Loaded hosting startup assembly "Universal.Server" (3d5180d3)
2021-09-22T14:32:12.2537102-04:00 [INF] Application started. Hosting environment: "Production"; Content root path: "D:\Universal\" (9029d6f8)
2021-09-22T14:32:12.2537496-04:00 [DBG] Hosting started (e6def423)
2021-09-22T14:32:12.4103779-04:00 [DBG] The specified RequiredModules entry 'Universal' in the module manifest 'D:\Universal\UniversalDashboard\Frameworks\v2\UniversalDashboard.psd1' is invalid. Try again after updating this entry with valid values. (4cb7bc92)
2021-09-22T14:32:12.4116509-04:00 [DBG] Dashboard framework already exists. (f14ac959)
2021-09-22T14:32:12.4116739-04:00 [DBG] Loading framework in: D:\Universal\UniversalDashboard\Frameworks\v3 (a0754b42)
2021-09-22T14:32:12.5800036-04:00 [DBG] The specified RequiredModules entry 'Universal' in the module manifest 'D:\Universal\UniversalDashboard\Frameworks\v3\UniversalDashboard.psd1' is invalid. Try again after updating this entry with valid values. (d3f0e21a)
2021-09-22T14:32:12.5810706-04:00 [DBG] Dashboard framework already exists. (f14ac959)
2021-09-22T14:32:12.5811953-04:00 [DBG] Loading component in: D:\Universal\UniversalDashboard\Components\UniversalDashboard.Charts (dee374dd)
2021-09-22T14:32:13.9477941-04:00 [DBG] The specified RequiredModules entry 'UniversalDashboard' in the module manifest 'D:\Universal\UniversalDashboard\Components\UniversalDashboard.Charts\UniversalDashboard.Charts.psd1' is invalid. Try again after updating this entry with valid values. (3e617c65)
2021-09-22T14:32:13.9496651-04:00 [DBG] Dashboard component already exists. (4cfe4bd7)
2021-09-22T14:32:13.9496752-04:00 [DBG] Loading component in: D:\Universal\UniversalDashboard\Components\UniversalDashboard.CodeEditor (501113ac)
2021-09-22T14:32:15.8870765-04:00 [DBG] The specified RequiredModules entry 'UniversalDashboard' in the module manifest 'D:\Universal\UniversalDashboard\Components\UniversalDashboard.CodeEditor\UniversalDashboard.CodeEditor.psd1' is invalid. Try again after updating this entry with valid values. (1597affb)
2021-09-22T14:32:15.8881577-04:00 [DBG] Dashboard component already exists. (4cfe4bd7)
2021-09-22T14:32:15.8881674-04:00 [DBG] Loading component in: D:\Universal\UniversalDashboard\Components\UniversalDashboard.Map (1fd7a997)
2021-09-22T14:32:15.9347091-04:00 [DBG] Agent Output: 1c1bb340-93fc-4404-bebe-c339dcb9dfa2 (b23ade37)
2021-09-22T14:32:15.9904051-04:00 [DBG] Agent Output: t0k1poE8p__hJu1RLi6~HIGlk816-1bai8 (9bdb7c30)
2021-09-22T14:32:16.0192727-04:00 [DBG] The specified RequiredModules entry 'UniversalDashboard' in the module manifest 'D:\Universal\UniversalDashboard\Components\UniversalDashboard.Map\UniversalDashboard.Map.psd1' is invalid. Try again after updating this entry with valid values. (7498ba48)
2021-09-22T14:32:16.0202668-04:00 [DBG] Dashboard component already exists. (4cfe4bd7)
2021-09-22T14:32:16.0202763-04:00 [DBG] Loading component in: D:\Universal\UniversalDashboard\Components\UniversalDashboard.Style (afcda995)
2021-09-22T14:32:16.0349212-04:00 [DBG] Agent Output: 644ee707-2edc-41d2-959a-887310d2fe2a (f99fa833)
That is weird. Seems like some sort of timing issue. I’ve seen those errors about loading modules before but it hasn’t prevented my dashboards from starting.
This is gonna sound weird but what’s in your dashboards.ps1? Is the production dashboard listed first? I’m just wonder if its trying to start that one before something is available and then when it gets to the dev dashboards the stuff is available.