Skip to content

Can’t sign in to Jenkins, GitHub API problem after plugin upgrades #916

@SethTisue

Description

@SethTisue

@lrytz I upgraded some Jenkins plugins, including some that had security alerts, and now I can't authorize to Jenkins using GitHub; journalctl -u jenkins.service on jenkins-master shows:

Oct 13 18:02:53 ip-172-31-10-237 jenkins[974072]: java.lang.ExceptionInInitializerError: Exception java.lang.NoSuchFieldError: SNAKE_CASE [in thread "Hand>
Oct 13 18:02:53 ip-172-31-10-237 jenkins[974072]:         at PluginClassLoader for github-api//org.kohsuke.github.GitHubClient.<clinit>(GitHubClient.java:>
Oct 13 18:02:53 ip-172-31-10-237 jenkins[974072]:         at PluginClassLoader for github-api//org.kohsuke.github.GitHub.<init>(GitHub.java:140)
Oct 13 18:02:53 ip-172-31-10-237 jenkins[974072]:         at PluginClassLoader for github-api//org.kohsuke.github.GitHubBuilder.build(GitHubBuilder.java:5>

this probably means that one of the upgrades caused some other plugin, probably the GitHub login plugin itself, to need to be upgraded? that's my best guess, anyway

do you have any experience with resolving this kind of thing? it looks to me like I could probably go in manually from the command line, disable login security entirely (as per https://www.jenkins.io/doc/book/security/access-control/disable/), and then try upgrading plugins through the web UI . but I'm a bit reluctant to mess with it any further, and perhaps break it even more, before you're back from your trip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions