HangfireIO / Hangfire

An easy way to perform background job processing in .NET and .NET Core applications. No Windows Service or separate process required
https://www.hangfire.io
Other
9.33k stars 1.69k forks source link

1.7.5 Dashboard #1474

Open christan-duplicate opened 5 years ago

christan-duplicate commented 5 years ago

Unable to refresh the statistics: the server responded with 403 (Forbidden). Try reloading the page manually, or wait for automatic reload that will happen in a minute.

jmazurpl commented 5 years ago

Same here. We run Hangfire Pro 1.7.5 (redis) on two servers behind a loadbalancer. It looks like if we login to the dashboard on first server then if the stats requests goes to second server it reponds with 403.

odinserj commented 5 years ago

Dashboard in that version simply began to show errors instead of silently ignoring them. Looks like your servers have different machine keys or other configuration issues with DataProtection package – Dashboard UI is just a middleware and depends on ASP.NET (Core) app configuration.

jmazurpl commented 5 years ago

@odinserj Thanks for the answer. Setting same mchine key on both servers solved the issue.

sabiland commented 5 years ago

Lately I see that quite randomly happens (when I check dashboard) that Dashboard shows this message (though Hangfire continues to run jobs normally), but after some time everything is again ok.

hangfire Unable to refresh the statistics: the server responded with 500 (Internal Server Error). Try reloading the page manually, or wait for automatic reload that will happen in a minute.

I am using latest stable Hangfire for NET core.

ipatalas commented 1 year ago

@odinserj Thanks for the answer. Setting same mchine key on both servers solved the issue.

@jmazurpl If you use .NET Core then how did you set it up? 
It used to be simple back in the days with old .NET Framework but now it seems like you need to implement Data Protection API and store the keys in a shared storage. Is this how you did that?