1.14rc2 and CHK: Random 'AbsentContentFactory' object has no attribute 'get_bytes_as' errors

Tommaso R. Donnarumma tawmas at gardinerproject.org
Thu Apr 23 09:19:54 BST 2009


Hi all,

I'm doing some work on a private project, and I chose to test drive the
--development6 format with that. While hacking, I encountered twice the
error "'AbsentContentFactory' object has no attribute 'get_bytes_as'"
(full log at the bottom of this message), on two different branches on
two different machines.

The first time I was committing again a change I had just uncommitted in
order to fix a typo in the message. The second time I was pushing a
branch to my home server and the error came from the bzr smartserver.

In both cases, the branch is inside a shared repository created with
bzr init-repo --development6 (for the second case, both the local and
remote branches are).

In both cases, the problem was solved by running bzr pack. The first
time I did this, I run bzr check before and after the bzr pack and got
exactly the same output (not included here as the log is on my laptop,
but will post it if you think it's useful).

I tried to replicate the problem before reporting, but couldn't.

Here follows the .bzr.log from the second event (i.e. pushing to
remote). The log also includes the following bzr pack and successful
bzr push.

Regards,
Tommaso


Wed 2009-04-22 17:37:20 +0200
0.033  bzr arguments: [u'push']
0.053  looking for plugins in /home/tawmas/.bazaar/plugins
0.054  looking for plugins
in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.186  encoding stdout as sys.stdout encoding 'UTF-8'
0.307  ssh implementation is OpenSSH
0.857  Using fetch logic to copy between
CHKInventoryRepository('file:///home/tawmas/rsg/.bzr/repository/')(<RepositoryFormatCHK1>) and RemoteRepository(bzr+ssh://akur/home/bzr/rsg/.bzr/)(<RemoteRepositoryFormat>)
0.858  fetch up to rev
{tawmas at tawmas.net-20090422153707-9v249lllt95amwa6}
1.266  Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 727,
in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 922,
in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 559,
in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1055,
in run
    use_existing_dir=use_existing_dir)
  File "/usr/lib/python2.6/dist-packages/bzrlib/push.py", line 146, in
_show_push_branch
    remember)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1245,
in push_branch
    overwrite, stop_revision=revision_id)
  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 2120,
in push
    _override_hook_source_branch=_override_hook_source_branch)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 2767,
in _run_with_write_locked_target
    result = callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 2159,
in _push_with_bound_branches
    result = self._basic_push(target, overwrite, stop_revision)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 2182,
in _basic_push
    graph=graph)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line
192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 776, in
update_revisions
    overwrite, graph)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 2838,
in update_revisions
    self.target.fetch(self.source, stop_revision)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line
192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 522, in
fetch
    pb=pb)
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 1193,
in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line
192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line
3057, in fetch
    pb=pb, find_ghosts=find_ghosts)
  File "/usr/lib/python2.6/dist-packages/bzrlib/fetch.py", line 84, in
__init__
    self.__fetch()
  File "/usr/lib/python2.6/dist-packages/bzrlib/fetch.py", line 110, in
__fetch
    self._fetch_everything_for_search(search)
  File "/usr/lib/python2.6/dist-packages/bzrlib/fetch.py", line 138, in
_fetch_everything_for_search
    stream, from_format, [])
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 1642,
in insert_stream
    (verb, path, resume_tokens) + extra_args, byte_stream)
  File "/usr/lib/python2.6/dist-packages/bzrlib/smart/client.py", line
178, in call_with_body_stream
    expect_response_body=False)
  File "/usr/lib/python2.6/dist-packages/bzrlib/smart/client.py", line
78, in _call_and_read_response
    expect_body=expect_response_body),
  File "/usr/lib/python2.6/dist-packages/bzrlib/smart/message.py", line
304, in read_response_tuple
    _translate_error(self.args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/smart/message.py", line
355, in _translate_error
    raise errors.ErrorFromSmartServer(error_tuple)
ErrorFromSmartServer: Error received from smart server: ('error',
"'AbsentContentFactory' object has no attribute 'get_bytes_as'")

1.281  Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugin.py", line 407, in
_get__version__
    version_string = _format_version_tuple(version_info)
  File "/usr/lib/python2.6/dist-packages/bzrlib/__init__.py", line 103,
in _format_version_tuple
    raise ValueError("version_info %r not valid" % (version_info,))
ValueError: version_info (0, 96, 0, 'dev', 1) not valid

1.282  return code 4

Wed 2009-04-22 17:38:43 +0200
0.037  bzr arguments: [u'pack', u'bzr
+ssh://akur/home/bzr/rsg/implements-base']
0.058  looking for plugins in /home/tawmas/.bazaar/plugins
0.058  looking for plugins
in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.189  encoding stdout as sys.stdout encoding 'UTF-8'
0.267  ssh implementation is OpenSSH
0.828  Packing repository
<bzrlib.repofmt.groupcompress_repo.GCRepositoryPackCollection object at
0x1f316d0>, which has 10 pack files, containing 59 revisions into 1
packs.
0.839  repacking 59 revisions
0.969  repacking 59 inventories
1.168  repacking chk: 54 id_to_entry roots, 16 p_id_map roots, 70 total
keys
1.364  repacking 104 text
1.629  repacking 0 signatures
1.853  return code 0

Wed 2009-04-22 17:38:51 +0200
0.033  bzr arguments: [u'push']
0.054  looking for plugins in /home/tawmas/.bazaar/plugins
0.055  looking for plugins
in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.191  encoding stdout as sys.stdout encoding 'UTF-8'
0.325  ssh implementation is OpenSSH
0.903  Using fetch logic to copy between
CHKInventoryRepository('file:///home/tawmas/rsg/.bzr/repository/')(<RepositoryFormatCHK1>) and RemoteRepository(bzr+ssh://akur/home/bzr/rsg/.bzr/)(<RemoteRepositoryFormat>)
0.904  fetch up to rev
{tawmas at tawmas.net-20090422153707-9v249lllt95amwa6}
[22831] 2009-04-22 17:38:52.492 INFO: Pushed up to revision 7.
1.096  return code 0





More information about the bazaar mailing list