Quantcast

Unable to delete unicode files during workspace cleanup

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Unable to delete unicode files during workspace cleanup

grayaii
Hi,
We have a bunch of files with unicode character's in its name.
We use the Perforce plugin (version 1.3.7) to "Clean Workspace Before Each Build".
The job fails like so (I put the "..." to hide the full path, but you get the drift):
java.io.IOException: Unable to delete /.../XmlParseUtilityTestFiles/��ҿ]
        at hudson.Util.deleteFile(Util.java:265)
        at hudson.Util.deleteRecursive(Util.java:316)
        at hudson.Util.deleteContentsRecursive(Util.java:227)
        at hudson.Util.deleteRecursive(Util.java:307)
        at hudson.Util.deleteContentsRecursive(Util.java:227)
        at hudson.Util.deleteRecursive(Util.java:307)
        at hudson.Util.deleteContentsRecursive(Util.java:227)
        at hudson.Util.deleteRecursive(Util.java:307)
        at hudson.FilePath$9.invoke(FilePath.java:853)
        at hudson.FilePath$9.invoke(FilePath.java:851)
        at hudson.FilePath.act(FilePath.java:785)
        at hudson.FilePath.act(FilePath.java:767)
        at hudson.FilePath.deleteRecursive(FilePath.java:851)
        at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:586)
        at hudson.model.AbstractProject.checkout(AbstractProject.java:1193)
        at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:566)
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:454)
        at hudson.model.Run.run(Run.java:1389)
        at hudson.matrix.MatrixBuild.run(MatrixBuild.java:220)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:230)
        at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)

We use tomcat to launch Jenkins, and in our catalina.sh we have:
export LANG=en_US.UTF-8

and in our server.xml I see in the "Connector" (which is the default):
URIEncoding="UTF-8"

And just to confirm, in our http://jenkins/jenkins/systemInfo page, we see:
file.encoding UTF-8
java.runtime.version 1.6.0_27-b07

Our Jenkins Master is: `uname -a`
Linux jenkins 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

It's almost identical to: https://issues.jenkins-ci.org/browse/JENKINS-12610, except that the LANG env var does not seem to fix this problem.

Any ideas what could be causing this?  It seems to only occur on the Jenkins Master slave, not the other slaves.

Manually rm -rf works fine.

It's driving us nuts.

Thanks!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Unable to delete unicode files during workspace cleanup

Gábor Garami

And these filenames are in utf8? So, if you 'ls' them in a utf8 terminal you can see correct characters?

My guess is these files contain non-utf characters, and jenkins cannot clean them up because an illegal character(s).

Garami Gábor
[hidden email]
Skype: hron84
Tel: +36 20 235 9621

Sent from my T-Mobile G2
Ezt a levelet telefonról adták fel, ékezethibákat tartalmazhat.

2012.10.05. 15:51, "grayaii" <[hidden email]> ezt írta:
Hi,
We have a bunch of files with unicode character's in its name.
We use the Perforce plugin (version 1.3.7) to "Clean Workspace Before Each
Build".
The job fails like so (I put the "..." to hide the full path, but you get
the drift):
java.io.IOException: Unable to delete /.../XmlParseUtilityTestFiles/��ҿ]
        at hudson.Util.deleteFile(Util.java:265)
        at hudson.Util.deleteRecursive(Util.java:316)
        at hudson.Util.deleteContentsRecursive(Util.java:227)
        at hudson.Util.deleteRecursive(Util.java:307)
        at hudson.Util.deleteContentsRecursive(Util.java:227)
        at hudson.Util.deleteRecursive(Util.java:307)
        at hudson.Util.deleteContentsRecursive(Util.java:227)
        at hudson.Util.deleteRecursive(Util.java:307)
        at hudson.FilePath$9.invoke(FilePath.java:853)
        at hudson.FilePath$9.invoke(FilePath.java:851)
        at hudson.FilePath.act(FilePath.java:785)
        at hudson.FilePath.act(FilePath.java:767)
        at hudson.FilePath.deleteRecursive(FilePath.java:851)
        at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:586)
        at hudson.model.AbstractProject.checkout(AbstractProject.java:1193)
        at
hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:566)
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:454)
        at hudson.model.Run.run(Run.java:1389)
        at hudson.matrix.MatrixBuild.run(MatrixBuild.java:220)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:230)
        at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)

We use tomcat to launch Jenkins, and in our catalina.sh we have:
export LANG=en_US.UTF-8

and in our server.xml I see in the "Connector" (which is the default):
URIEncoding="UTF-8"

And just to confirm, in our http://jenkins/jenkins/systemInfo page, we see:
file.encoding   UTF-8
java.runtime.version    1.6.0_27-b07

Our Jenkins Master is: `uname -a`
Linux jenkins 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64
x86_64 x86_64 GNU/Linux

It's almost identical to:
https://issues.jenkins-ci.org/browse/JENKINS-12610, except that the LANG env
var does not seem to fix this problem.

Any ideas what could be causing this?  It seems to only occur on the Jenkins
Master slave, not the other slaves.

Manually rm -rf works fine.

It's driving us nuts.

Thanks!



--
View this message in context: http://jenkins.361315.n4.nabble.com/Unable-to-delete-unicode-files-during-workspace-cleanup-tp4642320.html
Sent from the Jenkins users mailing list archive at Nabble.com.
Loading...