Git import failing (bzr-git exceptions.AssertionError)

Asked by Leonardo Robol on 2020-04-14

Dear all,
I have the repository at set up to track; this worked up to a certain point, but the import is now failing with the log attached at the bottom (just one example).

May you have a look at what's going on? It appears to be a bzr-git problem: if I try to run bzr branch git:// on my machine it gives essentially the same error.


Here is the traceback from the importer:

Traceback (most recent call last):
  File "/srv/", line 106, in <module>
  File "/srv/", line 101, in main
  File "/srv/", line 554, in run
    return self._doImport()
  File "/srv/", line 757, in _doImport
  File "/srv/", line 722, in fetch
    self.fetch_objects(stop_revision, fetch_tags=fetch_tags, limit=limit)
  File "/srv/", line 745, in fetch_objects
    determine_wants, self.source.mapping, limit=limit)
  File "/srv/", line 715, in fetch_objects
    progress=lambda text: report_git_progress(pb, text))
  File "/srv/", line 461, in fetch_objects
    lambda x: os.write(fd, x), progress)
  File "/srv/", line 451, in fetch_pack
    pack_data, progress)
  File "/srv/", line 270, in fetch_pack
    graph_walker, pack_data, progress)
  File "/srv/", line 1413, in fetch_pack
    lambda: False)
  File "/srv/", line 558, in _handle_upload_pack_head
    have = next(graph_walker)
  File "/srv/", line 1173, in next
    ps = self.get_parents(ret)
  File "/srv/", line 708, in <lambda>
    lambda sha: store[sha].parents)
  File "/srv/", line 674, in __getitem__
    _check_expected_sha(sha, commit)
  File "/srv/", line 155, in _check_expected_sha
AssertionError: Invalid sha for <Commit 1a0308f5cc5f5b10707da1b0644de39ad42e05ae>: 6ecea8037d36375e90dbecdb76ca48fac1136cf1
Import failed:
Traceback (most recent call last):
Failure: twisted.internet.error.ProcessTerminated: A process has ended with a probable error condition: process ended with exit code 1.

Question information

English Edit question
Launchpad itself Edit question
No assignee Edit question
Last query:
Last reply:
Tom Wardill (twom) said : #1


This is a known bug awaiting upstream work so we can move Launchpad to Breezy rather than Bazaar.
Unfortunately, there's no direct fix for it.

However, given that it is a git original source, if you are happy importing it to a git repo rather than a bzr one, that should work.


Can you help with this problem?

Provide an answer of your own, or ask Leonardo Robol for more information if necessary.

To post a message you must log in.