failed to import https://git.xiph.org/opus.git

Bug #1056616 reported by rillian
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Bazaar Git Plugin
Triaged
Undecided
Unassigned
Launchpad itself
Triaged
High
Unassigned

Bug Description

Tried to create an lp branch to follow our upstream git repository today, but the import job failed. The repository in question is https://git.xiph.org/opus.git, which works fine with the command-line git client on my machines.

There's a backtrace in the log message http://launchpadlibrarian.net/117359773/giles-xiph-opus-master.log

Reproduced here for clarity:

2012-09-26 05:34:14 INFO Starting job.
2012-09-26 05:34:14 INFO Getting exising bzr branch from central store.
2012-09-26 05:34:14 INFO [chan bzr SocketAsChannelAdapter] Opened sftp connection (server version 3)
2012-09-26 05:34:14 INFO [chan bzr SocketAsChannelAdapter] Opened sftp connection (server version 3)
2012-09-26 05:34:15 INFO 273 bytes transferred
Traceback (most recent call last):
  File "/srv/importd.launchpad.net/production/launchpad-rev-16022/scripts/code-import-worker.py", line 99, in <module>
    sys.exit(script.main())
  File "/srv/importd.launchpad.net/production/launchpad-rev-16022/scripts/code-import-worker.py", line 94, in main
    return import_worker.run()
  File "/srv/importd.launchpad.net/production/launchpad-rev-16022/lib/lp/codehosting/codeimport/worker.py", line 591, in run
    return self._doImport()
  File "/srv/importd.launchpad.net/production/launchpad-rev-16022/lib/lp/codehosting/codeimport/worker.py", line 741, in _doImport
    remote_branch_tip = remote_branch.last_revision()
  File "<string>", line 4, in last_revision_read_locked
  File "/srv/importd.launchpad.net/production/launchpad-rev-16022/bzrplugins/git/branch.py", line 484, in last_revision
    return self.lookup_foreign_revision_id(self.head)
  File "/srv/importd.launchpad.net/production/launchpad-rev-16022/bzrplugins/git/branch.py", line 492, in lookup_foreign_revision_id
    self.mapping)
  File "/srv/importd.launchpad.net/production/launchpad-rev-16022/bzrplugins/git/repository.py", line 430, in lookup_foreign_revision_id
    commit = self._git.object_store.peel_sha(foreign_revid)
  File "/srv/importd.launchpad.net/production/launchpad-rev-16022/lib/dulwich/object_store.py", line 216, in peel_sha
    obj = self[sha]
  File "/srv/importd.launchpad.net/production/launchpad-rev-16022/lib/dulwich/object_store.py", line 112, in __getitem__
    type_num, uncomp = self.get_raw(sha)
  File "/srv/importd.launchpad.net/production/launchpad-rev-16022/lib/dulwich/object_store.py", line 307, in get_raw
    for pack in self.packs:
  File "/srv/importd.launchpad.net/production/launchpad-rev-16022/lib/dulwich/object_store.py", line 258, in packs
    self._pack_cache = self._load_packs()
  File "/srv/importd.launchpad.net/production/launchpad-rev-16022/bzrplugins/git/transportgit.py", line 463, in _load_packs
    for name in self._pack_names():
  File "/srv/importd.launchpad.net/production/launchpad-rev-16022/bzrplugins/git/transportgit.py", line 449, in _pack_names
    return self.pack_transport.list_dir(".")
  File "/srv/importd.launchpad.net/production/launchpad-rev-16022/eggs/bzr-2.5.1-py2.6-linux-x86_64.egg/bzrlib/transport/__init__.py", line 1245, in list_dir
    % (self))
bzrlib.errors.TransportNotPossible: Transport operation not possible: Transport <bzrlib.transport.http._urllib.HttpTransport_urllib url=https://git.xiph.org/opus.git%2Cref%3Drefs/heads/master/objects/pack/> has not implemented list_dir (but must claim to be listable to trigger this error).
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.

Changed in launchpad:
status: New → Triaged
importance: Undecided → High
Curtis Hovey (sinzui)
tags: added: code-import
tags: removed: git
Curtis Hovey (sinzui)
tags: added: git
Jelmer Vernooij (jelmer)
affects: bzr → bzr-git
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This fails with a different error when using bzr-git trunk.

bzr: ERROR: exceptions.AssertionError: Invalid object name 'ref: refs/heads/master'

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/jelmer/.bazaar/plugins/git/commands.py", line 122, in run
    refs = interrepo.fetch()
  File "/home/jelmer/.bazaar/plugins/git/fetch.py", line 657, in fetch
    mapping)
  File "/home/jelmer/.bazaar/plugins/git/fetch.py", line 746, in fetch_objects
    wants = determine_wants(remote_refs)
  File "/home/jelmer/.bazaar/plugins/git/fetch.py", line 599, in determine_wants_all
    return list(potential - self._target_has_shas(potential))
  File "/home/jelmer/.bazaar/plugins/git/fetch.py", line 584, in _target_has_shas
    revid = self.source.lookup_foreign_revision_id(sha)
  File "/home/jelmer/.bazaar/plugins/git/repository.py", line 430, in lookup_foreign_revision_id
    commit = self._git.object_store.peel_sha(foreign_revid)
  File "/usr/lib/python2.7/dist-packages/dulwich/object_store.py", line 216, in peel_sha
    obj = self[sha]
  File "/usr/lib/python2.7/dist-packages/dulwich/object_store.py", line 112, in __getitem__
    type_num, uncomp = self.get_raw(sha)
  File "/usr/lib/python2.7/dist-packages/dulwich/object_store.py", line 306, in get_raw
    raise AssertionError("Invalid object name %r" % name)
AssertionError: Invalid object name 'ref: refs/heads/master'

Changed in bzr-git:
status: New → Triaged
Revision history for this message
Alberto Mardegan (mardy) wrote :

Duplicate of bug 994600?

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.