java.lang.IllegalStateException: C:\Program Files (x86)\Jenkins\jobs\[JobName]\builds\405 already existed; will not overwrite with [JobName] #405

Jenkins JIRA | Riddhi Sharma | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Jenkins ver. 1.642 This is occuring on freestyle builds that are triggered by a cron expression and an upstream job (promotions plugin). When those triggers both happen close to each other it seams to "kill" the executor due to the IllegalStateExceptionThese are newer builds (#533, #532) but still its trying to run the [JobName]\builds\405 ,which already exists. Normally, it should trigger #533, #532 newer jobs IDs. We are constantly able to reproduce the issue every time a child job is triggered by the parent job using "Trigger call/builds on another projects" feature. Exception: java.lang.IllegalStateException: C:\Program Files (x86)\Jenkins\jobs\[JobName]\builds\405 already existed; will not overwrite with [JobName] #405 at hudson.model.RunMap.put(RunMap.java:188) at jenkins.model.lazy.LazyBuildMixIn.newBuild(LazyBuildMixIn.java:176) at hudson.model.AbstractProject.newBuild(AbstractProject.java:1019) at hudson.model.AbstractProject.createExecutable(AbstractProject.java:1210) at hudson.model.AbstractProject.createExecutable(AbstractProject.java:145) at hudson.model.Executor$1.call(Executor.java:364) at hudson.model.Executor$1.call(Executor.java:346) at hudson.model.Queue._withLock(Queue.java:1405) at hudson.model.Queue.withLock(Queue.java:1270) at hudson.model.Executor.run(Executor.java:346) Jenkins in 1.607 (2015/03/30) - Has changes which removes race condition rendering the list of executors (issue 27564) might be causing this race condition issue. Similar threads: https://issues.jenkins-ci.org/browse/JENKINS-29268 [Configuration race condition] https://issues.jenkins-ci.org/browse/JENKINS-26582 [also has this issue for ver 1.621] Any idea for resolving this issue, we are constantly getting the executer failures states.

    Jenkins JIRA | 1 year ago | Riddhi Sharma
    java.lang.IllegalStateException: C:\Program Files (x86)\Jenkins\jobs\[JobName]\builds\405 already existed; will not overwrite with [JobName] #405
  2. 0

    Jenkins ver. 1.642 This is occuring on freestyle builds that are triggered by a cron expression and an upstream job (promotions plugin). When those triggers both happen close to each other it seams to "kill" the executor due to the IllegalStateExceptionThese are newer builds (#533, #532) but still its trying to run the [JobName]\builds\405 ,which already exists. Normally, it should trigger #533, #532 newer jobs IDs. We are constantly able to reproduce the issue every time a child job is triggered by the parent job using "Trigger call/builds on another projects" feature. Exception: java.lang.IllegalStateException: C:\Program Files (x86)\Jenkins\jobs\[JobName]\builds\405 already existed; will not overwrite with [JobName] #405 at hudson.model.RunMap.put(RunMap.java:188) at jenkins.model.lazy.LazyBuildMixIn.newBuild(LazyBuildMixIn.java:176) at hudson.model.AbstractProject.newBuild(AbstractProject.java:1019) at hudson.model.AbstractProject.createExecutable(AbstractProject.java:1210) at hudson.model.AbstractProject.createExecutable(AbstractProject.java:145) at hudson.model.Executor$1.call(Executor.java:364) at hudson.model.Executor$1.call(Executor.java:346) at hudson.model.Queue._withLock(Queue.java:1405) at hudson.model.Queue.withLock(Queue.java:1270) at hudson.model.Executor.run(Executor.java:346) Jenkins in 1.607 (2015/03/30) - Has changes which removes race condition rendering the list of executors (issue 27564) might be causing this race condition issue. Similar threads: https://issues.jenkins-ci.org/browse/JENKINS-29268 [Configuration race condition] https://issues.jenkins-ci.org/browse/JENKINS-26582 [also has this issue for ver 1.621] Any idea for resolving this issue, we are constantly getting the executer failures states.

    Jenkins JIRA | 1 year ago | Riddhi Sharma
    java.lang.IllegalStateException: C:\Program Files (x86)\Jenkins\jobs\[JobName]\builds\405 already existed; will not overwrite with [JobName] #405
  3. 0

    [JIRA] [branch-api-plugin] (JENKINS-32179) Branch indexing always attempts to create a new project for conflicting branch names from multiple sources

    Google Groups | 1 year ago | mjdet...@gmail.com (JIRA)
    java.lang.IllegalStateException: /Users/mjdetullio/jenkins/jobs/freestyle-multi/branches/master/builds/1 already existed; will not overwrite with freestyle-multi/master #1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] [core] (JENKINS-34103) jenkins reindex purges build queue

    Google Groups | 1 year ago | ja...@sandlininc.com (JIRA)
    java.lang.IllegalStateException: /<span class="code-keyword" style="color: #000091">var</span>/lib/jenkins/jobs/xxxxxx/builds/112 already existed; will not overwrite with xxxxxxxxx #112
  6. 0

    We have recently upgraded jenkins from version 1.580.3 to 1.642.3, after upgradation sometimes one of jenkins slave shows *dead* executor error. Log :- Slave executor log :- java.lang.IllegalStateException: /d0/jenkins/jobs/QA_bifrost_kafka_Dev_KAFKA-50/builds/32 already existed; will not overwrite with QA_bifrost_kafka_Dev_KAFKA-50 #32 at hudson.model.RunMap.put(RunMap.java:188) at jenkins.model.lazy.LazyBuildMixIn.newBuild(LazyBuildMixIn.java:176) at hudson.model.AbstractProject.newBuild(AbstractProject.java:1019) at hudson.model.AbstractProject.createExecutable(AbstractProject.java:1210) at hudson.model.AbstractProject.createExecutable(AbstractProject.java:145) at hudson.model.Executor$1.call(Executor.java:364) at hudson.model.Executor$1.call(Executor.java:346) at hudson.model.Queue._withLock(Queue.java:1405) at hudson.model.Queue.withLock(Queue.java:1270) at hudson.model.Executor.run(Executor.java:346) Jenkins log :- Mar 21, 2016 12:56:49 PM SEVERE hudson.remoting.SynchronousCommandTransport$ReaderThread run I/O error in channel RMT-Test-Slave-3-build2003 java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2335) at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2804) at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:802) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:299) at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:48) at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

    Jenkins JIRA | 1 year ago | ayush sahu
    java.lang.IllegalStateException: /d0/jenkins/jobs/QA_bifrost_kafka_Dev_KAFKA-50/builds/32 already existed; will not overwrite with QA_bifrost_kafka_Dev_KAFKA-50 #32

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      C:\Program Files (x86)\Jenkins\jobs\[JobName]\builds\405 already existed; will not overwrite with [JobName] #405

      at hudson.model.RunMap.put()
    2. Hudson
      RunMap.put
      1. hudson.model.RunMap.put(RunMap.java:188)
      1 frame
    3. jenkins.model.lazy
      LazyBuildMixIn.newBuild
      1. jenkins.model.lazy.LazyBuildMixIn.newBuild(LazyBuildMixIn.java:176)
      1 frame
    4. Hudson
      Executor.run
      1. hudson.model.AbstractProject.newBuild(AbstractProject.java:1019)
      2. hudson.model.AbstractProject.createExecutable(AbstractProject.java:1210)
      3. hudson.model.AbstractProject.createExecutable(AbstractProject.java:145)
      4. hudson.model.Executor$1.call(Executor.java:364)
      5. hudson.model.Executor$1.call(Executor.java:346)
      6. hudson.model.Queue._withLock(Queue.java:1405)
      7. hudson.model.Queue.withLock(Queue.java:1270)
      8. hudson.model.Executor.run(Executor.java:346)
      8 frames