Comment 3 for bug 587795

Revision history for this message
Paul Pelzl (pelzlpj) wrote :

This looks very much like the bug I see on a regular basis. I'm using Windows XP, bzr 2.2.1, and a pack-0.92 repository. On occasion when I "bzr pull" to bring in changes from other developers, I get this:

-----
Using saved parent location: N:/bzr/main/code/
bzr: ERROR (ignored): 'file:///C:/Tableau/.bzr/repository/upload/aphtssjcbh20hqj6xeuv.pack'
bzr: ERROR: File exists: u'C:/Tableau/.bzr/repository/upload/aphtssjcbh20hqj6xeuv.pack': [Error 183]
 Cannot create a file when that file already exists
-----

The log shows the following:

-----
Thu 2011-01-27 11:16:11 -0600
0.078 bazaar version: 2.2.1
0.078 bzr arguments: [u'pull']
0.094 looking for plugins in C:/Documents and Settings/paul.pelzl/Application Data/bazaar/2.0/plugins
0.141 looking for plugins in C:/Program Files/Bazaar/plugins
0.172 encoding stdout as sys.stdout encoding 'cp437'
0.187 opening working tree 'C:/Tableau/code'
0.219 Using fetch logic to copy between KnitPackRepository('file:///N:/bzr/main/.bzr/repository/')(RepositoryFormatKnitPack1()) and KnitPackRepository('file:///C:/tableau/.bzr/repository/')(RepositoryFormatKnitPack1())
0.219 fetch up to rev {XXXXX-20110127163948-g6asivbohg2lsy0g}
1.312 Using fetch logic to copy between KnitPackRepository('file:///N:/bzr/main/.bzr/repository/')(RepositoryFormatKnitPack1()) and KnitPackRepository('file:///C:/Tableau/.bzr/repository/')(RepositoryFormatKnitPack1())
1.312 fetch up to rev {XXXXX-20110127163948-g6asivbohg2lsy0g}
1.781 abort_write_group failed
1.781 Traceback (most recent call last):
  File "bzrlib\repository.pyo", line 978, in abort_write_group
  File "bzrlib\repofmt\pack_repo.pyo", line 2292, in _abort_write_group
  File "bzrlib\repofmt\pack_repo.pyo", line 2107, in _abort_write_group
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "bzrlib\repofmt\pack_repo.pyo", line 439, in abort
  File "bzrlib\transport\__init__.pyo", line 240, in close
KeyError: 'file:///C:/Tableau/.bzr/repository/upload/aphtssjcbh20hqj6xeuv.pack'

[ 4748] 2011-01-27 11:16:13.262 INFO: bzr: ERROR (ignored): 'file:///C:/Tableau/.bzr/repository/upload/aphtssjcbh20hqj6xeuv.pack'
1.797 Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 912, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1112, in run_bzr
  File "bzrlib\commands.pyo", line 690, in run_argv_aliases
  File "bzrlib\commands.pyo", line 705, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1040, in run
  File "bzrlib\decorators.pyo", line 194, in write_locked
  File "bzrlib\workingtree.pyo", line 1622, in pull
  File "bzrlib\branch.pyo", line 1068, in pull
  File "bzrlib\decorators.pyo", line 194, in write_locked
  File "bzrlib\branch.pyo", line 3416, in pull
  File "bzrlib\branch.pyo", line 3525, in _pull
  File "bzrlib\branch.pyo", line 1017, in update_revisions
  File "bzrlib\decorators.pyo", line 194, in write_locked
  File "bzrlib\branch.pyo", line 3370, in update_revisions
  File "bzrlib\decorators.pyo", line 194, in write_locked
  File "bzrlib\branch.pyo", line 673, in fetch
  File "bzrlib\repository.pyo", line 1740, in fetch
  File "bzrlib\decorators.pyo", line 194, in write_locked
  File "bzrlib\repository.pyo", line 3448, in fetch
  File "bzrlib\fetch.pyo", line 73, in __init__
  File "bzrlib\fetch.pyo", line 99, in __fetch
  File "bzrlib\fetch.pyo", line 127, in _fetch_everything_for_search
  File "bzrlib\repository.pyo", line 4287, in insert_stream
  File "bzrlib\repository.pyo", line 4387, in _locked_insert_stream
  File "bzrlib\repository.pyo", line 1599, in commit_write_group
  File "bzrlib\repofmt\pack_repo.pyo", line 2311, in _commit_write_group
  File "bzrlib\repofmt\pack_repo.pyo", line 2154, in _commit_write_group
  File "bzrlib\repofmt\pack_repo.pyo", line 514, in finish
  File "bzrlib\transport\local.pyo", line 410, in rename
  File "bzrlib\transport\__init__.pyo", line 314, in _translate_error
FileExists: File exists: u'C:/Tableau/.bzr/repository/upload/aphtssjcbh20hqj6xeuv.pack': [Error 183] Cannot create a file when that file already exists

1.797 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
1.797 return code 3
-----

The offending pack file is indeed present in the upload directory. If I simply retry the "bzr pull", it always completes successfully.

The pull is moving data from an SMB share to a local repository on an NTFS partition.