"bzr branch sftp://remote local" throws OSError(13, 'Permission denied')

Bug #664846 reported by sfryer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

Ubuntu 10.10
 - Linux version 2.6.35-22-generic (buildd@rothera) (gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5) ) #34-Ubuntu SMP Sun Oct 10 09:24:00 UTC 2010 (Ubuntu 2.6.35-22.34-generic 2.6.35.4)

bash> bzr branch sftp://remote local
Doing on-the-fly conversion from RepositoryFormatKnitPack1() to RepositoryFormat2a().
This may take some time. Upgrade the repositories to the same format for better performance.
bzr: failed to report crash using apport:nserting stream:Walking content 142/142
     OSError(13, 'Permission denied')
bzr: ERROR: exceptions.AttributeError: 'Inter1and2Helper' object has no attribute 'source_repo'

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 911, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1111, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 689, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 704, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1246, in run
    source_branch=br_from)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1257, in sprout
    result_repo.fetch(source_repository, revision_id=revision_id)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1741, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 3449, in fetch
    find_ghosts=find_ghosts)
  File "/usr/lib/python2.6/dist-packages/bzrlib/fetch.py", line 73, in __init__
    self.__fetch()
  File "/usr/lib/python2.6/dist-packages/bzrlib/fetch.py", line 99, in __fetch
    self._fetch_everything_for_search(search)
  File "/usr/lib/python2.6/dist-packages/bzrlib/fetch.py", line 127, in _fetch_everything_for_search
    stream, from_format, [])
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 4288, in insert_stream
    is_resume)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 4317, in _locked_insert_stream
    for substream_type, substream in stream:
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 4524, in get_stream
    for _ in self._generate_root_texts(revs):
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 4493, in _generate_root_texts
    self.from_repository).generate_root_texts(revs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/fetch.py", line 249, in generate_root_texts
    graph = self.source_repo.get_known_graph_ancestry(revs)
AttributeError: 'Inter1and2Helper' object has no attribute 'source_repo'

bzr 2.2.0 on python 2.6.6 (Linux-2.6.35-22-generic-i686-with-Ubuntu-10.10-maverick)
arguments: ['/usr/bin/bzr', 'branch', 'sftp://remote', 'local']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_CA.UTF-8'
plugins:
  bash_completion /usr/lib/python2.6/dist-packages/bzrlib/plugins/bash_completion [2.2.0]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.2.0]
  dbus /usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus [0.1.0dev]
  git /usr/lib/python2.6/dist-packages/bzrlib/plugins/git [0.5.2]
  gtk /usr/lib/python2.6/dist-packages/bzrlib/plugins/gtk [0.99.0]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.2.0]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.2.0]
  news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.2.0]

*** 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.

Revision history for this message
sfryer (g-launchpad-net-sourcery-ca) wrote :

also...
bash> bzr --version
Bazaar (bzr) 2.2.0
  Python interpreter: /usr/bin/python 2.6.6
  Python standard library: /usr/lib/python2.6
  Platform: Linux-2.6.35-22-generic-i686-with-Ubuntu-10.10-maverick
  bzrlib: /usr/lib/python2.6/dist-packages/bzrlib
  Bazaar configuration: /home/sfryer/.bazaar
  Bazaar log file: /home/sfryer/.bzr.log

Revision history for this message
sfryer (g-launchpad-net-sourcery-ca) wrote :

PS. works just fine on OSX...
Bazaar (bzr) 2.2.0
  Python interpreter: /System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python 2.5.1
  Python standard library: /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5
  Platform: Darwin-9.8.0-i386-32bit
  bzrlib: /Library/Python/2.5/site-packages/bzrlib
  Bazaar configuration: /Users/sfryer/.bazaar
  Bazaar log file: /Users/sfryer/.bzr.log

description: updated
description: updated
description: updated
Revision history for this message
sfryer (g-launchpad-net-sourcery-ca) wrote :

the error also affects "bzr checkout ...", but only with one particular repository (not sure why). nonetheless, on darwin there is no such problem.

Revision history for this message
Martin Packman (gz) wrote :

See the main bug for why this is only on one repo for you and a workaround, or just wait for 2.2.1 to make its way to your machine.

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.