bzr: ERROR: Transport operation not possible: readonly transport

Bug #382957 reported by Russ Brown
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Bazaar History Cache
Confirmed
Low
Unassigned

Bug Description

This doesn't seem to happen in all cases, but it does seem to point at this plugin since it only happens when plugins are enabled, and the backtrace (below) includes it.

Some work:

$ bzr tags -d lp:bzr-diffstat
0.2.0 16bzr+ssh > 5KB 2KB/s |

Others do not:

$ bzr tags -d lp:bzr
bzr: ERROR: Transport operation not possible: readonly transport

$ bzr tags -d lp:bzrtools
bzr: ERROR: Transport operation not possible: readonly transport

$ bzr tags -d lp:qbzr
bzr: ERROR: Transport operation not possible: readonly transport

I'm wondering if it may possibly be related to the format of the target branch/repo?

Backtrace from one of the failures:

1.122 ssh implementation is OpenSSH
7.865 Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 729, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 924, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 560, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 939, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 5200, in run
    revno_map = branch.get_revision_id_to_revno_map()
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 352, in get_revision_id_to_revno_map
    mapping = self._gen_revno_map()
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 372, in _gen_revno_map
    in self.iter_merge_sorted_revisions())
  File "/home/rbrown/.bazaar/plugins/historycache/__init__.py", line 174, in historycache_iter_msr_method
    br._revno_cache = _branch_open_revno_cache(br)
  File "/home/rbrown/.bazaar/plugins/historycache/__init__.py", line 98, in _branch_open_revno_cache
    max_mergelines_to_save=max_mergelines_to_save)
  File "/home/rbrown/.bazaar/plugins/historycache/revnocache.py", line 102, in __init__
    self.store = _RevnoStore(branch, max_mergelines_to_save)
  File "/home/rbrown/.bazaar/plugins/historycache/revnocache.py", line 243, in __init__
    self._transport.ensure_base()
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 366, in ensure_base
    self.mkdir('.')
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/remote.py", line 242, in mkdir
    self._serialise_optional_mode(mode))
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/remote.py", line 189, in _call2
    self._translate_error(err, **context)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/remote.py", line 435, in _translate_error
    remote._translate_error(err, path=relpath)
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 2625, in _translate_error
    raise errors.TransportNotPossible('readonly transport')
TransportNotPossible: Transport operation not possible: readonly transport

7.866 return code 3

Revision history for this message
Jes (jes-trucken8) wrote :

C:\Documents and Settings\jssu\cool\cool>bzr push lp:cool
Connected (version 2.0, client Twisted)
Authentication (publickey) successful!
Secsh channel 1 opened.
bzr: ERROR: Cannot lock LockDir(lp-73544784:///%2Bbranch/cool/.bzr/branchlock): Transport operation not possible: readonly transport

C:\Documents and Settings\jssu\cool\cool>echo %errorlevel%
3

Revision history for this message
Martin Pool (mbp) wrote :

The plugin seems to be assuming that it can write to any branch you open, and that's obviously a silly assumption. You don't have access to write to every branch on Launchpad. If you would like to fix this, just catch the exception in revnocache, and don't write if you can't. I don't think this plugin is very active any more.

@Jes, I think you're having a different problem that coincidentally gets the same message. Please file a different bug and include the traceback you get by adding the -Derror option.

Changed in bzr-historycache:
status: New → Confirmed
importance: Undecided → Low
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.