Error: Failed to refresh authorization Follow
Hello everyboy,
We are a very small team, and We are having a blast with youtrack so far.
But, we do have a recurring problem. Very often We do receive this error.
The funny thing is that, if We do refresh the page the error disappears, "Try again" does nothing, "Postpone" just closes the window.
Our setup:
Server side - Youtrack 2022.2.51283 as a docker container behind Traefik reverse proxy v2.8
Client side - Windows 10 , Microsoft Edge latest version
Any ideas?
Thank you for your attention
Please sign in to leave a comment.
Hi!
I'm Sergey from the YouTrack team.
Thank you for contacting us. I'm happy to help you.
Firstly, regarding logouts, potential reasons and fixes — we have an article that covers a majority of the cases: https://youtrack-support.jetbrains.com/hc/en-us/articles/360000058770-I-keep-getting-logged-out-of-YouTrack
One of the logout reasons is an incorrect proxy setup. We don't have any official documentation for Traefik, so I can't share specific instructions. However, I recommend taking a look at the following doc: https://www.jetbrains.com/help/youtrack/server/Reverse-Proxy-Configuration.html. Specifically, it provides details about headers and how to pass them correctly. You need to make sure that it's implemented in your reverse proxy config as well. Or just move to the reverse proxy server we have the instructions for and copy them as is, just replacing data with yours.
If any questions appear, please let me know.
Thank you very much Sergey, I did infact missed some of the details when I was configuring Traefik.
I will try to implement it all and get back to you with what was wrong in my configuration, for the sake of shared knowledge.
Giacomo
Sure, thanks!
And if any questions appear, feel free to ask.
So I think I figured it out.
I am testing the setup right now, but the mentioned authorization error is gone, and browsing it's way faster.
I assume that who is reading this is somewhat familiar with Traefik version2 and above.
Here is what I've done.
I do have global http to https redirection so you won't see a label specifing that aspect, anyway, theese are my youtrack labels:
Thanks for the update. Happy to hear that you've resolved the issue!