# Getting 403s when attempting to install plugins with 2.541.3

**URL:** <https://community.jenkins.io/t/getting-403s-when-attempting-to-install-plugins-with-2-541-3/36676>\
**Category:** Using Jenkins\
**Created:** [March 27, 2026, 4:27pm UTC](https://community.jenkins.io/t/getting-403s-when-attempting-to-install-plugins-with-2-541-3/36676 "2026-03-27T16:27:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zirrno](https://avatars.discourse-cdn.com/v4/letter/z/d78d45/32.png) [@Zirrno](https://community.jenkins.io/u/Zirrno)\
**Post date:** [March 27, 2026, 4:27pm UTC](https://community.jenkins.io/t/getting-403s-when-attempting-to-install-plugins-with-2-541-3/36676/1 "2026-03-27T16:27:20Z")

</div>

Jenkins setup:

Jenkins: 2.541.3

OS: Oracle Linux Server - 8.10

Java from JAVA\_HOME: openjdk version “1.8.0\_452”  
OpenJDK Runtime Environment (Temurin)(build 1.8.0\_452-b09)  
OpenJDK 64-Bit Server VM (Temurin)(build 25.452-b09, mixed mode)

Java used in command: adoptopenjdk version 21

Currently I have a running instance of Jenkins from our last version (2.516.1), but have been trying to upgrade and am running into 403s when installing plugins. The specific command I am running is:

```bash
/usr/share/java/adoptopenjdk-21/bin/java -jar /var/lib/jenkins/jenkins-cli.jar -s http://localhost:8080 install-plugin <local_file_location>

```

This command returns:

```bash
STDOUT:
 STDERR: CLI handshake failed with status code 403
 Content-Length: 0
 Content-Security-Policy-Report-Only: base-uri 'none'; default-src 'self'; form-action 'self'; frame-ancestors 'self'; img-src 'self' data:; script-src 'report-sample' 'self' usage.jenkins.io; style-src 'report-sample' 'self' 'unsafe-inline';
 Date: Thu, 26 Mar 2026 21:18:36 GMT
 Server: Jetty(12.1.5)
 Vary: Accept-Encoding
 X-CLI-Error: Jenkins URL is not configured (set Jenkins URL in the configuration)
 X-Content-Type-Options: nosniff

```

It is currently downloading the hpi file locally and attempting to install from local. Prior, this command didn’t need the auth argument, and when I add the auth of an admin I get the same error. The main thing that I know about the version difference is the Jetty uplift, but I don’t see how that changes the install-plugin command. How can I get through the 403s to install the 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:** [March 27, 2026, 4:57pm UTC](https://community.jenkins.io/t/getting-403s-when-attempting-to-install-plugins-with-2-541-3/36676/2 "2026-03-27T16:57:05Z")

</div>

> [@Zirrno](#):
>
> `Jenkins URL is not configured (set Jenkins URL in the configuration)`

Have you configured the URL properly?  
I guess that is related to [Jenkins Security Advisory 2026-03-18](https://www.jenkins.io/security/advisory/2026-03-18/#SECURITY-3674)

---

<div class="post-metadata">

**Author:** ![Zirrno](https://avatars.discourse-cdn.com/v4/letter/z/d78d45/32.png) [@Zirrno](https://community.jenkins.io/u/Zirrno)\
**Post date:** [March 27, 2026, 6:08pm UTC](https://community.jenkins.io/t/getting-403s-when-attempting-to-install-plugins-with-2-541-3/36676/3 "2026-03-27T18:08:50Z")

</div>

> Have you configured the URL properly?

We are not as this is in a pre deployment phase where we are setting the environment up to be deployed by another configuration set. We are running the setup with a Chef environment and ruby scripts that I am still getting caught up on. Is the 2.541.3 version the first instance of this security fix?

---

<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:** [March 27, 2026, 7:20pm UTC](https://community.jenkins.io/t/getting-403s-when-attempting-to-install-plugins-with-2-541-3/36676/4 "2026-03-27T19:20:48Z")

</div>

I assume you want to use Chef to get your instance in a defined state i.e. configuration as code? That might not be the best approach. When you deploy a plugin while Jenkins is running and the plugin is already installed then you need a restart of Jenkins.  
For configuration as code setups using the [GitHub - jenkinsci/plugin-installation-manager-tool: Plugin Manager CLI tool for Jenkins · GitHub](https://github.com/jenkinsci/plugin-installation-manager-tool) is better. So you first ensure all plugins are in the correct version in the plugins folder before you start Jenkins. That is the standard approach when you Jenkins in a docker container. Using docker is even better for a CasC approach.  
Also look at the [Configuration as Code](https://plugins.jenkins.io/configuration-as-code/) plugin
