Quantcast

Perforce Workspace Wipeout Problem

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

Perforce Workspace Wipeout Problem

mmsandeep

Hi Folks,
 
   I have a Jenkins problem: I set up my Perforce workspace to be wiped clean at the start of every job run. Every once in a while I see an error like the one shown below, where it fails to wipe the workspace out due to an IO exception in deleting some file. The error seems to be random - I can't figure a pattern to predict when it would happen.

  Typically the file it fails to delete seems to be a huge file (hundreds of MB to a few GB). It is annoying because this is a very intense job that takes several hours to run, and is one of 8 downstream jobs, all of which need to be run again if a failure like this happens.

   Any pointers would be much appreciated.  (I am running this on a Win-7 Ultimate Machine, 8 GB of RAM, 8 executors, 8 cores.  Please do point out if any additional details are needed to figure this problem out)

Thanks,
Sandeep.

Note: .repository directory in workspace (if exists) is skipped during clean.
Wiping workspace...
hudson.util.IOException2: remote file operation failed: c:\jenkins\workspace\EXE_FEATURE_BDW@3\FEATURE_Kernels at hudson.remoting.Channel@63bc0da7:delta
        at hudson.FilePath.act(FilePath.java:835)
        at hudson.FilePath.act(FilePath.java:821)
        at hudson.FilePath.deleteRecursive(FilePath.java:905)
        at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:795)
        at hudson.model.AbstractProject.checkout(AbstractProject.java:1226)
        at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:586)
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475)
        at hudson.model.Run.run(Run.java:1438)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:239)
Caused by: java.io.IOException: Unable to delete c:\jenkins\workspace\EXE_FEATURE_BDW@3\FEATURE_Kernels\Debug - files in dir: [c:\jenkins\workspace\EXE_FEATURE_BDW@3\FEATURE_Kernels\Debug\_ref.log]
        at hudson.Util.deleteFile(Util.java:236)
        at hudson.Util.deleteRecursive(Util.java:287)
        at hudson.Util.deleteContentsRecursive(Util.java:198)
        at hudson.Util.deleteRecursive(Util.java:278)
        at hudson.FilePath$11.invoke(FilePath.java:907)
        at hudson.FilePath$11.invoke(FilePath.java:905)
        at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2193)
        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 hudson.remoting.Engine$1$1.run(Engine.java:60)
        at java.lang.Thread.run(Unknown Source)
[description-setter] Could not determine description.
Finished: FAILURE
Loading...