Lesstep
Jenkins · Error messages · Checked November 22, 2026

Jenkins error messages: six failures and what to check

Six messages Jenkins prints when a request, a Pipeline or the setup goes wrong. Each section quotes the message as it appears, says what Jenkins is telling you, and lists what to check, with links to public issue reports and the Jenkins documentation.

On this page:

Sign-in, certificates and the proxy

Pipeline

Jenkins: "is missing the Job/Build permission"

Jenkins REST API and CLI · Checked November 22, 2026

Jenkins knows who sent the request, and that user does not have the Build permission. The sign-in is not the problem here: with anonymous in front of the words, the credentials never arrived, and that case is a different page. With a real user ID, the fix is in the permissions Jenkins grants that user.

What the message is made of

Jenkins builds it from the template {0} is missing the {1} permission (Messages.properties in Jenkins' source): the user name first, then the permission as group/name. So "tester is missing the Job/Build permission" means the user ID tester was recognised. Jenkins' permissions page says of Job/Build: "This permission grants the ability to start a new build." (Permissions).

Starting a build over HTTP is a POST to /job/JOB_NAME/build or /buildWithParameters (Remote access API); this is the request that needs Job/Build.

Ask Jenkins who it thinks you are, and what it wanted

curl -i -X POST -u 'your-user-id:your-api-token' 'https://jenkins.example.com/job/JOB_NAME/build'

Jenkins' code that answers a denied request (AccessDeniedHandlerImpl) sets the status to 403, and AccessDeniedException3 adds these response headers:

To see the groups without restarting Jenkins, ask /whoAmI/api/json with the same user ID and token:

curl -u 'your-user-id:your-api-token' 'https://jenkins.example.com/whoAmI/api/json'

What to change

To read the console log of a failed build without leaving the IDE: Pipeline Inbox for Jenkins, a plugin for JetBrains IDEs 2024.1 or later, lists builds, Pipeline stages, failed tests and console logs for free. Starting, rebuild, stop and input steps are Pro (US$1.50 a month, with a 30-day trial).

Jenkins: "PKIX path building failed: unable to find valid certification path to requested target"

Jenkins CLI and Java clients · Checked November 22, 2026

The Java that runs your command does not trust the certificate Jenkins presents. This happens when Jenkins sits behind a certificate from a company CA or a self-signed one: the browser may have it installed, but Java keeps its own list of trusted certificates. Put the CA certificate in a truststore and point the command at it; do not switch the check off.

What the error looks like

The Jenkins issue JENKINS-64098 shows it as an SSLHandshakeException caused by:

PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

The Jenkins CLI wiki page shows the same text after java.io.IOException: Failed to connect to https://jenkins.example.com/ (Jenkins CLI). Jenkins' current CLI page (Jenkins CLI) does not mention certificates at all, which is why this page gives the commands.

1. Get the certificate your Jenkins presents

curl -w %{certs} https://jenkins.example.com/ > cacert.pem

This is the command curl's certificate page gives for saving a server's certificates. That page says never to skip verification in production with --insecure. The older Jenkins wiki uses openssl s_client -connect jenkins.example.com:443 for the same purpose. Better still, ask whoever runs Jenkins for the root certificate of the company CA, so you trust the CA and not one leaf certificate.

2. Put it in a truststore and run the CLI with it

keytool -import -noprompt -trustcacerts -alias jenkins -file cacert.pem -keystore myKeystore -storepass changeme

java -Djavax.net.ssl.trustStore=myKeystore -Djavax.net.ssl.trustStorePassword=changeme -jar jenkins-cli.jar -s https://jenkins.example.com/ -auth your-user-id:your-api-token who-am-i

The wiki describes the same steps: import with keytool, check with keytool -list -v -keystore ..., then start Java with -Djavax.net.ssl.trustStore, or set JAVA_TOOL_OPTIONS="-Djavax.net.ssl.trustStore=myKeystore" so every Java run uses it.

The CLI also has -noCertificateCheck. Jenkins' source logs "Skipping HTTPS certificate checks altogether. Note that this is not secure at all." when it is used (CLI.java), and the wiki recommends trusting the certificate instead.

3. The same check with curl

curl --cacert cacert.pem -u 'your-user-id:your-api-token' 'https://jenkins.example.com/whoAmI/api/json'

--cacert is "Use the specified certificate file to verify the peer" in curl's manual (curl manpage), and the environment variable CURL_CA_BUNDLE sets a default file. A 200 with your user ID as "name" shows the certificate is trusted and the sign-in works.

When the message is in Jenkins' own log

If the text comes from Jenkins itself, for example when it installs plugins, then the Java that runs Jenkins needs the trust. JENKINS-64098 is that case: the reporter had imported the certificate with keytool into a custom keystore and started Jenkins with the two -Djavax.net.ssl.trustStore properties. The issue is closed as "Not A Defect" and does not say what fixed it, so check which Java binary and which truststore file the Jenkins service really starts with.

In JetBrains IDEs: JetBrains' help describes a Server Certificates page in the IDE's settings, where a certificate file (.crt, .cer or .pem), such as the root certificate of an internal CA, can be added with Add (Server Certificates).

Jenkins: "It appears that your reverse proxy set up is broken."

Jenkins administrative monitor · Checked November 22, 2026

Jenkins ran a self-check and the address it expected did not match the address the request arrived with. Two things decide that: the Jenkins URL saved in Jenkins, and the host, port, protocol and path prefix that your proxy passes on. The message can also appear with no proxy at all, when the saved Jenkins URL is not the address you type.

The exact text

The message shows on the Manage Jenkins page. In Jenkins' source the text is It appears that your reverse proxy set up is broken. (two words, "set up"), with a second text, Your configured root URL does not contain the contextPath ("{0}")., that is hidden until a script on the page finds the context path missing (message.properties). Its "More Info" link goes to the Jenkins troubleshooting page for broken reverse proxies. That page tells you what to configure; it does not say what the check compares, which is the part below.

What the check compares

Read from ReverseProxySetupMonitor: the page makes your browser request a test address built from the Jenkins URL saved in Jenkins, ending in /testForReverseProxySetup/ followed by the address of the page you came from (the Referer). Jenkins then works out its own root address from the request as it arrived, which is where the proxy's headers count, and adds manage. The test passes only if the page you came from starts with that address. If it does not, Jenkins answers 404 and writes a WARNING to its log in this form:

<address worked out from the request>manage vs. <address of the page you came from>

The two halves of the "vs." show which side is wrong. If the first half has the proxy's internal host name, port or http where you use https, the proxy is probably not passing the forwarded headers. If the second half differs from the Jenkins URL saved in Jenkins, the setting is the problem.

Run the check by hand

The Jenkins page gives this command (it needs anonymous read access, so add -u your-user-id:your-api-token when Jenkins requires a sign-in):

BASE=administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor
curl -iL -e http://your.reverse.proxy/jenkins/manage \
            http://your.reverse.proxy/jenkins/${BASE}/test

-i prints the headers and -L follows redirects. Look at the Location header of the first answer: it should hold the public address, not the internal one. A final 200 means the check passes.

What the Jenkins page says to change

The source is Reverse proxy - Issues.

Jenkins: "No such DSL method ... found among steps"

Jenkins Pipeline · Steps · Checked November 22, 2026

The Pipeline called a step name that this Jenkins does not have. Jenkins stops with the name it could not find, followed by the list of step names it does have. Steps come from installed plugins, so the name is either misspelled or its plugin is not installed (or not providing the step) on this Jenkins. The Pipeline Syntax page shows which steps are available.

What the message looks like

Two public reports show the form. In JENKINS-72080 (Jenkins 2.387.2 with the Role-based Authorization Strategy plugin) the line starts:

java.lang.NoSuchMethodError: No such DSL method 'currentUserGlobalRoles' found among steps [addBadge, addEmbeddable

and the list goes on alphabetically (addErrorBadge, addHtmlBadge, ..., bat, build, catchError, ...). The reporter called currentUserGlobalRoles() inside a script block. The issue was closed as "Cannot Reproduce".

In JENKINS-57998 the name that is missing is pipeline itself:

java.lang.NoSuchMethodError: No such DSL method 'pipeline' found among steps

The job was a "Pipeline script from SCM" with a declarative Jenkinsfile (pipeline { agent any ... }). The reporter wrote that a suggestion elsewhere was to install pipeline-model-definition-plugin, but it could not be found in the available plugin list. The issue is marked "Fixed" with no comments that say what changed.

How to check the step name

  1. Compare the quoted name, letter by letter, with the list in the brackets. The list is every step this Jenkins found.
  2. Open the Pipeline Syntax page. The Jenkins documentation (Getting started with Pipeline) says it is at ${YOUR_JENKINS_URL}/pipeline-syntax and linked as Pipeline Syntax in the sidebar of a configured Pipeline project.
  3. The same page says the Snippet Generator is dynamically populated with a list of the steps available to the Jenkins controller, which depends on the installed plugins. Choose the step in the Sample Step dropdown, fill in its options, and click Generate Pipeline Script to get a snippet in the form this Jenkins accepts.
  4. If the step is not in the dropdown, it is not available on this Jenkins. The plugin that provides it is the next thing to look at. The Pipeline Steps Reference on jenkins.io has a page per plugin.
  5. For a variable rather than a step (env, params, currentBuild), the same documentation points to the Global Variable Reference at ${YOUR_JENKINS_URL}/pipeline-syntax/globals.

Jenkins: "Scripts not permitted to use method ..." in a Pipeline

Jenkins Pipeline · Script Security · Checked November 22, 2026

The Pipeline ran in the Groovy sandbox and called a method that is not on the sandbox's list of safe operations. The build stops at that call, and the message names the method. An administrator can approve the method's signature under Manage Jenkins, on the page named In-process Script Approval, after which the same call is allowed.

What the message looks like

The issue JENKINS-62749 (Jenkins 2.222.4 in the official Docker image, script-security 1.73) shows a line that starts:

Scripts not permitted to use method groovy.lang.GroovyObject invokeMethod java.lang.String java.lang.Object

and the exception class org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException. The text after "use method" is the signature: the class that owns the method, the method name, then the parameter types. That is what an administrator sees and approves. (The report's own line goes on with the call that triggered it.) The older issue JENKINS-30432 has the same message with a stack trace through StaticWhitelist.rejectMethod and WorkflowScript.run; its reporter found that the Jenkinsfile worked when typed into the job and failed when loaded from SCM. The issue was closed as "Not A Defect".

Why it happens

The Jenkins documentation on In-process Script Approval says the Groovy Sandbox is enabled by default for Jenkins Pipeline, and that sandboxed scripts calling a method that is not approved are halted at runtime. The Script Security plugin page says the sandbox lets Groovy scripts run without approval as long as they limit themselves to operations considered inherently safe, and that an operation outside that set is stopped and queued for approval.

Where an administrator approves it

  1. Open Manage Jenkins and then In-process Script Approval.
  2. Find the pending signature that matches the text in the build log.
  3. Choose one of the options the documentation lists: Approve, Deny, or Approve assuming permissions check. The last one allows the method signature when the user running the script has the needed permission.
  4. Run the build again.

The documentation says an approval is not tied to one job: once approved, a script can use the signature in any feature or plugin that integrates with script approval. The plugin page adds a caution: operations which change the state of persisted objects (such as Jenkins jobs) should generally be denied. Reading the signature before choosing is the point of the page.

If the sandbox is turned off for a script, the documentation says the whole script then needs administrator approval, instead of approval signature by signature.

Jenkins: "Timeout has been exceeded" and what aborted the build

Jenkins Pipeline · timeout step · Checked November 22, 2026

The message comes from the timeout step (or the timeout option of a Pipeline). The step runs its block with a time limit, and when the limit is reached it throws an exception that aborts the build. The setting to look at is activity: with activity: true the limit is not the total run time but the time without any new line in the log.

What the step does

The Pipeline Steps reference for timeout (jenkins.io, Pipeline: Basic Steps) says the step executes the code inside the block with a determined time out limit. If the time limit is reached, an exception (org.jenkinsci.plugins.workflow.steps.FlowInterruptedException) is thrown, which leads to aborting the build unless it is caught and processed somehow. Its parameters:

timeout(time: 30, unit: 'MINUTES') {
  sh 'make'
}

The log lines around the message

The issue JENKINS-58752 (Jenkins 2.176.2, Pipeline: Basic Steps 2.18, a Windows agent; the issue is open and archived) shows the log of a build that used this option:

options {
    buildDiscarder(logRotator(numToKeepStr: '3'))
    disableResume()
    timeout(activity: true, time: 10, unit: 'MINUTES')
  }

and, in the log, in this order (the report marks gaps with ...):

Timeout set to expire after 10 min without activity
...
Cancelling nested steps due to timeout
Sending interrupt signal to process
...
Timeout has been exceeded

The first line says which kind of limit was set: "without activity" is activity: true, so the clock counts the time since the last line written to the log. A step that is quiet for ten minutes can be cut off even if the build has run for much longer than ten minutes in total.

What to check

Handling it in the Jenkinsfile

Because the step throws an exception, the Pipeline Steps reference says the build is aborted unless the exception is caught and processed. The same page describes retry as retrying the block if any exception happens during its body, with a final-attempt exception aborting the build, and states that user aborts of the build are not caught by retry. It describes error as signalling an error without printing a stack trace, and catchError as marking the build as a failure while continuing from the statement after it.

Jenkins builds in IntelliJ IDEA and other JetBrains IDEs

Pipeline Inbox for Jenkins, a plugin by Lesstep for JetBrains IDEs 2024.1 or later. The build list, Pipeline stages, failed tests and console logs are free; starting a build (with or without parameters), rebuild, stop and input steps are Pro (US$1.50 a month, with a 30-day trial).

Get it on JetBrains Marketplace

Jenkins® is a registered trademark of LF Charities Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by the Jenkins project or JetBrains.

Other Jenkins errors, each on its own page: "Nothing is submitted" · "401 Unauthorized" · "403 No valid crumb" · "anonymous is missing the Overall/Read permission" · CLI "Handshake error" · "Waiting for next available executor"

More: aborting a Jenkins build · the input step · Jenkins plugins for IntelliJ IDEA compared · 日本語