Every time the refresh failed and report in log the following:
Traceback (most recent call last):
File "/srv/importd.launchpad.net/production/launchpad-rev-18684/scripts/code-import-worker.py", line 106, in <module>
sys.exit(script.main())
File "/srv/importd.launchpad.net/production/launchpad-rev-18684/scripts/code-import-worker.py", line 101, in main
return import_worker.run()
File "/srv/importd.launchpad.net/production/launchpad-rev-18684/lib/lp/codehosting/codeimport/worker.py", line 543, in run
return self._doImport()
File "/srv/importd.launchpad.net/production/launchpad-rev-18684/lib/lp/codehosting/codeimport/worker.py", line 746, in _doImport
inter_branch.fetch(limit=revision_limit)
File "/srv/importd.launchpad.net/production/launchpad-rev-18684/bzrplugins/git/branch.py", line 722, in fetch
self.fetch_objects(stop_revision, fetch_tags=fetch_tags, limit=limit)
File "/srv/importd.launchpad.net/production/launchpad-rev-18684/bzrplugins/git/branch.py", line 745, in fetch_objects
determine_wants, self.source.mapping, limit=limit)
File "/srv/importd.launchpad.net/production/launchpad-rev-18684/bzrplugins/git/fetch.py", line 715, in fetch_objects
progress=lambda text: report_git_progress(pb, text))
File "/srv/importd.launchpad.net/production/launchpad-rev-18684/bzrplugins/git/remote.py", line 461, in fetch_objects
lambda x: os.write(fd, x), progress)
File "/srv/importd.launchpad.net/production/launchpad-rev-18684/bzrplugins/git/remote.py", line 451, in fetch_pack
pack_data, progress)
File "/srv/importd.launchpad.net/production/launchpad-rev-18684/bzrplugins/git/remote.py", line 270, in fetch_pack
graph_walker, pack_data, progress)
File "/srv/importd.launchpad.net/production/launchpad-rev-18684/env/local/lib/python2.7/site-packages/dulwich/client.py", line 1413, in fetch_pack
lambda: False)
File "/srv/importd.launchpad.net/production/launchpad-rev-18684/env/local/lib/python2.7/site-packages/dulwich/client.py", line 574, in _handle_upload_pack_head
have = next(graph_walker)
File "/srv/importd.launchpad.net/production/launchpad-rev-18684/env/local/lib/python2.7/site-packages/dulwich/object_store.py", line 1173, in next
ps = self.get_parents(ret)
File "/srv/importd.launchpad.net/production/launchpad-rev-18684/bzrplugins/git/fetch.py", line 708, in <lambda>
lambda sha: store[sha].parents)
File "/srv/importd.launchpad.net/production/launchpad-rev-18684/bzrplugins/git/object_store.py", line 674, in __getitem__
_check_expected_sha(sha, commit)
File "/srv/importd.launchpad.net/production/launchpad-rev-18684/bzrplugins/git/object_store.py", line 155, in _check_expected_sha
expected_sha))
AssertionError: Invalid sha for <Commit 0b75a1f29a64cfd4c886145cb35f143c4de242bc>: 28a0d682c9ead193bf1ac85de6c197bb114889da
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.
I have to delete my bazar branch and then create a new. But next refresh will fail again.