[JIRA] (JENKINS-50729) exception when cleaning workspace

23 views
Skip to first unread message

dan@danny.cz (JIRA)

unread,
Apr 11, 2018, 4:46:03 AM4/11/18
to jenkinsc...@googlegroups.com
Dan Horák created an issue
 
Jenkins / Bug JENKINS-50729
exception when cleaning workspace
Issue Type: Bug Bug
Assignee: Mark Waite
Components: git-plugin
Created: 2018-04-11 08:45
Environment: Jenkins ver. 2.107.1
Git plugin 3.8.0
Priority: Major Major
Reporter: Dan Horák

Jenkins is not able to clean workspace before updating strace git checkout. It crashes with

 
{{ Started by upstream project "[strace]" build number [98]}}
{{ originally caused by:}}
{{ Started by an SCM change}}
{{ Building remotely on }}
{{ [p8-ppc64le]}}
{{ (Fedora F27 ppc64le) in workspace /home/jenkins/workspace/strace/label/ppc64le}}
{{ Cloning the remote Git repository}}
{{ Cloning repository }}
{{ https://github.com/strace/strace.git}}
{{ ERROR: Failed to clean the workspace}}
{{ java.io.IOException: Unable to delete '/home/jenkins/workspace/strace/label/ppc64le'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.}}
{{ at hudson.Util.deleteContentsRecursive(Util.java:238)}}
{{ at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:555)}}
{{ at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)}}
{{ at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)}}
{{ at hudson.remoting.UserRequest.perform(UserRequest.java:210)}}
{{ at hudson.remoting.UserRequest.perform(UserRequest.java:53)}}
{{ at hudson.remoting.Request$2.run(Request.java:364)}}
{{ at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)}}
{{ at java.util.concurrent.FutureTask.run(FutureTask.java:266)}}
{{ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)}}
{{ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)}}
{{ at java.lang.Thread.run(Thread.java:748)}}
{{ Caused by: java.io.IOException: Unable to delete /home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir - files in dir: [/home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir/078 9}}
{{ 1}}
{{ 78 \'"<<0::0>>1~ ��]}}
{{ at hudson.Util.tryOnceDeleteFile(Util.java:303)}}
{{ at hudson.Util.tryOnceDeleteRecursive(Util.java:369)}}
{{ at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:388)}}
{{ at hudson.Util.tryOnceDeleteRecursive(Util.java:368)}}
{{ at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:388)}}
{{ at hudson.Util.deleteContentsRecursive(Util.java:233)}}
{{ ... 11 more}}
{{ Caused by: java.nio.file.DirectoryNotEmptyException: /home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir}}
{{ at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)}}
{{ at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)}}
{{ at java.nio.file.Files.deleteIfExists(Files.java:1165)}}
{{ at hudson.Util.tryOnceDeleteFile(Util.java:297)}}
{{ ... 16 more}}
{{ ERROR: Error cloning remote repo 'origin'}}
{{ hudson.plugins.git.GitException: Failed to delete workspace}}
{{ at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:558)}}
{{ at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)}}
{{ at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)}}
{{ at hudson.remoting.UserRequest.perform(UserRequest.java:210)}}
{{ at hudson.remoting.UserRequest.perform(UserRequest.java:53)}}
{{ at hudson.remoting.Request$2.run(Request.java:364)}}
{{ at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)}}
{{ at java.util.concurrent.FutureTask.run(FutureTask.java:266)}}
{{ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)}}
{{ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)}}
{{ at java.lang.Thread.run(Thread.java:748)}}
{{ Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to p8-ppc64le}}
{{ at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1737)}}
{{ at hudson.remoting.UserResponse.retrieve(UserRequest.java:313)}}
{{ at hudson.remoting.Channel.call(Channel.java:952)}}
{{ at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)}}
{{ at sun.reflect.GeneratedMethodAccessor821.invoke(Unknown Source)}}
{{ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)}}
{{ at java.lang.reflect.Method.invoke(Method.java:498)}}
{{ at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)}}
{{ at com.sun.proxy.$Proxy66.execute(Unknown Source)}}
{{ at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1120)}}
{{ at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1160)}}
{{ at hudson.scm.SCM.checkout(SCM.java:504)}}
{{ at hudson.model.AbstractProject.checkout(AbstractProject.java:1203)}}
{{ at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)}}
{{ at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)}}
{{ at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)}}
{{ at hudson.model.Run.execute(Run.java:1727)}}
{{ at hudson.matrix.MatrixRun.run(MatrixRun.java:146)}}
{{ at hudson.model.ResourceController.execute(ResourceController.java:97)}}
{{ at hudson.model.Executor.run(Executor.java:429)}}
{{ Caused by: java.io.IOException: Unable to delete '/home/jenkins/workspace/strace/label/ppc64le'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.}}
{{ at hudson.Util.deleteContentsRecursive(Util.java:238)}}
{{ at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:555)}}
{{ ... 10 more}}
{{ Caused by: java.io.IOException: Unable to delete /home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir - files in dir: [/home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir/078 9}}
{{ 1}}
{{ 78 \'"<<0::0>>1~ ��]}}
{{ at hudson.Util.tryOnceDeleteFile(Util.java:303)}}
{{ at hudson.Util.tryOnceDeleteRecursive(Util.java:369)}}
{{ at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:388)}}
{{ at hudson.Util.tryOnceDeleteRecursive(Util.java:368)}}
{{ at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:388)}}
{{ at hudson.Util.deleteContentsRecursive(Util.java:233)}}
{{ ... 11 more}}
{{ Caused by: java.nio.file.DirectoryNotEmptyException: /home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir}}
{{ at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)}}
{{ at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)}}
{{ at java.nio.file.Files.deleteIfExists(Files.java:1165)}}
{{ at hudson.Util.tryOnceDeleteFile(Util.java:297)}}
{{ ... 16 more}}
{{ ERROR: Error cloning remote repo 'origin'}}
{{ Finished: FAILURE}}

 

Clearly there is a problem with non-ascii/non-utf8/crazy characters in the filenames created by strace test-suite

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 12, 2018, 2:39:01 PM4/12/18
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
Change By: Mark Waite
Assignee: Mark Waite

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 12, 2018, 2:43:01 PM4/12/18
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-50729
 
Re: exception when cleaning workspace

What are the precise file names of the files which can't be deleted?

Are the files removed by a rm -rf directory-name?

Are the files removed by git clean -xffd?

dan@danny.cz (JIRA)

unread,
Apr 12, 2018, 3:49:07 PM4/12/18
to jenkinsc...@googlegroups.com

[jenkins@guest02 ~]$ ll workspace/strace/label/ppc64le/tests/fsync-y.dir/
total 0
rw------. 1 jenkins jenkins 0 Apr 3 13:27 '\001\002''0'$'\v\004''7'$'\f\005''8'$'\t\a''9'$'\n\b\017''1'$'\r\016''7'$'\021''8'$'\037'' \'\''"<<0::0>>1~'$'\177\200\377'

 

I can upload a tar with the offending filename.

yes, rm -rf removes the dir

yes, git clean -xfd removes the dir

dan@danny.cz (JIRA)

unread,
Apr 16, 2018, 9:18:02 AM4/16/18
to jenkinsc...@googlegroups.com
Dan Horák updated an issue
Change By: Dan Horák
Attachment: jenkins-clean-bug.tar.gz

dan@danny.cz (JIRA)

unread,
Apr 16, 2018, 9:20:02 AM4/16/18
to jenkinsc...@googlegroups.com

The attached jenkins-clean-bug.tar.gz file contains /var/lib/jenkins/workspace provoking the crash (on a x86_64 system).

mark.earl.waite@gmail.com (JIRA)

unread,
May 1, 2018, 11:12:03 AM5/1/18
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
Change By: Mark Waite
Jenkins is not able to clean workspace before updating strace git checkout. It crashes with


{ noformat } }

{noformat
} }

 

Clearly there is a problem with non-ascii/non-utf8/crazy characters in the filenames created by strace test-suite

eduard.weiss@bosch-fs.com (JIRA)

unread,
Sep 20, 2018, 2:34:02 AM9/20/18
to jenkinsc...@googlegroups.com

I have the same problem. Our files have german umlaut in its name.

Is there are a workaround?

 

PS:

I can successfuly remove this files via sh rm

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

eduard.weiss@bosch-fs.com (JIRA)

unread,
Sep 20, 2018, 2:37:03 AM9/20/18
to jenkinsc...@googlegroups.com
Eduard Weiss edited a comment on Bug JENKINS-50729
I have the same problem. Our files have german umlaut in its name.

Is there are a workaround?

 

PS:

I can successfuly remove this files via *sh rm*. 

The Jenkins slave is started with JVM Options *-Dfile.encoding="UTF-8" -Dsun.jnu.encoding="UTF-8"* and env variable *LANG=en_US.UTF-8*

michal.gliniecki@boombit.com (JIRA)

unread,
Jan 9, 2019, 3:16:03 AM1/9/19
to jenkinsc...@googlegroups.com

I got the same problem after updating Jenkins to the 2.157. Rollback to the 2.155 fixed it for now. 

Jenkins 2.157

git-client 2.7.5

git-plugin 3.9.1

Cloning the remote Git repositoryCloning the remote Git repositoryCloning repository g...@bitbucket.org/repo.gitERROR: Failed to clean the workspacejenkins.util.io.CompositeIOException: Unable to delete '/users/jenkins/core-agent/workspace/Core/Installer Legacy'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)jenkins.util.io.CompositeIOException: Unable to remove directory /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll with directory contents: [/users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll/Info, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll/Installer.1.10.0-p10.nupkg, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll/Installer.nuspec, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll/Unity2017.4, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll/Unity2018.1] at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:233) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)java.nio.file.DirectoryNotEmptyException: /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:220) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)java.nio.file.DirectoryNotEmptyException: /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:224) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)jenkins.util.io.CompositeIOException: Unable to remove directory /users/jenkins/core-agent/workspace/Core/Installer Legacy/Solution with directory contents: [/users/jenkins/core-agent/workspace/Core/Installer Legacy/Solution/InstallerSolution] at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:233) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)java.nio.file.DirectoryNotEmptyException: /users/jenkins/core-agent/workspace/Core/Installer Legacy/Solution at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:220) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)java.nio.file.DirectoryNotEmptyException: /users/jenkins/core-agent/workspace/Core/Installer Legacy/Solution at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:224) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)jenkins.util.io.CompositeIOException: Unable to remove directory /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source with directory contents: [/users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/.git, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/.gitignore, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/changelog.txt, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/changelog.txt.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/Editor, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/Editor.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/info.xml, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/info.xml.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/InstallerStandalone.csproj, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/InstallerStandalone.csproj.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/InstallerStandalone.sln, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/InstallerStandalone.sln.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/Program.cs, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/Program.cs.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/Properties, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/Properties.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/SolutionConfig.xml, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/SolutionConfig.xml.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/standaloneDebug.sh, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/standaloneDebug.sh.meta] at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:233) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)java.nio.file.DirectoryNotEmptyException: /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:220) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)java.nio.file.DirectoryNotEmptyException: /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:224) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)ERROR: Error cloning remote repo 'origin'hudson.plugins.git.GitException: Failed to delete workspace at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:595) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to core-agent at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743) at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357) at hudson.remoting.Channel.call(Channel.java:957) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146) at sun.reflect.GeneratedMethodAccessor422.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132) at com.sun.proxy.$Proxy80.execute(Unknown Source) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1146) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1186) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:51) at hudson.security.ACL.impersonate(ACL.java:290) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:48) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ... 4 moreCaused by: jenkins.util.io.CompositeIOException: Unable to delete '/users/jenkins/core-agent/workspace/Core/Installer Legacy'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) ... 10 more

michael.sanders@materna.de (JIRA)

unread,
Jan 9, 2019, 7:01:02 AM1/9/19
to jenkinsc...@googlegroups.com

I had the same issue. A downgrade to 2.156 fixed this.

mark.earl.waite@gmail.com (JIRA)

unread,
Jan 9, 2019, 7:33:04 AM1/9/19
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
Change By: Mark Waite
Component/s: core
Component/s: git-plugin

mark.earl.waite@gmail.com (JIRA)

unread,
Jan 9, 2019, 7:34:02 AM1/9/19
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
Change By: Mark Waite
Component/s: git-plugin
Component/s: core

mark.earl.waite@gmail.com (JIRA)

unread,
Jan 9, 2019, 7:37:02 AM1/9/19
to jenkinsc...@googlegroups.com

Michael Sanders and Michał Gliniecki please open a new bug report. The stack trace in your bug reports do not include the exotically named file that is mentioned as the critical attribute of this file. There was a Jenkins core change by Matt Sicker that seems like it might be involved in this case but is not involved in the original bug report to which you attached your stack trace.

When you open that new bug, please make the component core and the assignee Matt Sicker.

mark.earl.waite@gmail.com (JIRA)

unread,
Jan 9, 2019, 7:37:03 AM1/9/19
to jenkinsc...@googlegroups.com
Mark Waite edited a comment on Bug JENKINS-50729
[~msanders] and [~michal_gliniecki] please open a new bug report.  The stack trace in your bug reports do not include the exotically named file that is mentioned as the critical attribute of this file bug report .  There was a [Jenkins core change|https://github.com/jenkinsci/jenkins/commits/65ecd43ecea3c3798b517959ce3e84201442492d/core/src/main/java/jenkins/util/io/PathRemover.java] by [~jvz] that seems like it might be involved in this case but is not involved in the original bug report to which you attached your stack trace.

When you open that new bug, please make the component {{core}} and the assignee [~jvz].

mark.earl.waite@gmail.com (JIRA)

unread,
Jan 9, 2019, 7:38:02 AM1/9/19
to jenkinsc...@googlegroups.com
Mark Waite edited a comment on Bug JENKINS-50729
[~msanders] and [~michal_gliniecki] please open a new bug report.  The stack trace in your bug reports do not include the exotically named file that is mentioned as the critical attribute of this bug report.  There was a [Jenkins core change|https://github.com/jenkinsci/jenkins/commits/65ecd43ecea3c3798b517959ce3e84201442492d/core/src/main/java/jenkins/util/io/PathRemover.java] by [~jvz] in Jenkins 2.157 that seems like it might be involved in this case but is not involved in the original bug report to which you attached your stack trace.


When you open that new bug, please make the component {{core}} and the assignee [~jvz].

michael.sanders@materna.de (JIRA)

unread,
Jan 9, 2019, 8:26:02 AM1/9/19
to jenkinsc...@googlegroups.com

michal.gliniecki@boombit.com (JIRA)

unread,
Jan 9, 2019, 8:34:03 AM1/9/19
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Jan 9, 2019, 12:25:02 PM1/9/19
to jenkinsc...@googlegroups.com
Mark Waite edited a comment on Bug JENKINS-50729
[~msanders] and [~michal_gliniecki] please open a new bug report.  The stack trace in your bug reports do not include the exotically named file that is mentioned as the critical attribute of this bug report.

  There was a [Jenkins core change|https://github.com/jenkinsci/jenkins/commits/65ecd43ecea3c3798b517959ce3e84201442492d/core/src/main/java/jenkins/util/io/PathRemover.java] by [~jvz] in Jenkins 2.157 that seems like it might be involved in this case but is not involved in the original bug report to which you attached your stack trace.

When you open that new bug, please make the component {{core}} and the assignee [~jvz].
Reply all
Reply to author
Forward
0 new messages