Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jenkins controller breaks with the new version of the plugin 4.355.v3a_fb_fca_b_96d4 #421

Closed
kashyap92 opened this issue Oct 9, 2024 · 3 comments

Comments

@kashyap92
Copy link

Jenkins and plugins versions report

Jenkins controller version: 2.462.3
OS: Amazon Linux 2023.5.20240916
oic-auth plugin version: 4.355.v3a_fb_fca_b_96d4

After updating the plugin, Jenkins controller fails with

HTTP ERROR 503 java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
URI:/STATUS:503MESSAGE:java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.SERVLET:StaplerCAUSED BY:java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.

What Operating System are you using (both controller, and any agents involved in the problem)?

Jenkins controller version: 2.462.3
OS: Amazon Linux 2023.5.20240916
oic-auth plugin version: 4.355.v3a_fb_fca_b_96d4

Reproduction steps

Step 1. Update oic-auth plugin to v4.355.v3a_fb_fca_b_96d4
Step 2. Access Jenkins from UI

Expected Results

Jenkins controller should be accessible.

Actual Results

HTTP ERROR 503 java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
URI:/STATUS:503MESSAGE:java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.SERVLET:StaplerCAUSED BY:java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.

Anything else?

No response

Are you interested in contributing a fix?

No response

@eva-mueller-coremedia
Copy link
Contributor

eva-mueller-coremedia commented Oct 9, 2024

I updated to the latest plugin (4.371.vc7c0c06e8a_f5) yesterday (Jenkins: 2.462.3) and had no issues.

@TomHellier
Copy link

TomHellier commented Oct 9, 2024

I'm seeing similar, I will attempt to change my configurationas my jcasc configuration is no longer valid based on this PR.

#399

Yes - updating my JCasC configuration based on the changes in the linked PR has resolved the issue.

Thanks @eva-mueller-coremedia

To help future viewers, this was the error so search engines can scrape it.

io.jenkins.plugins.casc.UnknownAttributesException: oic: Invalid configuration elements for type: class org.jenkinsci.plugins.oic.OicSecurityRealm : authorizationServerUrl,tokenServerUrl,scopes.
Available attributes : allowTokenAccessWithoutOicSession, allowedTokenExpirationClockSkewSeconds, captchaSupport, clientId, clientSecret, disableSslVerification, disableTokenVerification, emailFieldName, escapeHatchEnabled, escapeHatchGroup, escapeHatchSecret, escapeHatchUsername, fullNameFieldName, groupsFieldName, logoutFromOpenidProvider, nonceDisabled, pkceEnabled, postLogoutRedirectUrl, rootURLFromRequest, sendScopesInTokenRequest, serverConfiguration, tokenExpirationCheckDisabled, tokenFieldToCheckKey, tokenFieldToCheckValue, userNameField

@jtnord jtnord closed this as completed Oct 9, 2024
@jtnord
Copy link
Member

jtnord commented Oct 11, 2024

release notes have been updated to copy the details that where previously available if following the links into the actual release note

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants