How to troubleshoot "bzr: ERROR: Failed to rename"?

Asked by Matt Wilkie

I tried to pull new changes today from lp:leo-editor, been a couple of weeks since the last time, and get this error:

{{{
bzr: ERROR: Failed to rename B:/apps/leo-editor/.bzr/checkout/limbo/new-189 to B
:/apps/leo-editor/leo/plugins/pretty_print.py: [Error 32] The process cannot acc
ess the file because it is being used by another process
}}}

I ran `bzr check`, which found nothing wrong.

SysInternal's Process Explorer does not find any process using that file. (http://technet.microsoft.com/en-gb/sysinternals/bb896653.aspx)

I then ran `bzr update`, which worked for a time and then failed to rename again:

{{{
bzr: ERROR: Failed to rename B:/apps/leo-editor/.bzr/checkout/limbo/new-143 to B
:/apps/leo-editor/leo/plugins/templates.py: [Error 32] The process cannot access
 the file because it is being used by another process
}}}

Finally after a second update everything seemed to work okay. What is causing these errors and is there anything I can do about it?

{{{
>bzr --version
Bazaar (bzr) 2.2.0
  Python interpreter: C:\Program Files (x86)\Bazaar\python26.dll 2.6.4
  Python standard library: C:\Program Files (x86)\Bazaar\lib\library.zip
  Platform: Windows-post2008Server-6.1.7600
  bzrlib: C:\Program Files (x86)\Bazaar\lib\library.zip\bzrlib
  Bazaar configuration: C:\Users\mhwilkie\AppData\Roaming\bazaar\2.0
  Bazaar log file: D:\Docs\Matt\.bzr.log
}}}

Windows 7 Pro x64

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Martin Pool (mbp) said :
#1

Very commonly people see this kind of bug when they have a virus scanner or similar tool monitoring the files as they're written. If you have one, you could try disabling it for this directory and tell us if that fixes it.

Revision history for this message
Matt Wilkie (maphew) said :
#2

I'm not running a virus scanner; but I'll keep an eye out for similar file/process watching apps that may be in effect (say: what about Google Desktop Seach?)

Revision history for this message
Martin Pool (mbp) said :
#3

On 11 November 2010 08:28, Matt Wilkie
<email address hidden> wrote:
> Question #133362 on Bazaar changed:
> https://answers.launchpad.net/bzr/+question/133362
>
> Matt Wilkie posted a new comment:
> I'm not running a virus scanner; but I'll keep an eye out for similar
> file/process watching apps that may be in effect (say: what about Google
> Desktop Seach?)

That could be it. I wish we could work out a way to systematically
avoid this. Perhaps we should just retry a few times.

--
Martin

Revision history for this message
Steve S. (torvista) said :
#4

I had the branch quite deep in a subdirectory structure, I moved it a couple of levels up AND updated it from the context menu rather than Bazaar explorer and it worked first time.

Can you help with this problem?

Provide an answer of your own, or ask Matt Wilkie for more information if necessary.

To post a message you must log in.