Repository navigation
REFRESH_TOKEN_ERROR - After upgrading from 21.1 to 26.2.4 #40711
Unanswered
bhavyaravilla
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I accidently upgraded the Keycloak image from 21.1 to 26.2.4 in my production environment. I had upgraded 21.1 to 24.0.4 in Dev and then to 26.2.4. The only change we made in Values is to add https:// to the KC_HOSTNAME and KC_HOSTNAME_ADMIN
The tag was already in prod and accidently made a direct upgrade from 21.1 to 26.2.4 in production.
The backend works fine. But when I try to login to the admin console it keeps redirecting for some reason and doesn't load anything at all.
But the same thing works fine in incognito mode. I tried deleting cookies in my browser. Still the same. I also tried using a new browser. The page opens fine in the first attempt. But when I refresh the page it starts redirecting again.
I see this error in keycloak pod logs. Please help me find the issue.
{"timestamp":"2025-06-25T10:05:21.104618928Z","sequence":10589,"loggerClassName":"org.jboss.logging.Logger","loggerName":"org.keycloak.events","level":"WARN","message":"type=\"REFRESH_TOKEN_ERROR\", realmId=\"0c0656f6-87bb-xxx-xxx-xxxxxxe063a\", realmName=\"master\", clientId=\"security-admin-console\", userId=\"null\", ipAddress=\"xx.x.x.xx\", error=\"invalid_token\", reason=\"Invalid refresh token\", grant_type=\"refresh_token\", client_auth_method=\"client-secret\"","threadName":"executor-thread-69","threadId":277,"mdc":{},"ndc":"","hostName":"keycloak-7cbd6f97d7-xxxxx","processName":"/usr/lib/jvm/java-21-openjdk-21.0.7.0.6-1.el9.x86_64/bin/java","processId":1}All reactions