You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get an error page.
In the logs I can find an error and exception:
iacjenkins-jenkins-1 | 2024-12-11 08:43:25.734+0000 [id=192] WARNING o.j.plugins.oic.OicSecurityRealm#refreshExpiredToken: Failed to refresh expired token
iacjenkins-jenkins-1 | java.net.SocketTimeoutException: Read timed out
iacjenkins-jenkins-1 | at java.base/sun.nio.ch.NioSocketImpl.timedRead(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.nio.ch.NioSocketImpl.implRead(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.nio.ch.NioSocketImpl.read(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.nio.ch.NioSocketImpl$1.read(Unknown Source)
iacjenkins-jenkins-1 | at java.base/java.net.Socket$SocketInputStream.read(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.security.ssl.SSLSocketInputRecord.read(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(Unknown Source)
iacjenkins-jenkins-1 | at java.base/java.io.BufferedInputStream.fill(Unknown Source)
iacjenkins-jenkins-1 | at java.base/java.io.BufferedInputStream.read1(Unknown Source)
iacjenkins-jenkins-1 | at java.base/java.io.BufferedInputStream.implRead(Unknown Source)
iacjenkins-jenkins-1 | at java.base/java.io.BufferedInputStream.read(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
iacjenkins-jenkins-1 | at PluginClassLoader for oic-auth//com.nimbusds.oauth2.sdk.http.HTTPRequest.send(HTTPRequest.java:1016)
iacjenkins-jenkins-1 | Caused: java.net.SocketTimeoutException: Read timed out
iacjenkins-jenkins-1 | at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(Unknown Source)
iacjenkins-jenkins-1 | at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source)
iacjenkins-jenkins-1 | at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source)
iacjenkins-jenkins-1 | at java.base/java.security.AccessController.doPrivileged(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
iacjenkins-jenkins-1 | at java.base/java.net.HttpURLConnection.getResponseCode(Unknown Source)
iacjenkins-jenkins-1 | at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
iacjenkins-jenkins-1 | at PluginClassLoader for oic-auth//com.nimbusds.oauth2.sdk.http.HTTPRequest.send(HTTPRequest.java:1027)
iacjenkins-jenkins-1 | at PluginClassLoader for oic-auth//org.pac4j.oidc.credentials.authenticator.OidcAuthenticator.executeTokenRequest(OidcAuthenticator.java:198)
iacjenkins-jenkins-1 | at PluginClassLoader for oic-auth//org.pac4j.oidc.credentials.authenticator.OidcAuthenticator.refresh(OidcAuthenticator.java:177)
iacjenkins-jenkins-1 | Caused: org.pac4j.core.exception.TechnicalException
iacjenkins-jenkins-1 | at PluginClassLoader for oic-auth//org.pac4j.oidc.credentials.authenticator.OidcAuthenticator.refresh(OidcAuthenticator.java:179)
iacjenkins-jenkins-1 | at PluginClassLoader for oic-auth//org.pac4j.oidc.client.OidcClient.renewUserProfile(OidcClient.java:65)
iacjenkins-jenkins-1 | at PluginClassLoader for oic-auth//org.jenkinsci.plugins.oic.OicSecurityRealm.refreshExpiredToken(OicSecurityRealm.java:1419)
iacjenkins-jenkins-1 | at PluginClassLoader for oic-auth//org.jenkinsci.plugins.oic.OicSecurityRealm.handleTokenExpiration(OicSecurityRealm.java:1366)
iacjenkins-jenkins-1 | at PluginClassLoader for oic-auth//org.jenkinsci.plugins.oic.OicSecurityRealm$1.doFilter(OicSecurityRealm.java:861)
iacjenkins-jenkins-1 | at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:101)
iacjenkins-jenkins-1 | at io.jenkins.servlet.FilterChainWrapper$1.doFilter(FilterChainWrapper.java:28)
iacjenkins-jenkins-1 | at hudson.security.ChainedServletFilter2$1.doFilter(ChainedServletFilter2.java:94)
iacjenkins-jenkins-1 | at jenkins.security.AcegiSecurityExceptionFilter.doFilter(AcegiSecurityExceptionFilter.java:52)
iacjenkins-jenkins-1 | at hudson.security.ChainedServletFilter2$1.doFilter(ChainedServletFilter2.java:99)
iacjenkins-jenkins-1 | at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:54)
iacjenkins-jenkins-1 | at hudson.security.ChainedServletFilter2$1.doFilter(ChainedServletFilter2.java:99)
iacjenkins-jenkins-1 | at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:126)
iacjenkins-jenkins-1 | at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:120)
iacjenkins-jenkins-1 | at hudson.security.ChainedServletFilter2$1.doFilter(ChainedServletFilter2.java:99)
iacjenkins-jenkins-1 | at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:100)
iacjenkins-jenkins-1 | at hudson.security.ChainedServletFilter2$1.doFilter(ChainedServletFilter2.java:99)
iacjenkins-jenkins-1 | at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:110)
iacjenkins-jenkins-1 | at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:101)
iacjenkins-jenkins-1 | at hudson.security.ChainedServletFilter2$1.doFilter(ChainedServletFilter2.java:99)
iacjenkins-jenkins-1 | at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:227)
iacjenkins-jenkins-1 | at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:221)
iacjenkins-jenkins-1 | at hudson.security.ChainedServletFilter2$1.doFilter(ChainedServletFilter2.java:99)
iacjenkins-jenkins-1 | at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:98)
iacjenkins-jenkins-1 | at hudson.security.ChainedServletFilter2$1.doFilter(ChainedServletFilter2.java:99)
iacjenkins-jenkins-1 | at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:117)
iacjenkins-jenkins-1 | at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
iacjenkins-jenkins-1 | at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:63)
iacjenkins-jenkins-1 | at hudson.security.ChainedServletFilter2$1.doFilter(ChainedServletFilter2.java:99)
iacjenkins-jenkins-1 | at hudson.security.ChainedServletFilter2.doFilter(ChainedServletFilter2.java:111)
iacjenkins-jenkins-1 | at io.jenkins.servlet.FilterWrapper$2.doFilter(FilterWrapper.java:83)
iacjenkins-jenkins-1 | at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:101)
iacjenkins-jenkins-1 | at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:113)
iacjenkins-jenkins-1 | at io.jenkins.servlet.FilterWrapper$1.doFilter(FilterWrapper.java:42)
iacjenkins-jenkins-1 | at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:173)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.servlet.FilterHolder.doFilter(FilterHolder.java:202)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1638)
iacjenkins-jenkins-1 | at org.kohsuke.stapler.UncaughtExceptionFilter.doFilter(UncaughtExceptionFilter.java:26)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.servlet.FilterHolder.doFilter(FilterHolder.java:202)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1638)
iacjenkins-jenkins-1 | at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:86)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.servlet.FilterHolder.doFilter(FilterHolder.java:202)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1638)
iacjenkins-jenkins-1 | at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:31)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.servlet.FilterHolder.doFilter(FilterHolder.java:202)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1638)
iacjenkins-jenkins-1 | at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:38)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.servlet.FilterHolder.doFilter(FilterHolder.java:202)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1638)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.servlet.ServletHandler.doHandle(ServletHandler.java:526)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.nested.ScopedHandler.handle(ScopedHandler.java:127)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.security.SecurityHandler.handle(SecurityHandler.java:574)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.nested.HandlerWrapper.handle(HandlerWrapper.java:124)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.nested.ScopedHandler.nextHandle(ScopedHandler.java:197)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.nested.SessionHandler.doHandle(SessionHandler.java:609)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.nested.ScopedHandler.nextHandle(ScopedHandler.java:195)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.nested.ContextHandler.doHandle(ContextHandler.java:1035)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.nested.ScopedHandler.nextScope(ScopedHandler.java:164)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.servlet.ServletHandler.doScope(ServletHandler.java:483)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.nested.ScopedHandler.nextScope(ScopedHandler.java:162)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.nested.SessionHandler.doScope(SessionHandler.java:586)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.nested.ScopedHandler.nextScope(ScopedHandler.java:162)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.nested.ContextHandler.doScope(ContextHandler.java:956)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.nested.ScopedHandler.handle(ScopedHandler.java:125)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.nested.ContextHandler.handle(ContextHandler.java:1694)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.nested.HttpChannel$RequestDispatchable.dispatch(HttpChannel.java:1576)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.nested.HttpChannel.dispatch(HttpChannel.java:738)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.nested.HttpChannel.handle(HttpChannel.java:511)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.ee9.nested.ContextHandler$CoreContextHandler$CoreToNestedHandler.handle(ContextHandler.java:2862)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1060)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:549)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.server.Server.handle(Server.java:181)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.server.internal.HttpChannelState$HandlerInvoker.run(HttpChannelState.java:661)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.server.internal.HttpConnection.onFillable(HttpConnection.java:406)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:322)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:99)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:478)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:441)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:293)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.run(AdaptiveExecutionStrategy.java:201)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:311)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:979)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1209)
iacjenkins-jenkins-1 | at Jenkins Main ClassLoader//org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1164)
iacjenkins-jenkins-1 | at java.base/java.lang.Thread.run(Unknown Source)
Anything else?
This was working before. Unfortunatelly, I can't pin the exact time when it stopped working.
Are you interested in contributing a fix?
No response
The text was updated successfully, but these errors were encountered:
It might be the environment. How can I be sure? Sometimes it's enough to click on "Dashboard" again and to be logged in. Sometime, one needs to clear all cookies before login works again.
Is there a way to increase the read timeout? Can I configure some logging to shed some light on the "why"? Maybe Keycloaks response is to slow, but I don't know how it could be made faster, so I need Jenkins to be slower.
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
It's a docker deployment based on "jenkins/jenkins:lts-jdk21"
Reproduction steps
I've configured OIDC via CasC. The OIDC server is a Keycloak cluster:
Expected Results
The page loads and I can continue to work.
Actual Results
I get an error page.
In the logs I can find an error and exception:
Anything else?
This was working before. Unfortunatelly, I can't pin the exact time when it stopped working.
Are you interested in contributing a fix?
No response
The text was updated successfully, but these errors were encountered: