"File exists" error on upload pack file doing 'bzr branch' on Windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Originally reported at <https:/
"""
I have been hit by this bug three times over the last month on Windows 7 64 bit with bzr 2.1.1 and python 2.6.5.
The first two times were with a shared repository version 1.9, tomorrows problem was with version 2a.
I have an automated build system running, which may have been killed during a bzr operation.
I don't think this was the case with the others, but with this one I hit a lock on a branch that I had to remove with bzr break-lock, and after that, I get:
C:\Users\
bzr: ERROR (ignored): 'file:/
bzr: ERROR: File exists: u'C:/Users/
som allerede findes, kan ikke oprettes
Sorry about the Danish translations. The error 183 says "A file, that already exists, can't be created".
Maybe it's possible to reproduce the bug by checking out the repository multiple times and kill it each time - not ctrl-C it, but kill the process. And it might have to be on Windows.
Deleting the file in .bzr/repository
"""
This is pretty odd, as the filenames in the upload directory should be randomly chosen. Perhaps some pack_repo code is trying to create an already created file? It's also interesting that this doesn't seem to happen to all Windows users (otherwise we'd be inundated with reports about it), so perhaps there's some other factor involved, like a particular virus scanner?
A guess:
2a conversion finding two identical regions (odd but possible). If so
doing -r 1000 then pull -r 2000 until it errors, then doing a 'bzr
pack' and then continuing may help.
-Rob