Branching a stacked branch from Launchpad gives ErrorFromSmartServer: Error received from smart server: ('NoSuchRevision',)

Bug #367631 reported by Tim Penhey
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Triaged
Critical
Unassigned

Bug Description

On branching an existing stacked branch from LP, I got ErrorFromSmartServer: Error received from smart server: ('NoSuchRevision',). The branch looked fine in Launchpad with the most recent revisions showing on the branch page.

I renamed the branch to -broken, and repushed the branch from my laptop to Launchpad. This created a new stacked branch. The laptop has bzr 1.15+4300+107 installed from the nightly PPA. The desktop has bzr 1.15+4303+107 from the nightly PPA. The desktop gives the following error trying to branch from Launchpad:

tim@mini:~/src/lp$ bzr cbranch lp:~thumper/launchpad/revision-cache-db-patch-2
/home/tim/.bazaar/plugins/loom/revspec.py:64: DeprecationWarning: Modifying SPEC_TYPES was deprecated in version 1.12.
  SPEC_TYPES.append(RevisionSpecThread)
bzr: ERROR: bzrlib.errors.ErrorFromSmartServer: Error received from smart server: ('NoSuchRevision',)

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/plugins/bzrtools/command.py", line 13, in run_argv_aliases
    commands.Command.run_argv_aliases(self, argv, alias_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/plugins/bzrtools/command_classes.py", line 417, in run
    hardlink=hardlink)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools/cbranch.py", line 55, in cbranch
    accelerator_tree=accelerator_tree).open_branch()
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1144, in sprout
    result_repo.fetch(source_repository, revision_id=revision_id)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1493, 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/repository.py", line 3945, in insert_stream
    return self._locked_insert_stream(stream, src_format)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 3973, in _locked_insert_stream
    for substream_type, substream in stream:
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 1733, in missing_parents_chain
    stream = self._get_stream(source, search)
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 1705, in _get_stream
    (path, self.to_format.network_name()), search_bytes)
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 71, in _call_with_body_bytes_expecting_body
    self._translate_error(err, **err_context)
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 687, in _translate_error
    self.bzrdir._translate_error(err, repository=self, **context)
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 129, in _translate_error
    _translate_error(err, bzrdir=self, **context)
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 2554, in _translate_error
    raise NoSuchRevision(find('branch'), err.error_args[0])
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 2538, in find
    raise err
ErrorFromSmartServer: Error received from smart server: ('NoSuchRevision',)

bzr 1.15dev on python 2.6.2 (linux2)
arguments: ['/usr/bin/bzr', 'cbranch', 'lp:~thumper/launchpad/revision-cache-db-patch-2']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_NZ.UTF-8'
plugins:
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [1.14]
  gtk /home/tim/.bazaar/plugins/gtk [0.95.0.dev.1]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [unknown]
  loom /home/tim/.bazaar/plugins/loom [1.4dev]
  lpreview /home/tim/.bazaar/plugins/lpreview [unknown]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [unknown]
  qbzr /home/tim/.bazaar/plugins/qbzr [0.9.3dev]
  stats /home/tim/.bazaar/plugins/stats [unknown]
  xmloutput /home/tim/.bazaar/plugins/xmloutput [0.8.2]
*** 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.

Revision history for this message
Tim Penhey (thumper) wrote :
Download full text (4.9 KiB)

After updating my local branches, I now get:

/home/tim/.bazaar/plugins/loom/revspec.py:64: DeprecationWarning: Modifying SPEC_TYPES was deprecated in version 1.12.
  SPEC_TYPES.append(RevisionSpecThread)
bzr: ERROR: bzrlib.errors.ErrorFromSmartServer: Error received from smart server: ('error', "'AbsentContentFactory' object has no attribute 'get_bytes_as'")

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/plugins/bzrtools/command.py", line 13, in run_argv_aliases
    commands.Command.run_argv_aliases(self, argv, alias_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/plugins/bzrtools/command_classes.py", line 417, in run
    hardlink=hardlink)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools/cbranch.py", line 55, in cbranch
    accelerator_tree=accelerator_tree).open_branch()
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1144, in sprout
    result_repo.fetch(source_repository, revision_id=revision_id)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1493, 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/repository.py", line 3945, in insert_stream
    return self._locked_insert_stream(stream, src_format)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 3973, in _l...

Read more...

Revision history for this message
Tim Penhey (thumper) wrote :

Branching over SFTP worked.

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 367631] Re: Branching a stacked branch from Launchpad gives ErrorFromSmartServer: Error received from smart server: ('NoSuchRevision', )

On Sun, 2009-04-26 at 22:55 +0000, Tim Penhey wrote:
> After updating my local branches, I now get:
>
> /home/tim/.bazaar/plugins/loom/revspec.py:64: DeprecationWarning: Modifying SPEC_TYPES was deprecated in version 1.12.
> SPEC_TYPES.append(RevisionSpecThread)
> bzr: ERROR: bzrlib.errors.ErrorFromSmartServer: Error received from smart server: ('error', "'AbsentContentFactory' object has no attribute 'get_bytes_as'")
>

That now looks like one of our known bugs; however, it shouldn't be
happening if you had been pushing with the bzr version you said you had
(and you should have been getting this error from the start).

Are you sure you were using the packaged bzr?

-Rob

Revision history for this message
Andrew Bennetts (spiv) wrote :

I agree with Robert:

 - the NoSuchRevision error looks like bug 360791
 - the AbsentContentFactory error looks like bug 354036, which should be fixed by the version client you are using. Do you have a .bzr.log with -Dhpss trace of that push?

Revision history for this message
Tim Penhey (thumper) wrote :

Here is the .bzr.log for the push that made the broken branch.

Yes I am using the version from the PPA, and yes it should have had the fix.

Revision history for this message
Martin Albisetti (beuno) wrote :
Download full text (4.5 KiB)

Just did a test with the ubunet guys, and they where using bzr nightly, as am I, when they push a branch and I try to branch it, I also get:

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 1122, in run
    source_branch=br_from)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1144, in sprout
    result_repo.fetch(source_repository, revision_id=revision_id)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1493, 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/repository.py", line 3945, in insert_stream
    return self._locked_insert_stream(stream, src_format)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 3973, in _locked_insert_stream
    for substream_type, substream in stream:
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 1733, in missing_parents_chain
    stream = self._get_stream(source, search)
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 1705, in _get_stream
    (path, self.to_format.network_name()), search_bytes)
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 71, in _call_with_body_bytes_expecting_body
    self._translate_error(err, **err_context)
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 687, in _translate_error
    self.bzrdir._translate_error(err, repository=self, **context)
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 129, in _translate_error
    _translate_error(err, bzrdir=self, **context)
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 2554, in _translate_error
    raise NoSuchRevision(find('branch'), err.error_args[0])
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 2538, in find
    raise err
ErrorFromSmartServer: Error received from smart server: ('NoSuchRevision',)

Last interesting bits of .bzr.log are:

99.372 hpss call w/body: 'Repository.get_parent_map', '~jdobrien/ubunet/branch-with-bzr115dev/', 'include-missing:', '<email address hidden>', '<email address hidden>', 'rodney.dawes@ca...

Read more...

Revision history for this message
Martin Albisetti (beuno) wrote :

I am promoting this to critical, because we now have *no* options. 1.13 creates broken branches, and newer versions don't work.

Changed in bzr:
importance: Undecided → Critical
status: New → Triaged
Revision history for this message
Björn Tillenius (bjornt) wrote :

I also got this error last week, using bzr-nightly to push the branches.

Revision history for this message
Andrew Bennetts (spiv) wrote :

Bjorn: which error? This bug report is confusing, as several distinct issues have been mentioned.

Please direct all reports and comments of the "ErrorFromSmartServer: Error received from smart server: ('NoSuchRevision',)" problems to bug 360791 (or if you think it is something else, file a new bug).

This bug is was orginally about a NoSuchRevision error that Tim got, but then an unexplained AbsentContentFactory error occurred too. The NoSuchRevision is explicable; Tim's report here is entirely consistent with bug 360791, so I'm going to close this bug as a duplicate of that one.

The AbsentContentFactory error is concerning, as it is apparently not bug 354036. I don't yet have any idea what the cause there is. I'll open a new bug report to track this. (I could repurpose this bug but I think making a new one will be less confusing as it will be clear which issue it is tracking.) The new bug is bug 369596.

Bjorn: please followup with your bug's details to whatever is the appropriate bug.

Tim: please look at bug 369596.

Revision history for this message
Björn Tillenius (bjornt) wrote : Re: [Bug 367631] Re: Branching a stacked branch from Launchpad gives ErrorFromSmartServer: Error received from smart server: ('NoSuchRevision', )

On Thu, Apr 30, 2009 at 12:54:16AM -0000, Andrew Bennetts wrote:
> *** This bug is a duplicate of bug 360791 ***
> https://bugs.launchpad.net/bugs/360791
>
> Bjorn: which error? This bug report is confusing, as several distinct
> issues have been mentioned.

I was referring to the NoRevisionError that Tim got. Here's the
traceback I got:

    https://bugs.edge.launchpad.net/bzr/+bug/360791

It certainly sounds like bug 360791, since I getting this error on my
laptop, where it worked fine on my desktop (which had an up to date copy
of the stacked-on branch in the repo).

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.