OrleansDashboard icon indicating copy to clipboard operation
OrleansDashboard copied to clipboard

OrleanDashboard is not working with Orleans 3.7.1

Open NicolasLiaoRan opened this issue 10 months ago • 5 comments

We updated orlean component to version 3.7.1,orlean dashboard component also had been updated to version 3.1.0 But we found orlean dashboard is not working,how to solve it? Our framework is .Net Core 3.1

this is our code for loading dashboard .UseDashboard(options => { options.CounterUpdateIntervalMs = 30000; })

Especially,we found it's working fine with orlean version equal or below 3.5.1. So counld you help us to solve it with orlean 3.7.1.

Thanks

NicolasLiaoRan avatar Aug 14 '23 03:08 NicolasLiaoRan

Thanks for reporting this!

Could you explain how it doesn't work - does the dashboard not start? Do you get an error?

richorama avatar Aug 14 '23 09:08 richorama

In our program,dashboard is basic config just like your introduce,just port is customize,such as *: 8066 After we start our program,whatever debug or product environment,dashboard can not show,we checked monitor and confirmed the port is listened,and there is no error message Even AppDomain.CurrentDomain.UnhandledException can not catch any problem. Without any change of code and configs,just checkout orlean to 3.5.1,it works fine.

NicolasLiaoRan avatar Aug 16 '23 02:08 NicolasLiaoRan

Not sure if it is the same issue?

I am using orleans 3.7.1 + dashboard 3.6.2(selfHost=false), I got a lot of errors on the front-end

Refused to apply inline style because it violates the following Content Security Policy directive: "default-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-uskZECO0t/V7BmNS9lzi/Tx9F4MMPY4GQ7pfoMB2Nqw='), or a nonce ('nonce-...') is required to enable inline execution. Note also that 'style-src' was not explicitly set, so 'default-src' is used as a fallback.

image

clement128 avatar Aug 23 '23 10:08 clement128

Your problem may be in local network,I have test the same version as you(3.7.1 for orlean and 3.6.2 for orleandashboard),when I worked in local network or private environment, occured the same problem as you.But if I changed it in public network ,it's work fine. But I still don't know why it's unavailiable in .Net Core 3.1 with orlean in 3.7.1 and dashboard in 3.1.0.

NicolasLiaoRan avatar Aug 25 '23 06:08 NicolasLiaoRan

Ok I think the issue is because I enable CSP in my web server.

clement128 avatar Sep 04 '23 07:09 clement128