ERROR: No such file: u'/home/martin/ubuntu/apport/ubuntu/.bzr/repository/obsolete_packs

Bug #231417 reported by Martin Pitt
4
Affects Status Importance Assigned to Milestone
Bazaar
Incomplete
Medium
Unassigned

Bug Description

Occasionally, I get errors like this on commit:

bzr: ERROR: No such file: u'/home/martin/ubuntu/apport/ubuntu/.bzr/repository/obsolete_packs': [Errno 2] No such file or directory: '/home/martin/ubuntu/apport/ubuntu/.bzr/repository/obsolete_packs'

Once I commit again, it works fine again. That's what makes it pretty hard to reproduce, since when I see it, it is too late to snapshot the previous version of the branch. Do you have an idea what's going on, or what I can do to provide better debug information?

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 231417] [NEW] ERROR: No such file: u'/home/martin/ubuntu/apport/ubuntu/.bzr/repository/obsolete_packs

On Sat, 2008-05-17 at 16:08 +0000, Martin Pitt wrote:
> Public bug reported:
>
> Occasionally, I get errors like this on commit:
>
> bzr: ERROR: No such file:
> u'/home/martin/ubuntu/apport/ubuntu/.bzr/repository/obsolete_packs':
> [Errno 2] No such file or directory:
> '/home/martin/ubuntu/apport/ubuntu/.bzr/repository/obsolete_packs'
>
> Once I commit again, it works fine again. That's what makes it pretty
> hard to reproduce, since when I see it, it is too late to snapshot the
> previous version of the branch. Do you have an idea what's going on, or
> what I can do to provide better debug information?

You deleted the obsolete_packs directory at some point in the past.
recreate it, and don't delete it again :)

-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Revision history for this message
Martin Pitt (pitti) wrote :

Hm, I am not really aware of ever having touched this directory. I don't poke below the .bzr/ directory usually. Also, I saw this happen on both my laptop and my desktop.

So if this really is an user error, feel free to close this report; I just don't remember deleting it. OTOH this checkout is two years old, > 1000 commits, and saw many different bzr version and conversions, so it might have accumulated some cruft.

Revision history for this message
Martin Pool (mbp) wrote :

Do you have a traceback for this by any chance?

Changed in bzr:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Martin Pitt (pitti) wrote :
Download full text (3.2 KiB)

Ah, .bzr.log still has it:

0.924 opening working tree '/home/martin/ubuntu/apport/ubuntu'
1.020 preparing to commit
[11868] 2008-04-16 11:50:20.312 INFO: Committing to: /home/martin/ubuntu/apport/ubuntu/
1.102 Selecting files for commit with filter None
[11868] 2008-04-16 11:50:20.368 INFO: modified debian/changelog
[11868] 2008-04-16 11:50:20.407 INFO: modified po/de.po
1.414 added revision_id {<email address hidden>}
1.449 Auto-packing repository <bzrlib.repofmt.pack_repo.RepositoryPackCollection object at 0xe90610>, which h
as 15 pack files, containing 1370 revisions into 11 packs.
1.580 Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 834, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 790, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 2355, in run
    author=author)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree_4.py", line 246, in commit
    result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 187, in commit
    revprops=revprops, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/commit.py", line 373, in commit
    self.rev_id = self.builder.commit(self.message)
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 139, in commit
    self.repository.commit_write_group()
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 919, in commit_write_group
    self._commit_write_group()
  File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 2013, in _commit_write_group
    return self._pack_collection._commit_write_group()
  File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 1666, in _commit_write_group
    if not self.autopack():
  File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 1231, in autopack
    self._execute_pack_operations(pack_operations)
  File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 1250, in _execute_pack_operations
    self._save_pack_names(clear_obsolete_packs=True)
  File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 1587, in _save_pack_names
    self.transport.list_dir('obsolete_packs'))
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/local.py", line 453, in list_dir
    self._translate_error(e, path)
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/__init__.py", line 347, in _translate_error
    raise errors.NoSuchFile(path, extra=e)
NoSuchFile: No such file: u'/home/martin/ubuntu/apport/ubuntu/.bzr/repository/obsolete_packs': [Errno 2] No such ...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.