bzr pull/branch shows "Error received from smart server: ('NoSuchRevision',)"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Critical
|
Robert Collins | ||
1.14 |
Won't Fix
|
Critical
|
Unassigned | ||
Launchpad itself |
Fix Released
|
Critical
|
Unassigned | ||
bzr (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Workarounds
-----------
* pull/branch from the stacked on branch [into the same repository/branch], then try the pull/branch from the branch that reported the error.
* use nosmart+ before the url of the branch you are pulling/branching from
Details
-------
This is a server side bug. A cross-check for 'what revisions to send' was being triggered in a situation where clients have to accept partial data anyway. The cross check existed before stacking was added to the code base.
Resolution
----------
The cross check has been disabled for the streaming fetch method. To prevent this occuring on a given branch, upgrade the bzr on the server to contain the fix (either by cherrypicking r4342 from bzr.dev, runnng bzr.dev, or when 1.15 is available running 1.15).
Example traceback
-----------------
stewart@
bzr: ERROR: bzrlib.
...
File "/home/
(path, self.to_
File "/home/
self.
File "/home/
self.
File "/home/
_translate_
File "/home/
raise NoSuchRevision(
File "/home/
raise err
ErrorFromSmartS
Changed in bzr: | |
assignee: | nobody → Andrew Bennetts (spiv) |
importance: | Undecided → High |
milestone: | none → 1.15rc1 |
tags: | added: hpss |
description: | updated |
tags: | added: lp-cherrypick-candidate |
tags: |
added: lp-cp removed: lp-cherrypick-candidate |
description: | updated |
tags: |
added: lp-needs removed: lp-cp |
summary: |
- get_stream on stacked branch causes "Error received from smart server: + bzr pull/branch shows "Error received from smart server: ('NoSuchRevision',)" |
Changed in launchpad-code: | |
status: | Confirmed → Fix Committed |
Changed in launchpad-code: | |
milestone: | none → 2.2.5 |
status: | Fix Committed → Fix Released |
Changed in bzr (Ubuntu): | |
status: | New → Fix Released |
Andrew, I had this specific issue, with the 'NoSuchRevision' traceback in 1.14rc1.
I tried your first suggested workaround: I updated trunk, and tried branching again, but using a bzr+ssh:// url (lp:~mars/....). That caused bug 354036, 'AbsentContentF actory' , to occur.
Next, I tried pulling from the sftp:// url, which worked perfectly.
So, pulling trunk/, and branching from the sftp:// URL should serve as a workaround for both this and bug 354036, without having to downgrade bzr.