java.lang.InterruptedException

Jenkins JIRA | Simon Szumyłowicz | 3 months ago
  1. 0

    Hello, I have recently started using the Amazon EC2 plugin to bring up Jenkins build slaves on demand. They are all created from the same AMI and set to shut down instead of terminate. The transition went very smoothly (as soon as the AMI had everything that was needed) however two of our builds are now misbehaving every single time. I've been able to find some very old slightly similar issues in Jira and Stackoverflow but nothing identical (and nothing using recent version of Jenkins). I am not 100% convinced the EC2 plugin has anything to do with this however this is when the problem started exhibiting. I've managed to narrow this issue to the 'Clean up unused Subversion modules' option in 'Build environment'. Whenever the build starts (either by SCM poll trigger or manually triggerred), the SCM checkout happens successfully (this is regardless of there being changes) and after the 'At revision xxx' message is printed out in the log, nothing happens anymore (no matter how long the job is left running) apart from the spinning circle. I have discovered that hitting the cancel button when in the console log page (top right next to the progress bar) will display a stacktrace in the build but the build will continue happily afterwards. Here's the stacktrace: {noformat} java.lang.InterruptedException at java.lang.Object.wait(Native Method) at hudson.remoting.Request.call(Request.java:147) at hudson.remoting.Channel.call(Channel.java:780) at hudson.FilePath.act(FilePath.java:1007) at hudson.FilePath.act(FilePath.java:996) at hudson.FilePath.isDirectory(FilePath.java:1532) at jenkins.plugins.workspace_cleaner.FilePathAdapter.isDirectory(FilePathAdapter.java:52) at jenkins.plugins.workspace_cleaner.ModuleCleaner.getSvnModulesIn(ModuleCleaner.java:59) at jenkins.plugins.workspace_cleaner.ModuleCleaner.getSvnModulesIn(ModuleCleaner.java:60) at jenkins.plugins.workspace_cleaner.ModuleCleaner.getSvnModulesIn(ModuleCleaner.java:60) at jenkins.plugins.workspace_cleaner.ModuleCleaner.getSvnModulesInFileSystem(ModuleCleaner.java:43) at jenkins.plugins.workspace_cleaner.ModuleCleaner.removeUnconfiguredModules(ModuleCleaner.java:21) at jenkins.plugins.workspace_cleaner.JenkinsGlue.setUp(JenkinsGlue.java:32) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:655) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1720) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:404) {noformat} I've worked around this by disabling this option. Let me know if I can provide any more info that could help.

    Jenkins JIRA | 3 months ago | Simon Szumyłowicz
    java.lang.InterruptedException
  2. 0

    GitHub comment 18980#174621206

    GitHub | 10 months ago | lavalamp
    java.lang.InterruptedException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    [JIRA] [ec2-plugin] (JENKINS-15931) Build is hanging on newly created EC2 slaves

    Google Groups | 11 months ago | francisu@gmail.com (JIRA)
    java.lang.InterruptedException
  5. 0

    GitHub comment 24267#210178583

    GitHub | 8 months ago | lavalamp
    java.lang.InterruptedException
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)
    1 frame
  3. Hudson :: Remoting Layer
    Channel.call
    1. hudson.remoting.Request.call(Request.java:147)
    2. hudson.remoting.Channel.call(Channel.java:780)
    2 frames
  4. Hudson
    FilePath.isDirectory
    1. hudson.FilePath.act(FilePath.java:1007)
    2. hudson.FilePath.act(FilePath.java:996)
    3. hudson.FilePath.isDirectory(FilePath.java:1532)
    3 frames
  5. jenkins.plugins.workspace_cleaner
    JenkinsGlue.setUp
    1. jenkins.plugins.workspace_cleaner.FilePathAdapter.isDirectory(FilePathAdapter.java:52)
    2. jenkins.plugins.workspace_cleaner.ModuleCleaner.getSvnModulesIn(ModuleCleaner.java:59)
    3. jenkins.plugins.workspace_cleaner.ModuleCleaner.getSvnModulesIn(ModuleCleaner.java:60)
    4. jenkins.plugins.workspace_cleaner.ModuleCleaner.getSvnModulesIn(ModuleCleaner.java:60)
    5. jenkins.plugins.workspace_cleaner.ModuleCleaner.getSvnModulesInFileSystem(ModuleCleaner.java:43)
    6. jenkins.plugins.workspace_cleaner.ModuleCleaner.removeUnconfiguredModules(ModuleCleaner.java:21)
    7. jenkins.plugins.workspace_cleaner.JenkinsGlue.setUp(JenkinsGlue.java:32)
    7 frames
  6. Hudson Maven Embedder
    MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun
    1. hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:655)
    1 frame
  7. Hudson
    Run.execute
    1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
    2. hudson.model.Run.execute(Run.java:1720)
    2 frames
  8. Hudson Maven Embedder
    MavenModuleSetBuild.run
    1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
    1 frame
  9. Hudson
    Executor.run
    1. hudson.model.ResourceController.execute(ResourceController.java:98)
    2. hudson.model.Executor.run(Executor.java:404)
    2 frames