# Git Plugin Fails to Install Properly on Jenkins LTS

**URL:** <https://community.jenkins.io/t/git-plugin-fails-to-install-properly-on-jenkins-lts/21196>\
**Category:** Using Jenkins\
**Tags:** question, git\
**Created:** [October 1, 2024, 11:25am UTC](https://community.jenkins.io/t/git-plugin-fails-to-install-properly-on-jenkins-lts/21196 "2024-10-01T11:25:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexander.bohn](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@alexander.bohn](https://community.jenkins.io/u/alexander.bohn)\
**Post date:** [October 1, 2024, 11:25am UTC](https://community.jenkins.io/t/git-plugin-fails-to-install-properly-on-jenkins-lts/21196/1 "2024-10-01T11:25:48Z")

</div>

Hello Jenkins Community,

I have installed Jenkins **LTS** on my **Red Hat Enterprise Linux Virtual Machine**.  
When attempting to install the **[Git](https://plugins.jenkins.io/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.

 ![Manage_Jenkins](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/5/56f6b8f5ea066dfc7ffaeb881ecf49ce2b8c1176.png)

#git #Using Jenkins #Ask a question

Jenkins setup:

```auto
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

```

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [October 1, 2024, 11:29am UTC](https://community.jenkins.io/t/git-plugin-fails-to-install-properly-on-jenkins-lts/21196/2 "2024-10-01T11:29:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![alexander.bohn](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@alexander.bohn](https://community.jenkins.io/u/alexander.bohn)\
**Post date:** [October 1, 2024, 11:37am UTC](https://community.jenkins.io/t/git-plugin-fails-to-install-properly-on-jenkins-lts/21196/3 "2024-10-01T11:37:36Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [October 1, 2024, 12:00pm UTC](https://community.jenkins.io/t/git-plugin-fails-to-install-properly-on-jenkins-lts/21196/4 "2024-10-01T12:00:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [October 1, 2024, 1:33pm UTC](https://community.jenkins.io/t/git-plugin-fails-to-install-properly-on-jenkins-lts/21196/5 "2024-10-01T13:33:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![alexander.bohn](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@alexander.bohn](https://community.jenkins.io/u/alexander.bohn)\
**Post date:** [October 2, 2024, 12:30pm UTC](https://community.jenkins.io/t/git-plugin-fails-to-install-properly-on-jenkins-lts/21196/6 "2024-10-02T12:30:56Z")

</div>

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.
