# Jenkins version from 2.319.2 to 2.319.3 failed to load plugins

**URL:** <https://community.jenkins.io/t/jenkins-version-from-2-319-2-to-2-319-3-failed-to-load-plugins/3374>\
**Category:** Using Jenkins\
**Tags:** docker, blueocean\
**Created:** [August 16, 2022, 8:41am UTC](https://community.jenkins.io/t/jenkins-version-from-2-319-2-to-2-319-3-failed-to-load-plugins/3374 "2022-08-16T08:41:21Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![hash88](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@hash88](https://community.jenkins.io/u/hash88)\
**Post date:** [August 16, 2022, 8:41am UTC](https://community.jenkins.io/t/jenkins-version-from-2-319-2-to-2-319-3-failed-to-load-plugins/3374/1 "2022-08-16T08:41:21Z")

</div>

Hello,  
We are trying to run Jenkins with IS -Jenkins blueocean@sha256:9d6ebd661a2fdb0b9ab465c7ebf86141487845ca69893fa4953a33cca505414bq  
that uses Jenkins 2.319.3. The pod is not running and showing an Error that “failed to load plugin”  
and earlier when using the older IS  
name: jenkins-blueocean@sha256:42aa45dea5da0d182618099cf4609c582fab773e0b354fe9100aec2cd1280646  
that runs on Jenkins 2.319.2 was successfully deployed .  
Please suggest a best way to run Jenkins pods on Openshift 4 with 2.319.3 Jenkins .

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [August 16, 2022, 3:57pm UTC](https://community.jenkins.io/t/jenkins-version-from-2-319-2-to-2-319-3-failed-to-load-plugins/3374/2 "2022-08-16T15:57:29Z")

</div>

By default jenkins will copy without overwriting /usr/share/jenkins/ref/plugins/ to $JENKINS\_HOME/plugins/

So you’ll need to delete the old plugin version to get the new version.

I would recommend deleting $JENKINS\_HOME/plugins/ as a pre start hook, and let it copy all the plugins from ref every startup. That way you always have the right plugins for the image.

If you have plugins not in the image, i recommend building your own image with all your requirements baked in - [docker-jenkins/Dockerfile at b7f32ca9dec8a5279dd28834febbbf9cb3a3e996 · halkeye-docker/docker-jenkins · GitHub](https://github.com/halkeye-docker/docker-jenkins/blob/b7f32ca9dec8a5279dd28834febbbf9cb3a3e996/Dockerfile)

If you don’t want to do the recommendations, then either use the update manager or the cli to update plugins manually.

---

<div class="post-metadata">

**Author:** ![hash88](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@hash88](https://community.jenkins.io/u/hash88)\
**Post date:** [August 18, 2022, 8:30am UTC](https://community.jenkins.io/t/jenkins-version-from-2-319-2-to-2-319-3-failed-to-load-plugins/3374/3 "2022-08-18T08:30:10Z")

</div>

Hello , i saw this following Errors while running the Pod,  
These are few, in logs there are many and also WARNING “An illegal reflective access operation has occurred” and more WARNING.

1. jenkins.InitReactorRunner$1 onTaskFailed Failed Loading plugin Pipeline: Supporting APIs v818.v4eb\_969241b\_c7 (workflow-support)  
java.io.IOException: Failed to load: Pipeline: Supporting APIs (818.v4eb\_969241b\_c7)

- Jenkins (2.332) or higher required
- Failed to load: Script Security Plugin (1175.v4b\_d517d6db\_f0)

1. Failed to load: Pipeline: Job (1189.va\_d37a\_e9e4eda\_)

- Jenkins (2.332.1) or higher required
- Failed to load: Pipeline: Supporting APIs (818.v4eb\_969241b\_c7)

1. Failed to load: Jenkins Git client plugin (3.11.0)

- Failed to load: Script Security Plugin (1175.v4b\_d517d6db\_f0)

1. Failed to load: Jakarta Activation API (2.0.0-3)

- Jenkins (2.332.1) or higher required

1. Failed to load: Jakarta Mail API (2.0.0-6)

- Jenkins (2.332.1) or higher required
- Failed to load: Jakarta Activation API (2.0.0-3)

1. Failed to load: Display URL API (2.3.6)

- Jenkins (2.332.1) or higher required

1. Failed to load: Jenkins Mailer Plugin (435.v79ef3972b\_5c7)

- Jenkins (2.332.1) or higher required
- Failed to load: Jakarta Mail API (2.0.0-6)

1. jenkins.InitReactorRunner$1 onTaskFailed Failed Loading plugin Checks API plugin v1.7.4 (checks-api)  
java.io.IOException: Failed to load: Checks API plugin (1.7.4)

- Failed to load: Pipeline: Supporting APIs (818.v4eb\_969241b\_c7)

Thank You

---

<div class="post-metadata">

**Author:** ![hash88](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@hash88](https://community.jenkins.io/u/hash88)\
**Post date:** [August 23, 2022, 2:29pm UTC](https://community.jenkins.io/t/jenkins-version-from-2-319-2-to-2-319-3-failed-to-load-plugins/3374/4 "2022-08-23T14:29:30Z")

</div>

Anyone can suggest me way to fix it ?  
No body is replying on my Query .  
@halkeye is not replying back .

Regards

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [August 23, 2022, 8:13pm UTC](https://community.jenkins.io/t/jenkins-version-from-2-319-2-to-2-319-3-failed-to-load-plugins/3374/5 "2022-08-23T20:13:40Z")

</div>

I told you how to fix it. Delete your currently installed plugins so the docker image copies the new versions over (essentially `cp -n /usr/share/jenkins/ref/plugins/ $JENKINS_HOME/plugins`) or copy over the plugins by hand `cp -f /usr/share/jenkins/ref/plugins/ $JENKINS_HOME/plugins`) or use the update center cli tool to update plugins.

---

<div class="post-metadata">

**Author:** ![hash88](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@hash88](https://community.jenkins.io/u/hash88)\
**Post date:** [August 24, 2022, 9:21am UTC](https://community.jenkins.io/t/jenkins-version-from-2-319-2-to-2-319-3-failed-to-load-plugins/3374/6 "2022-08-24T09:21:22Z")

</div>

Hello @halkeye  
Thank you for your response and effort.  
But I dont know if this helps us - we use a prebuilt image from redhat, that was tested by redhat, use their official update mechanism to install some additional plugins from the official repo (including dependency resolution!)  
It contains only the image from redhat (that can start) and the plugins added/updated by redhats official plugin mechanism via s2i build in the jenkins-blueocean-plugins buildconfig using the plugins.txt file. It does not contain any changes done by our dockerfile, only what redhat or the official plugin repo of jenkins provide!

Regards

---

<div class="post-metadata">

**Author:** ![hash88](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@hash88](https://community.jenkins.io/u/hash88)\
**Post date:** [August 24, 2022, 3:16pm UTC](https://community.jenkins.io/t/jenkins-version-from-2-319-2-to-2-319-3-failed-to-load-plugins/3374/7 "2022-08-24T15:16:54Z")

</div>

> [@halkeye](#):
>
> o you’ll need to delete the old plugin version to get the new version.

Here is the Output of the Error , You can see it says "Overriding Plugins "  
failed to create /var/lib/alternatives/java.new: Permission denied  
failed to create /var/lib/alternatives/javac.new: Permission denied  
CONTAINER\_MEMORY\_IN\_MB=‘3072’, using /usr/lib/jvm/java-11-openjdk-11.0.16.0.8-1.el8\_6.x86\_64/bin/java and /usr/lib/jvm/java-11-openjdk-11.0.16.0.8-1.el8\_6.x86\_64/bin/javac  
ln: failed to create symbolic link ‘/var/log/jenkins’: Permission denied  
Overriding plugins stored in /var/lib/jenkins/plugins  
Administrative monitors that contact the update center will remain active

---

<div class="post-metadata">

**Author:** ![steved](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/steved/32/2026_2.png) [@steved](https://community.jenkins.io/u/steved)\
**Post date:** [August 24, 2022, 3:28pm UTC](https://community.jenkins.io/t/jenkins-version-from-2-319-2-to-2-319-3-failed-to-load-plugins/3374/8 "2022-08-24T15:28:01Z")

</div>

Permission denied leads me to believe that the user you are running jenkins as can’t write to the necessary locations.

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [August 24, 2022, 4:00pm UTC](https://community.jenkins.io/t/jenkins-version-from-2-319-2-to-2-319-3-failed-to-load-plugins/3374/9 "2022-08-24T16:00:33Z")

</div>

> [@hash88](#):
>
> It contains only the image from redhat (that can start)

I would reach out to redhat. We as an open source community don’t support vendor specific builds. We don’t know what scripts it runs or what changes have been made.

> [@hash88](#):
>
> failed to create symbolic link ‘/var/log/jenkins’: Permission denied

Sounds like the container is not starting up as a user that can manage system stuff. I was trying to find out of the official image uses root, but i havn’t been able to find out for certain.

> [@hash88](#):
>
> Overriding plugins stored in /var/lib/jenkins/plugins

Seems like it should work.

Btw, 319 is over 6 months old now. There has been 2 more stable releases since then.

---

<div class="post-metadata">

**Author:** ![timja](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/timja/32/7_2.png) [@timja](https://community.jenkins.io/u/timja)\
**Post date:** [August 24, 2022, 4:03pm UTC](https://community.jenkins.io/t/jenkins-version-from-2-319-2-to-2-319-3-failed-to-load-plugins/3374/10 "2022-08-24T16:03:36Z")

</div>

Can you share your Dockerfile / image that you are using?

---

<div class="post-metadata">

**Author:** ![hash88](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@hash88](https://community.jenkins.io/u/hash88)\
**Post date:** [August 25, 2022, 6:06am UTC](https://community.jenkins.io/t/jenkins-version-from-2-319-2-to-2-319-3-failed-to-load-plugins/3374/11 "2022-08-25T06:06:29Z")

</div>

Okay, But is there a way to change the Permission Mode , so we can write to the specific location.  
Regards

---

<div class="post-metadata">

**Author:** ![hash88](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@hash88](https://community.jenkins.io/u/hash88)\
**Post date:** [August 25, 2022, 6:18am UTC](https://community.jenkins.io/t/jenkins-version-from-2-319-2-to-2-319-3-failed-to-load-plugins/3374/12 "2022-08-25T06:18:24Z")

</div>

> **[Red Hat Ecosystem Catalog](https://catalog.redhat.com/software/containers/openshift4/ose-jenkins/5cdd918ad70cc57c44b2d279?tag=v4.10.0-202207291908.p0.gc5b7159.assembly.stream&push_date=1660012488000&container-tabs=gti)**
>
> Red Hat Ecosystem Catalog - Discover Red Hat Certified Products for Hardware, Software, and Cloud.

Here is the Linn for specific image we are using .  
Please have look.  
Regards

---

<div class="post-metadata">

**Author:** ![hash88](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@hash88](https://community.jenkins.io/u/hash88)\
**Post date:** [August 25, 2022, 6:21am UTC](https://community.jenkins.io/t/jenkins-version-from-2-319-2-to-2-319-3-failed-to-load-plugins/3374/13 "2022-08-25T06:21:32Z")

</div>

Yes i will also do that , if we do not able to find a solution.  
I understand your Point as this is Vendor Specific image, so makes sense to reach out Redhat Support.  
Okay i will check for stable release also, so this for Test Server, for Prod we can use the Stable then .  
Thank you for ur time ,  
Regards
