Comment 4 for bug 144300

Revision history for this message
Colin D Bennett (colinb) wrote : bzr: ERROR: bzrlib.errors.ReadOnlyError: A write attempt was made in a read only transaction on KnitPackRepository

I am getting this error using both bzr 1.6b1 and bzr.dev revno:3493 when attempting to do 'bzr log -r branch:X'. Here is what I get:

cdb@tsunami ~/grub/repo/videotest $ ~/src/bzr/bzr.dev/bzr log -r branch:../upstream..
bzr: ERROR: bzrlib.errors.ReadOnlyError: A write attempt was made in a read only transaction on KnitPackRepository('file:///home/cdb/grub/repo/.bzr/repository/')

Traceback (most recent call last):
  File "/home/cdb/src/bzr/bzr.dev/bzrlib/commands.py", line 846, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/cdb/src/bzr/bzr.dev/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/home/cdb/src/bzr/bzr.dev/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/cdb/src/bzr/bzr.dev/bzrlib/commands.py", line 807, in ignore_pipe
    result = func(*args, **kwargs)
  File "/home/cdb/src/bzr/bzr.dev/bzrlib/builtins.py", line 1770, in run
    rev1 = revision[0].in_history(b)
  File "/home/cdb/src/bzr/bzr.dev/bzrlib/revisionspec.py", line 227, in in_history
    return self._match_on_and_check(branch, revs)
  File "/home/cdb/src/bzr/bzr.dev/bzrlib/revisionspec.py", line 206, in _match_on_and_check
    info = self._match_on(branch, revs)
  File "/home/cdb/src/bzr/bzr.dev/bzrlib/revisionspec.py", line 763, in _match_on
    branch.fetch(other_branch, revision_b)
  File "/home/cdb/src/bzr/bzr.dev/bzrlib/decorators.py", line 163, in write_locked
    self.lock_write()
  File "/home/cdb/src/bzr/bzr.dev/bzrlib/branch.py", line 1414, in lock_write
    repo_token = self.repository.lock_write()
  File "/home/cdb/src/bzr/bzr.dev/bzrlib/repofmt/pack_repo.py", line 1988, in lock_write
    raise errors.ReadOnlyError(self)
ReadOnlyError: A write attempt was made in a read only transaction on KnitPackRepository('file:///home/cdb/grub/repo/.bzr/repository/')

bzr 1.6b3 on python 2.5.2 (linux2)
arguments: ['/home/cdb/src/bzr/bzr.dev/bzr', 'log', '-r', 'branch:../upstream..']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: None
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.6.0]
  gtk /home/cdb/.bazaar/plugins/gtk [0.95.0dev1]
  launchpad /home/cdb/src/bzr/bzr.dev/bzrlib/plugins/launchpad [unknown]
  usertest /home/cdb/.bazaar/plugins/usertest [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.