| Problem as seen by user, asking for a new build of <job> has no effect (retry, rebuild, and new build) Problem as seen from the logs:
Log entry
WARNING: A new build could not be created in job build_win64
java.lang.IllegalStateException: JENKINS-23152: /var/lib/jenkins/jobs/build_win64/builds/865 already existed; will not overwrite with build_win64 #865
at hudson.model.RunMap.put(RunMap.java:189)
at jenkins.model.lazy.LazyBuildMixIn.newBuild(LazyBuildMixIn.java:185)
at hudson.model.AbstractProject.newBuild(AbstractProject.java:967)
at hudson.model.AbstractProject.createExecutable(AbstractProject.java:1143)
at hudson.model.AbstractProject.createExecutable(AbstractProject.java:137)
at hudson.model.Executor$1.call(Executor.java:365)
at hudson.model.Executor$1.call(Executor.java:347)
at hudson.model.Queue._withLock(Queue.java:1439)
at hudson.model.Queue.withLock(Queue.java:1300)
at hudson.model.Executor.run(Executor.java:347)
Mar 26, 2019 7:23:14 AM hudson.model.Executor run
SEVERE: Executor #0 for W1803-BUILD56: Unexpected executor death
java.lang.Error: java.lang.IllegalStateException: JENKINS-23152: /var/lib/jenkins/jobs/build_win64/builds/865 already existed; will not overwrite with build_win64 #865
at jenkins.model.lazy.LazyBuildMixIn.newBuild(LazyBuildMixIn.java:193)
at hudson.model.AbstractProject.newBuild(AbstractProject.java:967)
at hudson.model.AbstractProject.createExecutable(AbstractProject.java:1143)
at hudson.model.AbstractProject.createExecutable(AbstractProject.java:137)
at hudson.model.Executor$1.call(Executor.java:365)
at hudson.model.Executor$1.call(Executor.java:347)
at hudson.model.Queue._withLock(Queue.java:1439)
at hudson.model.Queue.withLock(Queue.java:1300)
at hudson.model.Executor.run(Executor.java:347)
Caused by: java.lang.IllegalStateException: JENKINS-23152: /var/lib/jenkins/jobs/build_win64/builds/865 already existed; will not overwrite with build_win64 #865
at hudson.model.RunMap.put(RunMap.java:189)
at jenkins.model.lazy.LazyBuildMixIn.newBuild(LazyBuildMixIn.java:185)
... 8 more
I tried building multiple times and can see multiple entries in the log, the build number continues to increment and the job continues to fail because of the problem on the build machine. When I took that build machine offline the job failed for the same reason on another build node
later in the log
Mar 26, 2019 7:26:58 AM jenkins.model.lazy.LazyBuildMixIn newBuild
WARNING: A new build could not be created in job build_win64
java.lang.IllegalStateException: JENKINS-23152: /var/lib/jenkins/jobs/build_win64/builds/867 already existed; will not overwrite with build_win64 #867
at hudson.model.RunMap.put(RunMap.java:189)
at jenkins.model.lazy.LazyBuildMixIn.newBuild(LazyBuildMixIn.java:185)
at hudson.model.AbstractProject.newBuild(AbstractProject.java:967)
at hudson.model.AbstractProject.createExecutable(AbstractProject.java:1143)
at hudson.model.AbstractProject.createExecutable(AbstractProject.java:137)
at hudson.model.Executor$1.call(Executor.java:365)
at hudson.model.Executor$1.call(Executor.java:347)
at hudson.model.Queue._withLock(Queue.java:1439)
at hudson.model.Queue.withLock(Queue.java:1300)
at hudson.model.Executor.run(Executor.java:347)
Mar 26, 2019 7:26:58 AM hudson.model.Executor run
SEVERE: Executor #0 for W1803-BUILD54: Unexpected executor death
java.lang.Error: java.lang.IllegalStateException: JENKINS-23152: /var/lib/jenkins/jobs/build_win64/builds/867 already existed; will not overwrite with build_win64 #867
at jenkins.model.lazy.LazyBuildMixIn.newBuild(LazyBuildMixIn.java:193)
at hudson.model.AbstractProject.newBuild(AbstractProject.java:967)
at hudson.model.AbstractProject.createExecutable(AbstractProject.java:1143)
at hudson.model.AbstractProject.createExecutable(AbstractProject.java:137)
at hudson.model.Executor$1.call(Executor.java:365)
at hudson.model.Executor$1.call(Executor.java:347)
at hudson.model.Queue._withLock(Queue.java:1439)
at hudson.model.Queue.withLock(Queue.java:1300)
at hudson.model.Executor.run(Executor.java:347)
Caused by: java.lang.IllegalStateException: JENKINS-23152: /var/lib/jenkins/jobs/build_win64/builds/867 already existed; will not overwrite with build_win64 #867
at hudson.model.RunMap.put(RunMap.java:189)
at jenkins.model.lazy.LazyBuildMixIn.newBuild(LazyBuildMixIn.java:185)
... 8 more
Trying again resulted in a self-repaired executor and the job running successfully. This problem was fixed in 2.13 (JENKINS-27530) This system has been running 2.138.3 for several months, I haven't seen this problem since the system upgrade, although users could have seen the build failure and not reported it, or retried with success. Path to reproduce: Unclear. Workaround: Take 'Dead Executor' slave offline and disconnect, then reconnect and try the job again. |