Error: svn: Working copy <dir> locked; try performing 'cleanup'

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Error: svn: Working copy <dir> locked; try performing 'cleanup'

Ben Walding-3
Since I've upgraded from 104 to 116 (and subsequently 117), I've started receiving the following error when I have an SCM triggered build.

When I check the SVN checkout directory in question; there is no evidence of any locking SVN or otherwise.

When I trigger the build manually, it all works fine.

Has anyone else experienced this? I have tried erasing my workspace to no success.



started
Updating [SVN URL]
ERROR: Failed to update [SVN URL]
org.tmatesoft.svn.core.SVNException: svn: Working copy '/home/hudson/.hudson/jobs/[job]/workspace/[module]' locked; try performing 'cleanup'
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error (SVNErrorManager.java:49)
at org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea14.lock(SVNAdminArea14.java:1335)
at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.doOpen(SVNWCAccess.java:348)
at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open (SVNWCAccess.java:261)
at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.openAnchor(SVNWCAccess.java:153)
at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:145)
at hudson.scm.SubversionSCM$1.invoke (SubversionSCM.java:303)
at hudson.scm.SubversionSCM$1.invoke(SubversionSCM.java:291)
at hudson.FilePath.act(FilePath.java:239)
at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:291)
at hudson.scm.SubversionSCM.checkout (SubversionSCM.java:249)
at hudson.model.AbstractProject.checkout(AbstractProject.java:401)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:158)
at hudson.model.AbstractBuild$AbstractRunner.run (AbstractBuild.java:124)
at hudson.model.Run.run(Run.java:562)
at hudson.model.Build.run(Build.java:121)
at hudson.model.Executor.run(Executor.java:59)



Thanks,

Ben
Reply | Threaded
Open this post in threaded view
|

Re: Error: svn: Working copy <dir> locked; try performing 'cleanup'

Kohsuke Kawaguchi
Administrator
Can you file this as an issue?

I suspect somehow the polling activity and the checkout/update
activity is running in parallel, causing the workspace to be locked.
I've heard another report very recently that seems to point to the
same direction.

I'll try to reimplement the exclusion logic.

2007/7/13, Ben Walding <[hidden email]>:

> Since I've upgraded from 104 to 116 (and subsequently 117), I've started
> receiving the following error when I have an SCM triggered build.
>
> When I check the SVN checkout directory in question; there is no evidence of
> any locking SVN or otherwise.
>
>
> When I trigger the build manually, it all works fine.
>
> Has anyone else experienced this? I have tried erasing my workspace to no
> success.
>
>
>
> started
> Updating [SVN URL]
> ERROR: Failed to update [SVN URL]
>
> org.tmatesoft.svn.core.SVNException: svn: Working copy
> '/home/hudson/.hudson/jobs/[job]/workspace/[module]'
> locked; try performing 'cleanup'
>  at
> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error
> (SVNErrorManager.java:49)
>  at
> org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea14.lock(SVNAdminArea14.java:1335)
>  at
> org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.doOpen(SVNWCAccess.java:348)
>  at
> org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open
> (SVNWCAccess.java:261)
>  at
> org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.openAnchor(SVNWCAccess.java:153)
>  at
> org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:145)
>  at hudson.scm.SubversionSCM$1.invoke
> (SubversionSCM.java:303)
>  at
> hudson.scm.SubversionSCM$1.invoke(SubversionSCM.java:291)
>  at hudson.FilePath.act(FilePath.java:239)
>  at
> hudson.scm.SubversionSCM.checkout(SubversionSCM.java:291)
>  at hudson.scm.SubversionSCM.checkout
> (SubversionSCM.java:249)
>  at
> hudson.model.AbstractProject.checkout(AbstractProject.java:401)
>  at
> hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:158)
>  at hudson.model.AbstractBuild$AbstractRunner.run
> (AbstractBuild.java:124)
>  at hudson.model.Run.run(Run.java:562)
>  at hudson.model.Build.run(Build.java:121)
>  at hudson.model.Executor.run(Executor.java:59)
>
>
>
> Thanks,
>
> Ben
>
>


--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Error: svn: Working copy <dir> locked; try performing 'cleanup'

Kohsuke Kawaguchi
Administrator
Kohsuke Kawaguchi wrote:
> Can you file this as an issue?
>
> I suspect somehow the polling activity and the checkout/update
> activity is running in parallel, causing the workspace to be locked.
> I've heard another report very recently that seems to point to the
> same direction.
>
> I'll try to reimplement the exclusion logic.

Done. Will be in 1.118.

While doing this, I realized that previously I was interrupting the SCM
polling activity if a new build is scheduled.

This might have caused the polling thread to leave the workspace in a
locked state, and thus have the main build fail with the workspace
locked error.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment