-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Kubernetes 1.21
Helm 3
Charts have been forked from charts.jenkins.io
Plugins:
installPlugins:
- kubernetes:1.29.4
- workflow-aggregator:2.6
- git:4.7.1
- configuration-as-code:1.50
- ssh-credentials:1.18.1
- credentials-binding:1.24
- pipeline-model-extensions:1.8.4
- jsch:0.1.55.2
- git-client:3.7.1
- git-server:1.9
- workflow-cps-global-lib:2.19
- pipeline-model-definition:1.8.4
- credentials:2.4.1
- trilead-api:1.0.13
- gcp-secrets-manager-credentials-provider:0.2.6
- plain-credentials:1.7
- matrix-auth:2.6.6
Jenkins version 2.774
I'm using a pv/pvc which is in the same namespace as Jenkins.Kubernetes 1.21 Helm 3 Charts have been forked from charts.jenkins.io Plugins: installPlugins: - kubernetes:1.29.4 - workflow-aggregator:2.6 - git:4.7.1 - configuration-as-code:1.50 - ssh-credentials:1.18.1 - credentials-binding:1.24 - pipeline-model-extensions:1.8.4 - jsch:0.1.55.2 - git-client:3.7.1 - git-server:1.9 - workflow-cps-global-lib:2.19 - pipeline-model-definition:1.8.4 - credentials:2.4.1 - trilead-api:1.0.13 - gcp-secrets-manager-credentials-provider:0.2.6 - plain-credentials:1.7 - matrix-auth:2.6.6 Jenkins version 2.774 I'm using a pv/pvc which is in the same namespace as Jenkins.
When doing a fresh install using helm, the following is returned in the config-reload container log:
[2021-05-19 12:32:17] Starting collector[2021-05-19 12:32:17] Starting collector[2021-05-19 12:32:17] No folder annotation was provided, defaulting to k8s-sidecar-target-directory[2021-05-19 12:32:17] Selected resource type: ('configmap',)[2021-05-19 12:32:17] Loading incluster config ...[2021-05-19 12:32:17] Config for cluster api at 'https://10.96.0.1:443' loaded...[2021-05-19 12:32:17] Unique filenames will not be enforced.[2021-05-19 12:32:23] Working on ADDED configmap jenkins-helm/jenkins-jenkins-jcasc-config[2021-05-19 12:32:30] POST request sent to http://localhost:8080/reload-configuration-as-code/?casc-reload-token=jenkins-0. Response: 500 Server Error <html><head><title>Error 500</title></head><body bgcolor=#fff><h1>Status Code: 500</h1>Exception: class hudson.security.csrf.DefaultCrumbIssuer is missing its descriptor<br>Stacktrace: <pre>java.lang.AssertionError: class hudson.security.csrf.DefaultCrumbIssuer is missing its descriptor at jenkins.model.Jenkins.getDescriptorOrDie(Jenkins.java:1599) at hudson.security.csrf.CrumbIssuer.getDescriptor(CrumbIssuer.java:152) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:131) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:166) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:51) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601) at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:36) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1435) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1350) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:516) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:279) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:882) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1036) at java.lang.Thread.run(Thread.java:748)</pre><br><hr><i>Generated by Stapler at Wed May 19 12:32:30 GMT 2021</i></body></html>
A similar error is returned if an upgrade is attempted.
Jenkins loads OK, but it is not possible to upgrade using Helm, as the same error is returned.