Users redirected to Login page periodically...
Using Github as our auth, we're seeing that there is some randomness to when users are redirected to the login page. Sometimes it will be tens of minutes after they logged in last, and othertimes they'll be logged in for a day. We also see them get the login page any time there is any kind of intermittent error in the coder backend.
I'd like to have some more predictabiliity here... what can we do to tune the length of our developer login sessions and improve their resilience?
3 Replies
<#1365391419514294414>
Category
Help needed
Product
Coder (v2)
Platform
macOS
Logs
Please post any relevant logs/error messages.
This is incredibly frustrating for users... Here's an example of what just happened to me.
1. 6:42:06 - I logged in with a window and started poking around.
2. 6:42:37 - I used another window to go to the same endpoint... and I got prompted to log in! Why?
Looking at the logs, we can see the order of operations:
I got logged it looks like due to a postgres connection error:
pq: unable to read message kind
i'm not sure how you could tune session duration but this should not happen at all
so even if you did it's most likely due to a server error
are you using postgresql-ha?
if yes, are you able to check that the multiple postgres nodes are on the same coalition version?