Git Plugin Fails to Install Properly on Jenkins LTS

Hello Jenkins Community,

I have installed Jenkins LTS on my Red Hat Enterprise Linux Virtual Machine.
When attempting to install the Git plugin in Jenkins User Interface (UI), I encounter the following errors (please refer to the attached screenshots ‘Manage_Jenkins.jpg’).

This seems unusual, as Jenkins should be capable of determining that I am running the LTS version and resolving the proper version of the Git plugin accordingly.

I have attempted the following solutions so far:
Restarted the Jenkins service using the command: sudo systemctl restart jenkins

Tried to update Jenkins using the command: sudo yum update jenkins

Unfortunately, these steps did not resolve the issue.

Could you please advise on how to resolve this issue?
Thank you for your assistance.

git Using Jenkins Ask a question

Jenkins setup:

Jenkins: 2.462.2
OS: Linux - 5.14.0-427.37.1.el9_4.x86_64
Java: 17.0.12 - Red Hat, Inc. (OpenJDK 64-Bit Server VM)
---
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757
asm-api:9.7-33.v4d23ef79fcc8
bouncycastle-api:2.30.1.78.1-248.ve27176eb_46cb_
caffeine-api:3.1.8-133.v17b_1ff2e0599
credentials:1378.v81ef4269d764
credentials-binding:681.vf91669a_32e45
display-url-api:2.204.vf6fddd8a_8b_e9
gson-api:2.11.0-41.v019fcf6125dc
instance-identity:201.vd2a_b_5a_468a_a_6
jakarta-activation-api:2.1.3-1
jakarta-mail-api:2.1.3-1
mailer:488.v0c9639c1a_eb_3
mina-sshd-api-common:2.13.2-125.v200281b_61d59
mina-sshd-api-core:2.13.2-125.v200281b_61d59
plain-credentials:183.va_de8f1dd5a_2b_
scm-api:696.v778d637b_a_762
script-security:1362.v67dc1f0e1b_b_3
ssh-credentials:343.v884f71d78167
structs:338.v848422169819
variant:60.v7290fc0eb_b_cd
workflow-scm-step:427.v4ca_6512e7df1
workflow-step-api:678.v3ee58b_469476

Not sure how this happened but you have a too new version of the git-client plugin. You should remove the git-client.jpi file from JENKINS_HOME/plugins, restart Jenkins and then install the git-client plugin again via the UI.

Hello Markus,

Unfortunately, your solution did not work.

Would you recommend completely removing Jenkins LTS, reinstalling it, and then attempting to install the Git Plugin?

Note that there are 2 plugins involved git-client and git. It’s the git-client that is too new and fails to load and then also the git plugin fails.
Depends how you run you Jenkins, the plugins are under JENKINS_HOME, and when you’re on linux and installed it via the package manager reinstalling will not change anything I think.

That may indicate that you already had a git-client.jpi file in the plugins directory or you had a git-client.hpi file in the plugins directory of the JENKINS_HOME. If so, then you need to delete that file

Hello Markus and Mark,

Thank you for your provided answers.

I solved this error message by completely reinstalling Jenkins. When I started Jenkins for the first time, I added the initial password and then installed the suggested plugins, and the Git plugin was automatically included.

Right now, it works, and I do not have any error messages.