Bazaar Version Control System

bzr: ERROR: exceptions.StopIteration

Reported by KarlGoetz on 2011-04-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Medium
Unassigned

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?
thanks,
kk

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/commands.py", line 923, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/home/kgoetz/src/bzr/bzrlib/commands.py", line 1123, in run_bzr
    ret = run(*run_argv)
  File "/home/kgoetz/src/bzr/bzrlib/commands.py", line 688, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/kgoetz/src/bzr/bzrlib/commands.py", line 710, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/kgoetz/src/bzr/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/kgoetz/src/bzr/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/kgoetz/src/bzr/bzrlib/builtins.py", line 5995, in run
    return self.run_for_list(directory=directory)
  File "/home/kgoetz/src/bzr/bzrlib/builtins.py", line 6020, in run_for_list
    message = manager.get_metadata(shelf_id).get('message')
  File "/home/kgoetz/src/bzr/bzrlib/shelf.py", line 412, in get_metadata
    return Unshelver.parse_metadata(records)
  File "/home/kgoetz/src/bzr/bzrlib/shelf.py", line 298, in parse_metadata
    names, metadata_bytes = records.next()
StopIteration

bzr 2.4.0dev2 on python 2.6.6 (Linux-2.6.32-5-686-bigmem-i686-with-
    debian-6.0.1)
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],
    weave_fmt[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
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.
bzr: warning: some compiled extensions could not be loaded; see <https://answers.launchpad.net/bzr/+faq/703>

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!
thanks,
kk

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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers