org.eclipse.jgit.api.errors.JGitInternalException: Could not delete file C:\JenkinsSlaveHome\slave2\workspace\Somejob\tmp\Store1\trash

Jenkins JIRA | ickersep | 4 years 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

    Since the update of the Git Client plugin to 1.0.4 git clean (Clean after checkout) doesn't work anymore on Windows build agents. It fails with (the file being different between different tries): Cleaning workspace FATAL: Could not delete file C:\JenkinsSlaveHome\slave2\workspace\Somejob\tmp\Store1\trash org.eclipse.jgit.api.errors.JGitInternalException: Could not delete file C:\JenkinsSlaveHome\slave2\workspace\Somejob\tmp\Store1\trash at org.eclipse.jgit.api.CleanCommand.call(CleanCommand.java:137) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.clean(JGitAPIImpl.java:305) at hudson.plugins.git.GitAPI.clean(GitAPI.java:248) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1213) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1196) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Could not delete file C:\JenkinsSlaveHome\slave2\workspace\Gerrit-FieldWorks-Win-any-develop-debug\tmp\Store1\trash at org.eclipse.jgit.util.FileUtils.delete(FileUtils.java:142) at org.eclipse.jgit.api.CleanCommand.call(CleanCommand.java:132) ... 14 more

    Jenkins JIRA | 4 years ago | ickersep
    org.eclipse.jgit.api.errors.JGitInternalException: Could not delete file C:\JenkinsSlaveHome\slave2\workspace\Somejob\tmp\Store1\trash
  2. 0

    Since the update of the Git Client plugin to 1.0.4 git clean (Clean after checkout) doesn't work anymore on Windows build agents. It fails with (the file being different between different tries): Cleaning workspace FATAL: Could not delete file C:\JenkinsSlaveHome\slave2\workspace\Somejob\tmp\Store1\trash org.eclipse.jgit.api.errors.JGitInternalException: Could not delete file C:\JenkinsSlaveHome\slave2\workspace\Somejob\tmp\Store1\trash at org.eclipse.jgit.api.CleanCommand.call(CleanCommand.java:137) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.clean(JGitAPIImpl.java:305) at hudson.plugins.git.GitAPI.clean(GitAPI.java:248) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1213) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1196) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Could not delete file C:\JenkinsSlaveHome\slave2\workspace\Gerrit-FieldWorks-Win-any-develop-debug\tmp\Store1\trash at org.eclipse.jgit.util.FileUtils.delete(FileUtils.java:142) at org.eclipse.jgit.api.CleanCommand.call(CleanCommand.java:132) ... 14 more

    Jenkins JIRA | 4 years ago | ickersep
    org.eclipse.jgit.api.errors.JGitInternalException: Could not delete file C:\JenkinsSlaveHome\slave2\workspace\Somejob\tmp\Store1\trash
  3. 0

    GitHub comment 142#291502739

    GitHub | 2 months ago | scirelli
    org.eclipse.jgit.api.errors.JGitInternalException: Could not delete file /var/lib/jenkins/jobs/DestinationSolPRs/workspace/android/libs/armeabi
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ADB Connection Error

    Stack Overflow | 4 years ago | Raveesh Lawrance
    java.io.IOException: An existing connection was forcibly closed by the remote host at sun.nio.ch.SocketDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(Unknown Source) at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source) at sun.nio.ch.IOUtil.read(Unknown Source) at sun.nio.ch.SocketChannelImpl.read(Unknown Source) at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:395) at com.android.ddmlib.Device.executeShellCommand(Device.java:462) at com.android.ddmuilib.logcat.LogCatReceiver$1.run(LogCatReceiver.java:110)
  6. 0

    java.lang.IllegalArgumentException: URI scheme is not "file"

    java-forums.org | 10 months ago
    java.io.IOException: Server returned HTTP response code: 403 for URL: at sun.net. at slideshowapplet.SlideshowApplet.doListofImagefiles (SlideshowApplet.java:461) at slideshowapplet.SlideshowApplet.init(SlideshowAppl et.java:180) at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Plugin2Manager.java:1658)

    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.io.IOException

      Could not delete file C:\JenkinsSlaveHome\slave2\workspace\Gerrit-FieldWorks-Win-any-develop-debug\tmp\Store1\trash

      at org.eclipse.jgit.util.FileUtils.delete()
    2. JGit - Core
      CleanCommand.call
      1. org.eclipse.jgit.util.FileUtils.delete(FileUtils.java:142)
      2. org.eclipse.jgit.api.CleanCommand.call(CleanCommand.java:132)
      2 frames
    3. org.jenkinsci.plugins
      JGitAPIImpl.clean
      1. org.jenkinsci.plugins.gitclient.JGitAPIImpl.clean(JGitAPIImpl.java:305)
      1 frame
    4. Hudson GIT plugin
      GitSCM$4.invoke
      1. hudson.plugins.git.GitAPI.clean(GitAPI.java:248)
      2. hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1213)
      3. hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1196)
      3 frames
    5. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348)
      1 frame
    6. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:326)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      4 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      2. java.util.concurrent.FutureTask.run(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      5. java.lang.Thread.run(Unknown Source)
      5 frames