java.lang.InterruptedException

Jenkins JIRA | Marc Sanfacon | 5 years ago
  1. 0

    I noticed that on several jobs running on different Windows slaves, it takes a long time for the job to end, as seen in the following: {quote} 13:53:35 D:\Jenkins\workspace\CES7.0R_InstallKit>exit 0 14:09:36 [WARNINGS] Parsing warnings in console log with parsers [MSBuild] 14:09:36 [WARNINGS] MSBuild : Found 24 warnings. {quote} I saw another issue regarding the archiving of artifacts #7641, but in our case, this specific job does not have artifacts enabled. Also, I noticed this on different jobs, some are builds and some are tests. Anything I can do to help debug this? --------------------------------- I stopped a build that was hung and I got this call stack: {quote} 10:48:26 f:\Jenkins\workspace\CES7.0Dx86_WIN>exit 9009 10:48:27 Build step 'Execute Windows batch command' marked build as failure 11:07:55 ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception 11:07:55 java.lang.InterruptedException 11:07:55 at java.lang.Object.wait(Native Method) 11:07:55 at java.lang.Object.wait(Object.java:485) 11:07:55 at hudson.model.Run$Runner$CheckpointSet.waitForCheckPoint(Run.java:1295) 11:07:55 at hudson.model.Run.waitForCheckpoint(Run.java:1263) 11:07:55 at hudson.model.CheckPoint.block(CheckPoint.java:144) 11:07:55 at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:25) 11:07:55 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) 11:07:55 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) 11:07:55 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) 11:07:55 at hudson.model.Build$RunnerImpl.post2(Build.java:162) 11:07:55 at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614) 11:07:55 at hudson.model.Run.run(Run.java:1429) 11:07:55 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 11:07:55 at hudson.model.ResourceController.execute(ResourceController.java:88) 11:07:55 at hudson.model.Executor.run(Executor.java:238) {quote} Looks like the culprit is the WarningsPublisher plugin. I'll disable it for now.

    Jenkins JIRA | 5 years ago | Marc Sanfacon
    java.lang.InterruptedException
  2. 0

    I noticed that on several jobs running on different Windows slaves, it takes a long time for the job to end, as seen in the following: {quote} 13:53:35 D:\Jenkins\workspace\CES7.0R_InstallKit>exit 0 14:09:36 [WARNINGS] Parsing warnings in console log with parsers [MSBuild] 14:09:36 [WARNINGS] MSBuild : Found 24 warnings. {quote} I saw another issue regarding the archiving of artifacts #7641, but in our case, this specific job does not have artifacts enabled. Also, I noticed this on different jobs, some are builds and some are tests. Anything I can do to help debug this? --------------------------------- I stopped a build that was hung and I got this call stack: {quote} 10:48:26 f:\Jenkins\workspace\CES7.0Dx86_WIN>exit 9009 10:48:27 Build step 'Execute Windows batch command' marked build as failure 11:07:55 ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception 11:07:55 java.lang.InterruptedException 11:07:55 at java.lang.Object.wait(Native Method) 11:07:55 at java.lang.Object.wait(Object.java:485) 11:07:55 at hudson.model.Run$Runner$CheckpointSet.waitForCheckPoint(Run.java:1295) 11:07:55 at hudson.model.Run.waitForCheckpoint(Run.java:1263) 11:07:55 at hudson.model.CheckPoint.block(CheckPoint.java:144) 11:07:55 at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:25) 11:07:55 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) 11:07:55 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) 11:07:55 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) 11:07:55 at hudson.model.Build$RunnerImpl.post2(Build.java:162) 11:07:55 at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614) 11:07:55 at hudson.model.Run.run(Run.java:1429) 11:07:55 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 11:07:55 at hudson.model.ResourceController.execute(ResourceController.java:88) 11:07:55 at hudson.model.Executor.run(Executor.java:238) {quote} Looks like the culprit is the WarningsPublisher plugin. I'll disable it for now.

    Jenkins JIRA | 5 years ago | Marc Sanfacon
    java.lang.InterruptedException
  3. 0

    Build hung during post-build actions

    Google Groups | 5 years ago | edriscoll
    java.lang.InterruptedException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    when jenkins triggers a build using gerrit trigger plugin and the -DGERRIT_CHANGE_SUBJECT contains " chars, it doesnt escapse the char properly and mvn command fails. the original patch text: adding "\" to end of search will cause Exception message example run: /var/lib/jenkins/tools/maven_2.2.1/bin/mvn '-DGERRIT_CHANGE_SUBJECT=adding \"\\" to end of search will cause Exception message ' -DGERRIT_REFSPEC=refs/changes/76/1076/6 -DGERRIT_BRANCH=review -DGERRIT_PATCHSET_NUMBER=6 -DGERRIT_CHANGE_URL=http://gerrit.server.com/1076 -DGERRIT_CHANGE_ID=Ied1bcb88901485a62a4ec236edd7d10816edf9ba -DGERRIT_PATCHSET_REVISION=226c6b02b5a12f0cfa2af1c9d9f634c1cf928184 -DGERRIT_CHANGE_NUMBER=1076 -DGERRIT_PROJECT=rhevm -Dmaven.repo.local=/mnt/iscsi/workspaces/gerrit_tests/.repository clean install findbugs:findbugs maven fails with: [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Invalid task 'to': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 second [INFO] Finished at: Sun Jul 24 23:42:17 IDT 2011 [INFO] Final Memory: 45M/7850M [INFO] ------------------------------------------------------------------------ Build step 'Invoke top-level Maven targets' marked build as failure ERROR: Publisher hudson.plugins.findbugs.FindBugsPublisher aborted due to exception java.lang.InterruptedException at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:485) at hudson.model.Run$Runner$CheckpointSet.waitForCheckPoint(Run.java:1267) at hudson.model.Run.waitForCheckpoint(Run.java:1235) at hudson.model.CheckPoint.block(CheckPoint.java:144) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:25) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604) at hudson.model.Run.run(Run.java:1400) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175) Finished: FAILURE

    Jenkins JIRA | 5 years ago | Eyal Edri
    java.lang.InterruptedException
  6. 0

    This *may* be related to https://issues.jenkins-ci.org/browse/JENKINS-12610, but the last comment there is a request for replication instructions. Sometimes, (I *think* when filenames with upper ASCII characters exist in the workspace), Jenkins fails to wipe the workspace, instead leaving some directories without the execute permission bit set, but reports that the wipe was successful. Then because the workspace directory can't be accessed, the code checkout (using the perforce plugin) fails, giving a misleading error that the problem has to do with communications with the source control server. When I ssh into the server to cleanup, I see that the 'workspace' (or 'workspace@2' or 'workspace@3' or ...) directory has lost its executable bit. I 'chmod +x workspace', 'cd workspace', and see that the top-level checkout directory has also lost its executable bit. I restore that bit, change into that directory, and see that 'etc' (but no other directories) has lost its executable bit. I follow the trail of non-executable directories, and come to a directory with just a few files or symlinks in it, all with upper ASCII characters (other files in the directory have been deleted). By resetting permissions along the way and deleting those files, the next build to use that workspace has no problems. The files that have to be manually removed are: lrwxrwxrwx 1 jenkins jenkins 65 Oct 11 2012 AC_Raíz_Certicámara_S.A..pem -> /usr/share/ca-certificates/mozilla/AC_Raíz_Certicámara_S.A..crt lrwxrwxrwx 1 jenkins jenkins 68 Oct 11 2012 Certinomis_-_Autorité_Racine.pem -> /usr/share/ca-certificates/mozilla/Certinomis_-_Autorité_Racine.crt lrwxrwxrwx 1 jenkins jenkins 86 Oct 11 2012 EBG_Elektronik_Sertifika_Hizmet_Sağlayıcısı.pem -> /usr/share/ca-certificates/mozilla/EBG_Elektronik_Sertifika_Hizmet_Sağlayıcısı.crt lrwxrwxrwx 1 jenkins jenkins 83 Oct 11 2012 NetLock_Arany_=Class_Gold=_Főtanúsítvány.pem -> /usr/share/ca-certificates/mozilla/NetLock_Arany_=Class_Gold=_Főtanúsítvány.crt lrwxrwxrwx 1 jenkins jenkins 104 Oct 11 2012 TÜBİTAK_UEKAE_Kök_Sertifika_Hizmet_Sağlayıcısı_-_Sürüm_3.pem -> /usr/share/ca-certificates/mozilla/TÜBİTAK_UEKAE_Kök_Sertifika_Hizmet_Sağlayıcısı_-_Sürüm_3.crt I am using Jenkins installed from the repositories on Ubuntu 12.04 on a 64-bit VM, then I've overwritten the jenkins.war with the current LTS (1.480.3). Our build process sets up a chroot environment, and the files in question are coming from /etc/ssl/certs/. To replicate, you should be able to use a script like this (takes a few minutes to copy everything over) inside a workspace: #!/bin/bash dirlist="bin etc lib sbin" for checkdir in lib32 lib64 do if [ -d "/$checkdir" ] then dirlist="$dirlist $checkdir" fi done for getdir in $dirlist do tar -cf - /$getdir/* 2>/dev/null | tar -xf - done # I am pretty sure the exclude=ca-certificates was an older attempt # to avoid this issue, which I started running into again after # copying all of /etc instead of using --no-recursion to only # copy part of it tar --exclude-backups --exclude=backgrounds --exclude=ca-certificates --exclude=vmware-tools --exclude='linux-headers-*' --exclude=/usr/share/doc -cf - /usr 2>/dev/null | tar -xf - mkdir tmp proc dev run var ln -s ../run var/run sudo mount -t devtmpfs none dev sudo mount --bind /proc proc sudo mount --bind /run run our script then does a build inside the new chroot, like: sudo chroot $workspace_directory /bin/bash -c "cd Tools && ./build.sh" and after finishing, cleans up its mounts and root-owned files with: sudo umount run sudo umount proc sudo umount dev builduser=$(whoami) sudo chroot $workspace_directory /bin/bash -c "chown -R ${builduser}: /" Then the next build to use that workspace fails to clean up properly, and no builds can use that workspace until it is manually restored. The console log for a failing build looks like (note especially the misleading "Clean complete" text): Started by user Bennett, Drew Building in workspace /var/lib/jenkins/jobs/try/workspace@2 Using master perforce client: owi_unittest_try_2 [workspace@2] $ /opt/p4/bin/p4 workspace -o owi_unittest_try_2 Note: .repository directory in workspace (if exists) is skipped during clean. Wiping workspace... Wiped workspace. Clean complete, took 10062 ms Last build changeset: 546966 [workspace@2] $ /opt/p4/bin/p4 changes -s submitted -m 1 //owi_unittest_try_2/... [workspace@2] $ /opt/p4/bin/p4 counter change Caught exception communicating with perforce. Could not run perforce command.com.tek42.perforce.PerforceException: Could not run perforce command. at hudson.plugins.perforce.HudsonP4DefaultExecutor.exec(HudsonP4DefaultExecutor.java:88) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:321) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:292) at com.tek42.perforce.parse.Counters.getCounter(Counters.java:60) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:903) at hudson.model.AbstractProject.checkout(AbstractProject.java:1256) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:590) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:495) at hudson.model.Run.execute(Run.java:1502) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: java.io.IOException: Cannot run program "/opt/p4/bin/p4" (in directory "/var/lib/jenkins/jobs/try/workspace@2"): java.io.IOException: error=13, Permission denied at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:709) at hudson.Launcher$ProcStarter.start(Launcher.java:338) at hudson.plugins.perforce.HudsonP4DefaultExecutor.exec(HudsonP4DefaultExecutor.java:79) ... 12 more Caused by: java.io.IOException: java.io.IOException: error=13, Permission denied at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) at java.lang.ProcessImpl.start(ProcessImpl.java:81) at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) ... 17 more ERROR: Unable to communicate with perforce. Could not run perforce command. Archiving artifacts ERROR: Publisher hudson.plugins.emailext.ExtendedEmailPublisher aborted due to exception java.lang.InterruptedException at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:502) at hudson.model.Run$RunExecution$CheckpointSet.waitForCheckPoint(Run.java:1363) at hudson.model.Run.waitForCheckpoint(Run.java:1321) at hudson.model.CheckPoint.block(CheckPoint.java:144) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:35) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:718) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:693) at hudson.model.Build$BuildExecution.cleanUp(Build.java:192) at hudson.model.Run.execute(Run.java:1546) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Finished: FAILURE

    Jenkins JIRA | 4 years ago | Drew Bennett
    java.lang.InterruptedException

  1. treefolk 1 times, last 2 weeks ago
  2. danleyb2Interintel 1 times, last 3 weeks ago
  3. filpgame 1 times, last 2 months ago
  4. Nikolay Rybak 4 times, last 4 months ago
  5. Handemelindo 1 times, last 4 months ago
6 more registered users
18 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.InterruptedException

    No message provided

    at java.lang.Object.wait()
  2. Java RT
    Object.wait
    1. java.lang.Object.wait(Native Method)
    2. java.lang.Object.wait(Object.java:485)
    2 frames
  3. Hudson
    Executor.run
    1. hudson.model.Run$Runner$CheckpointSet.waitForCheckPoint(Run.java:1295)
    2. hudson.model.Run.waitForCheckpoint(Run.java:1263)
    3. hudson.model.CheckPoint.block(CheckPoint.java:144)
    4. hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:25)
    5. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692)
    6. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667)
    7. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645)
    8. hudson.model.Build$RunnerImpl.post2(Build.java:162)
    9. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614)
    10. hudson.model.Run.run(Run.java:1429)
    11. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    12. hudson.model.ResourceController.execute(ResourceController.java:88)
    13. hudson.model.Executor.run(Executor.java:238)
    13 frames