# Suddenly lost my ability to login to the console after upgrading to v21

**URL:** <https://forum.keycloak.org/t/suddenly-lost-my-ability-to-login-to-the-console-after-upgrading-to-v21/21574>\
**Category:** Configuring the server\
**Tags:** admin-console, authentication, oidc\
**Created:** [April 18, 2023, 2:27pm UTC](https://forum.keycloak.org/t/suddenly-lost-my-ability-to-login-to-the-console-after-upgrading-to-v21/21574 "2023-04-18T14:27:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![baldmageix](https://avatars.discourse-cdn.com/v4/letter/b/ecc23a/32.png) [@baldmageix](https://forum.keycloak.org/u/baldmageix)\
**Post date:** [April 18, 2023, 2:27pm UTC](https://forum.keycloak.org/t/suddenly-lost-my-ability-to-login-to-the-console-after-upgrading-to-v21/21574/1 "2023-04-18T14:27:12Z")

</div>

My root admin user can no longer log in to the admin security console, and regular users logging through a UI client’s browser flow can no longer log in either. I can use the same credentials to login using kcadm.sh just fine and have the correct permissions.

The error message from the UI is:

“Unexpected error when handling authentication request to identity provider.”

while logs are saying:

`{"timestamp":"2023-04-18T14:19:16.895Z","sequence":8835,"loggerClassName":"org.jboss.logging.Logger","loggerName":"org.keycloak.events","level":"WARN","message":"type=LOGIN_ERROR, realmId=master, clientId=security-admin-console, userId=null, ipAddress=<redacted>, error=invalid_user_credentials, auth_method=openid-connect, auth_type=code,`

stack trace

exception":{“refId”:1,“exceptionType”:“java.lang.NumberFormatException”,“message”:“For input string: "false"”,“frames”:[{“class”:“java.lang.NumberFormatException”,“method”:“forInputString”,“line”:67},{“class”:“java.lang.Integer”,“method”:“parseInt”,“line”:668},{“class”:“java.lang.Integer”,“method”:“parseInt”,“line”:786},{“class”:“org.keycloak.authentication.authenticators.sessionlimits.UserSessionLimitsAuthenticator”,“method”:“getIntConfigProperty”,“line”:104},{“class”:“org.keycloak.authentication.authenticators.sessionlimits.UserSessionLimitsAuthenticator”,“method”:“authenticate”,“line”:50},{“class”:“org.keycloak.authentication.DefaultAuthenticationFlow”,“method”:“processSingleFlowExecutionModel”,“line”:445},{“class”:“org.keycloak.authentication.DefaultAuthenticationFlow”,“method”:“processFlow”,“line”:249},{“class”:“org.keycloak.authentication.DefaultAuthenticationFlow”,“method”:“continueAuthenticationAfterSuccessfulAction”,“line”:179},{“class”:“org.keycloak.authentication.DefaultAuthenticationFlow”,“method”:“continueAuthenticationAfterSuccessfulAction”,“line”:184},{“class”:“org.keycloak.authentication.DefaultAuthenticationFlow”,“method”:“processAction”,“line”:157},{“class”:“org.keycloak.authentication.AuthenticationProcessor”,“method”:“authenticationAction”,“line”:985},{“class”:“org.keycloak.services.resources.LoginActionsService”,“method”:“processFlow”,“line”:323},{“class”:“org.keycloak.services.resources.LoginActionsService”,“method”:“processAuthentication”,“line”:294},{“class”:“org.keycloak.services.resources.LoginActionsService”,“method”:“authenticateInternal”,“line”:286},{“class”:“org.keycloak.services.resources.LoginActionsService”,“method”:“access$100”,“line”:111},{“class”:“org.keycloak.services.resources.LoginActionsService$1”,“method”:“runInternal”,“line”:266},{“class”:“org.keycloak.common.util.ResponseSessionTask”,“method”:“run”,“line”:67},{“class”:“org.keycloak.common.util.ResponseSessionTask”,“method”:“run”,“line”:44},{“class”:“org.keycloak.models.utils.KeycloakModelUtils”,“method”:“runJobInRetriableTransaction”,“line”:299},{“class”:“org.keycloak.services.resources.LoginActionsService”,“method”:“authenticate”,“line”:259},{“class”:“org.keycloak.services.resources.LoginActionsService”,“method”:“authenticateForm”,“line”:351},{“class”:“jdk.internal.reflect.NativeMethodAccessorImpl”,“method”:“invoke0”},{“class”:“jdk.internal.reflect.NativeMethodAccessorImpl”,“method”:“invoke”,“line”:77},{“class”:“jdk.internal.reflect.DelegatingMethodAccessorImpl”,“method”:“invoke”,“line”:43},{“class”:“java.lang.reflect.Method”,“method”:“invoke”,“line”:568},{“class”:“org.jboss.resteasy.core.MethodInjectorImpl”,“method”:“invoke”,“line”:170},{“class”:“org.jboss.resteasy.core.MethodInjectorImpl”,“method”:“invoke”,“line”:130},{“class”:“org.jboss.resteasy.core.ResourceMethodInvoker”,“method”:“internalInvokeOnTarget”,“line”:660},{“class”:“org.jboss.resteasy.core.ResourceMethodInvoker”,“method”:“invokeOnTargetAfterFilter”,“line”:524},{“class”:“org.jboss.resteasy.core.ResourceMethodInvoker”,“method”:“lambda$invokeOnTarget$2”,“line”:474},{“class”:“org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext”,“method”:“filter”,“line”:364},{“class”:“org.jboss.resteasy.core.ResourceMethodInvoker”,“method”:“invokeOnTarget”,“line”:476},{“class”:“org.jboss.resteasy.core.ResourceMethodInvoker”,“method”:“invoke”,“line”:434},{“class”:“org.jboss.resteasy.core.ResourceLocatorInvoker”,“method”:“invokeOnTargetObject”,“line”:192},{“class”:“org.jboss.resteasy.core.ResourceLocatorInvoker”,“method”:“invoke”,“line”:141},{“class”:“org.jboss.resteasy.core.ResourceLocatorInvoker”,“method”:“invoke”,“line”:32},{“class”:“org.jboss.resteasy.core.SynchronousDispatcher”,“method”:“invoke”,“line”:492},{“class”:“org.jboss.resteasy.core.SynchronousDispatcher”,“method”:“lambda$invoke$4”,“line”:261},{“class”:“org.jboss.resteasy.core.SynchronousDispatcher”,“method”:“lambda$preprocess$0”,“line”:161},{“class”:“org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext”,“method”:“filter”,“line”:364},{“class”:“org.jboss.resteasy.core.SynchronousDispatcher”,“method”:“preprocess”,“line”:164},{“class”:“org.jboss.resteasy.core.SynchronousDispatcher”,“method”:“invoke”,“line”:247},{“class”:“io.quarkus.resteasy.runtime.standalone.RequestDispatcher”,“method”:“service”,“line”:73},{“class”:“io.quarkus.resteasy.runtime.standalone.VertxRequestHandler”,“method”:“dispatch”,“line”:151},{“class”:“io.quarkus.resteasy.runtime.standalone.VertxRequestHandler”,“method”:“handle”,“line”:82},{“class”:“io.quarkus.resteasy.runtime.standalone.VertxRequestHandler”,“method”:“handle”,“line”:42},{“class”:“io.vertx.ext.web.impl.RouteState”,“method”:“handleContext”,“line”:1284},{“class”:“io.vertx.ext.web.impl.RoutingContextImplBase”,“method”:“iterateNext”,“line”:173},{“class”:“io.vertx.ext.web.impl.RoutingContextWrapper”,“method”:“next”,“line”:200},{“class”:“io.quarkus.vertx.http.runtime.StaticResourcesRecorder$2”,“method”:“handle”,“line”:84},{“class”:“io.quarkus.vertx.http.runtime.StaticResourcesRecorder$2”,“method”:“handle”,“line”:71},{“class”:“io.vertx.ext.web.impl.RouteState”,“method”:“handleContext”,“line”:1284},{“class”:“io.vertx.ext.web.impl.RoutingContextImplBase”,“method”:“iterateNext”,“line”:173},{“class”:“io.vertx.ext.web.impl.RoutingContextWrapper”,“method”:“next”,“line”:200},{“class”:“io.quarkus.vertx.http.runtime.VertxHttpRecorder$6”,“method”:“handle”,“line”:430},{“class”:“io.quarkus.vertx.http.runtime.VertxHttpRecorder$6”,“method”:“handle”,“line”:408},{“class”:“io.vertx.ext.web.impl.RouteState”,“method”:“handleContext”,“line”:1284},{“class”:“io.vertx.ext.web.impl.RoutingContextImplBase”,“method”:“iterateNext”,“line”:173},{“class”:“io.vertx.ext.web.impl.RoutingContextWrapper”,“method”:“next”,“line”:200},{“class”:“org.keycloak.quarkus.runtime.integration.web.QuarkusRequestFilter”,“method”:“lambda$createBlockingHandler$0”,“line”:82},{“class”:“io.quarkus.vertx.core.runtime.VertxCoreRecorder$14”,“method”:“runWith”,“line”:576},{“class”:“org.jboss.threads.EnhancedQueueExecutor$Task”,“method”:“run”,“line”:2449},{“class”:“org.jboss.threads.EnhancedQueueExecutor$ThreadBody”,“method”:“run”,“line”:1478},{“class”:“org.jboss.threads.DelegatingRunnable”,“method”:“run”,“line”:29},{“class”:“org.jboss.threads.ThreadLocalResettingRunnable”,“method”:“run”,“line”:29},{“class”:“io.netty.util.concurrent.FastThreadLocalRunnable”,“method”:“run”,“line”:30},{“class”:“java.lang.Thread”,“method”:“run”,“line”:833}]}}
