Open christan-duplicate opened 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.
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.
@odinserj Thanks for the answer. Setting same mchine key on both servers solved the issue.
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.
@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?
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.