Product: PowerShell Universal
Version: 3.9.1
Morning all,
I have been trying to carefully run up my instances of PSU and have run into a problem with starting Dashboards. The logs are reporting that PSU doesn’t have access to certain resources.
These are the steps I have taken so far in the config of the instances.
- Changed Script Root
- Setup Git (I think, it seemed too easy. It’s requiring the edit to be pressed and committed before the changes take effect)
- Setup an App Token
- Enabled HTTPS with a self-signed cert
- Setup OIDC
- Configured group claims on the Admin and Users roles (This is when it started happening, I believe)
I have since removed both the group ID’s from the roles and restarted but still having the same issue. I have also checked the windows security on all the PSU folders (Program Files / Program Data folders). The service is running under the local system account.
This has kind of stopped my deployment in it’s track so any help would be greatly apricated! I really don’t want to start from scratch again - haha.
EDIT
Sorry I forgot I also installed PS7 and let PSU detect the environment, then set both Scripts and Endpoint default envi as the new PS7 envi.
EDIT 2:
It seems it was that PS7 Envi sorry… If someone could still point me in the right direction on what could be causing this that would still be great thanks! Would love to make sure everything is run from the latest PS version. By chance was it because I installed the PS7 Core version?
EDIT 3:*
Not fixed sorry. Changing the envi back to PS5 and removing the PS7 Envi allowed the dashboards to start up but now it’s erroring from the dashboard itself.
Last Edit: Ok, the issue was I had a Typo in the Default Dashboard Theme. Instaed of AntDesign
I had AntDesignP
. Still unsure as to why my PS7 envi did not work though. Hoping because I installed the wrong version.
It it throwing this when / if I am able to finally get the dashboard to start.
Error rendering dashboard
This error is not expected. Please contact Ironman Software support.
Error: Objects are not valid as a React child (found: Error: MUI: The color (primary) provided to augmentColor(color) is invalid.color.main
should be a string, butnull
was provided instead. Did you intend to use one of the following approaches? import { green } from “@mui/material/colors”; const theme1 = createTheme({ palette: { primary: green, } }); const theme2 = createTheme({ palette: { primary: { main: green[500] }, } });). If you meant to render a collection of children, use an array instead.
at pre at div at https://localhost:5001/DevOps_Dashboard/index.807ba816bfab2d3934f9.bundle.js:190:66 at div at https://localhost:5001/DevOps_Dashboard/index.807ba816bfab2d3934f9.bundle.js:190:66 at Paper (https://localhost:5001/DevOps_Dashboard/index.807ba816bfab2d3934f9.bundle.js:24339:82) at https://localhost:5001/DevOps_Dashboard/index.807ba816bfab2d3934f9.bundle.js:190:66 at Alert (https://localhost:5001/DevOps_Dashboard/index.807ba816bfab2d3934f9.bundle.js:7632:83) at Dashboard (https://localhost:5001/DevOps_Dashboard/index.807ba816bfab2d3934f9.bundle.js:108206:22) at Route (https://localhost:5001/DevOps_Dashboard/index.807ba816bfab2d3934f9.bundle.js:146241:29) at Switch (https://localhost:5001/DevOps_Dashboard/index.807ba816bfab2d3934f9.bundle.js:146447:29) at div at Router (https://localhost:5001/DevOps_Dashboard/index.807ba816bfab2d3934f9.bundle.js:145872:30) at BrowserRouter (https://localhost:5001/DevOps_Dashboard/index.807ba816bfab2d3934f9.bundle.js:145497:35) at App (https://localhost:5001/DevOps_Dashboard/index.807ba816bfab2d3934f9.bundle.js:79924:197)
Changed URL to ‘PSUServerHostName’
2023-06-02 01:28:46.674 +00:00 [INF] Server PSUServerHostName:2932:5eb0d168 successfully announced in 12.1165 ms
2023-06-02 01:28:46.682 +00:00 [INF] Server PSUServerHostName:2932:5eb0d168 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler…
2023-06-02 01:28:46.684 +00:00 [INF] Application started. Hosting environment: Production; Content root path: C:\Program Files (x86)\Universal
2023-06-02 01:28:46.903 +00:00 [INF] Server PSUServerHostName:2932:5eb0d168 all the dispatchers started
2023-06-02 01:28:47.311 +00:00 [INF] Request starting HTTP/1.1 POST https://PSUServerHostName:5001/notificationhub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0
2023-06-02 01:28:47.362 +00:00 [INF] CORS policy execution failed.
2023-06-02 01:28:47.362 +00:00 [INF] Request origin https://PSUServerHostName:5001 does not have permission to access the resource.
2023-06-02 01:28:48.715 +00:00 [INF] Executing endpoint ‘/notificationhub/negotiate’
2023-06-02 01:28:48.737 +00:00 [INF] Executed endpoint ‘/notificationhub/negotiate’
2023-06-02 01:28:48.739 +00:00 [INF] Request finished HTTP/1.1 POST https://PSUServerHostName:5001/notificationhub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0 - 200 316 application/json 1431.9058ms
2023-06-02 01:28:49.475 +00:00 [INF] Request starting HTTP/2 POST https://PSUServerHostName:5001/notificationhub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0
2023-06-02 01:28:49.498 +00:00 [INF] CORS policy execution failed.
2023-06-02 01:28:49.498 +00:00 [INF] Request origin https://PSUServerHostName:5001 does not have permission to access the resource.
2023-06-02 01:28:49.508 +00:00 [INF] Executing endpoint ‘/notificationhub/negotiate’
2023-06-02 01:28:49.511 +00:00 [INF] Executed endpoint ‘/notificationhub/negotiate’
2023-06-02 01:28:49.512 +00:00 [INF] Request finished HTTP/2 POST https://PSUServerHostName:5001/notificationhub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0 - 200 316 application/json 36.7367ms
2023-06-02 01:28:49.579 +00:00 [INF] Request starting HTTP/1.1 GET https://PSUServerHostName:5001/notificationhub?id=HpmXw9tY7olJIOteDIWd7A - -
2023-06-02 01:28:49.582 +00:00 [INF] CORS policy execution failed.
2023-06-02 01:28:49.583 +00:00 [INF] Request origin https://PSUServerHostName:5001 does not have permission to access the resource.
2023-06-02 01:28:49.590 +00:00 [INF] Executing endpoint ‘/notificationhub’
2023-06-02 01:28:50.541 +00:00 [INF] Request starting HTTP/1.1 GET https://PSUServerHostName:5001/notificationhub?id=s9LIPinW7c4itW_FEmSIdw - -
2023-06-02 01:28:50.543 +00:00 [INF] CORS policy execution failed.
2023-06-02 01:28:50.543 +00:00 [INF] Request origin https://PSUServerHostName:5001 does not have permission to access the resource.
2023-06-02 01:28:50.548 +00:00 [INF] Executing endpoint ‘/notificationhub’