bzr: ERROR: exceptions.StopIteration

Bug #756228 reported by KarlGoetz on 2011-04-10
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Hi guys.
I think I've broken my bzr setup.
When i try and run 'shelve' in this directory it offers to shelve a number of files that no longer exist. running --list or unshelve results in a backtrace.
Are there any other details you'd like?

11:01:41 kgoetz@epicfail: ~/debian-installer-preseeding/debian-installer-20110106+squeeze1/build $ bbzr shelve --list
bzr: ERROR: exceptions.StopIteration:

Traceback (most recent call last):
  File "/home/kgoetz/src/bzr/bzrlib/", line 923, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/home/kgoetz/src/bzr/bzrlib/", line 1123, in run_bzr
    ret = run(*run_argv)
  File "/home/kgoetz/src/bzr/bzrlib/", line 688, in run_argv_aliases
  File "/home/kgoetz/src/bzr/bzrlib/", line 710, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/kgoetz/src/bzr/bzrlib/", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/kgoetz/src/bzr/bzrlib/", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/kgoetz/src/bzr/bzrlib/", line 5995, in run
    return self.run_for_list(directory=directory)
  File "/home/kgoetz/src/bzr/bzrlib/", line 6020, in run_for_list
    message = manager.get_metadata(shelf_id).get('message')
  File "/home/kgoetz/src/bzr/bzrlib/", line 412, in get_metadata
    return Unshelver.parse_metadata(records)
  File "/home/kgoetz/src/bzr/bzrlib/", line 298, in parse_metadata
    names, metadata_bytes =

bzr 2.4.0dev2 on python 2.6.6 (Linux-2.6.32-5-686-bigmem-i686-with-
arguments: ['/home/kgoetz/.bin/bbzr', 'shelve', '--list']
plugins: bash_completion[2.4.0dev2], builddeb[2.7.0dev], bzrtools[2.4.0],
    changelog_merge[2.4.0dev2], cia[1.0.0dev], email[unknown],
    etckeeper[unknown], fastimport[0.10.0dev], launchpad[2.4.0dev2],
    netrc_credential_store[2.4.0dev2], news_merge[2.4.0dev2], pager[unknown],
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_AU.utf8'

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
    including this traceback and a description of the problem.
bzr: warning: some compiled extensions could not be loaded; see <>

Martin Pool (mbp) wrote :

I think the fact you get a traceback is an instance of bug 670159. This probably means that one of the shelved patches is malformed. Without more information it's hard to tell _how_ you would have got into that state. Do you know anything else?

'bzr repair-workingtree' will reset some of that metadata and will likely get you going again.

Changed in bzr:
status: New → Incomplete
KarlGoetz (kgoetz) wrote :

hi martin,
as requested on irc i've attached a tarball of the problematic repository. i've been working in the d-i squeeze directory, the lenny directory will be pretty much stock, so its unlikely to be related to the issue. HTH!

KarlGoetz (kgoetz) wrote :

i've attached a tarball for debugging, so setting back to new

Changed in bzr:
status: Incomplete → New
John A Meinel (jameinel) on 2011-04-20
Changed in bzr:
status: New → Confirmed
importance: Undecided → Medium
Jelmer Vernooij (jelmer) on 2017-11-09
tags: added: check-for-breezy
Jelmer Vernooij (jelmer) on 2019-11-28
Changed in brz:
status: New → Triaged
importance: Undecided → Medium
tags: added: patch
removed: check-for-breezy
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers