[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-08-31 Thread Andrew Bennetts
Michael: why is this Fix Committed in Launchpad?  As far as I know users
still have no way to fix branches in the mirrored area of code hosting,
even if they run the fix script on their hosted branch. (or on the
mirror source for externally hosted branches).

** Summary changed:

- ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
+ ErrorFromSmartServer - AbsentContentFactory (unfixable by users) error when  
pulling a branch from the mirrored area

-- 
ErrorFromSmartServer - AbsentContentFactory (unfixable by users) error when  
pulling a branch from the mirrored area
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-05-08 Thread Michael Hudson
** Changed in: launchpad-code
   Status: New = Fix Committed

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-05-06 Thread Robert Collins
** Description changed:

- When bzr  1.13.2 (and bzr 1.14rc1) push a stacked branch they do not
- take care to push all the parent inventories for the transferred
- revisions.  This means that a smart server serving that branch often
- cannot calculate inventory deltas for the branch (because smart server
- does not/cannot open fallback repositories).  Prior to 1.13 the server
- did not have a verb to stream revisions out of a repository, so that's
- why this bug has appeared now.
- 
- bzr.dev and 1.14rc2 have been fixed to push up complete branches always,
- and bzr.dev has a fix for the server to make unfixed clients that use
- the Repository.insert_stream* HPSS verbs send the missing records.  (See
- also bug 368418 about the server fix in bzr.dev)
- 
- So upgrading clients to 1.14rc2 or newer fixes this bug.  Alternatively
- upgrading the server to bzr.dev r4307 and using 1.13 or newer clients to
- push via HPSS fixes this too.
- 
  Workarounds
  
  
- There are multiple workarounds for dealing with an affected branch.  In
- rough order of preference:
+ If you can write to the branch:
  
-  - Use the 'foo.py' script Robert has attached to this bug to repair the 
affected branch (by fetching the missing parts from the stacked-on repository)
-  - Delete the affected branch and repush it with a fixed client (1.14rc2 or 
newer)
-  - Use non-smart URLs to access an affected branch, e.g. sftp:// or 
nosmart+bzr+ssh://.  This works because the client can access the stacked-on 
repository, and the missing data is present there.
+  - Use the fixer script attached to this bug to repair the affected branch 
(by fetching the missing parts from the stacked-on repository). Run it as 
'fix-branch.py bzr+ssh://bazaar.launchpad.net/~user/project/branch'. You must 
have write access to the branch to do this.
+  - Alternatively just delete the affected branch and repush it with a fixed 
client (1.14rc2 or newer)
  
+ If you cannot write to the branch:
+ 
+  - Use non-smart URLs to access an affected branch, e.g. sftp:// or
+ nosmart+bzr+ssh://.  This works because the client can access the
+ stacked-on repository, and the missing data is present there, but will
+ be slower as it disables streaming fetch.
+ 
+ Details
+ ---
+ 
+ When bzr introduced stacking the data pushed to a stacking branch was
+ too minimal. This lack was discovered when streaming fetch from stacked
+ branches was enabled. The server needs to be able to generate a delta of
+ the data in its graph to decide what to send the client, and the ACF
+ record sent to the client is an indicator that it was failing to do this
+ correctly.
+ 
+ Resolution
+ --
+ 
+ Use bzr.dev newer than r4037 (or bzr 1.15 or newer) on the server and
+ bzr 1.13 or newer as clients with bzr+ssh or bzr+http urls. If the
+ server cannot run 1.15, use bzr 1.13.2 or 1.14rc2 or newer on the
+ client. Do not use older bzr versions.
+ 
+ bzr.dev and 1.14rc2 have been fixed on the client side to always include
+ enough data, and bzr.dev (and thus bzr 1.15) include a fix for the
+ server to make bzr 1.13 clients that use the Repository.insert_stream*
+ HPSS verbs send the missing records.  (See also bug 368418 about the
+ server fix in bzr.dev)
  
  Symptom
  ---
  
  When pulling affected branches, you get a traceback like this:
  
- This manifests as exceptions from the server involving
- 'AbsentContentFactory'.
- 
- e.g. The exception below occurred while pulling lp:~rivenx/rivenx/domes
- using bzr.dev r4237.
- 
  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 /Library/Python/2.6/site-packages/bzrlib/commands.py, line 727, in 
exception_to_return_code
- return the_callable(*args, **kwargs)
-   File /Library/Python/2.6/site-packages/bzrlib/commands.py, line 922, in 
run_bzr
- ret = run(*run_argv)
-   File /Library/Python/2.6/site-packages/bzrlib/commands.py, line 559, in 
run_argv_aliases
- return self.run(**all_cmd_args)
-   File /Library/Python/2.6/site-packages/bzrlib/builtins.py, line 1103, in 
run
- source_branch=br_from)
-   File /Library/Python/2.6/site-packages/bzrlib/bzrdir.py, line 1139, in 
sprout
- result_repo.fetch(source_repository, revision_id=revision_id)
-   File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 1465, 
in fetch
- find_ghosts=find_ghosts, fetch_spec=fetch_spec)
+ ...
File /Library/Python/2.6/site-packages/bzrlib/decorators.py, line 192, in 
write_locked
  result = unbound(self, *args, **kwargs)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 2991, 
in fetch
  pb=pb, find_ghosts=find_ghosts)
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 84, in 
__init__
  self.__fetch()
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 110, in 
__fetch
  

[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-05-06 Thread Robert Collins
** Description changed:

  Workarounds
  
  
  If you can write to the branch:
  
   - Use the fixer script attached to this bug to repair the affected branch 
(by fetching the missing parts from the stacked-on repository). Run it as 
'fix-branch.py bzr+ssh://bazaar.launchpad.net/~user/project/branch'. You must 
have write access to the branch to do this.
   - Alternatively just delete the affected branch and repush it with a fixed 
client (1.14rc2 or newer)
  
  If you cannot write to the branch:
  
   - Use non-smart URLs to access an affected branch, e.g. sftp:// or
  nosmart+bzr+ssh://.  This works because the client can access the
  stacked-on repository, and the missing data is present there, but will
  be slower as it disables streaming fetch.
  
  Details
  ---
  
  When bzr introduced stacking the data pushed to a stacking branch was
  too minimal. This lack was discovered when streaming fetch from stacked
  branches was enabled. The server needs to be able to generate a delta of
  the data in its graph to decide what to send the client, and the ACF
  record sent to the client is an indicator that it was failing to do this
  correctly.
  
  Resolution
  --
  
- Use bzr.dev newer than r4037 (or bzr 1.15 or newer) on the server and
+ Use bzr.dev newer than r4307 (or bzr 1.15 or newer) on the server and
  bzr 1.13 or newer as clients with bzr+ssh or bzr+http urls. If the
  server cannot run 1.15, use bzr 1.13.2 or 1.14rc2 or newer on the
  client. Do not use older bzr versions.
  
  bzr.dev and 1.14rc2 have been fixed on the client side to always include
  enough data, and bzr.dev (and thus bzr 1.15) include a fix for the
  server to make bzr 1.13 clients that use the Repository.insert_stream*
  HPSS verbs send the missing records.  (See also bug 368418 about the
  server fix in bzr.dev)
  
  Symptom
  ---
  
  When pulling affected branches, you get a traceback like this:
  
  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 /Library/Python/2.6/site-packages/bzrlib/decorators.py, line 192, in 
write_locked
  result = unbound(self, *args, **kwargs)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 2991, 
in fetch
  pb=pb, find_ghosts=find_ghosts)
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 84, in 
__init__
  self.__fetch()
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 110, in 
__fetch
  self._fetch_everything_for_search(search)
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 138, in 
_fetch_everything_for_search
  stream, from_format, [])
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 3791, 
in insert_stream
  return self._locked_insert_stream(stream, src_format)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 3819, 
in _locked_insert_stream
  for substream_type, substream in stream:
File /Library/Python/2.6/site-packages/bzrlib/remote.py, line 1709, in 
missing_parents_chain
  for kind, substream in stream:
File /Library/Python/2.6/site-packages/bzrlib/smart/repository.py, line 
447, in record_stream
  for bytes in byte_stream:
File /Library/Python/2.6/site-packages/bzrlib/smart/message.py, line 336, 
in read_streamed_body
  _translate_error(self._body_error_args)
File /Library/Python/2.6/site-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')

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-05-05 Thread Robert Collins
** Tags added: lp-cherrypick-candidate

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-05-05 Thread Robert Collins
** Tags added: lp-cp
** Tags removed: lp-cherrypick-candidate

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-29 Thread Robert Collins
bzr versions 1.6-1.12 inclusive will continue to create branches with
insufficient data. We can't tell the server to tell them to upload more
data as we can for 1.13 and above. We should look at running the fix
script or something similar after such clients write to a stacked
branch.

** Also affects: launchpad-code
   Importance: Undecided
   Status: New

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-29 Thread Andrew Bennetts
** Description changed:

  When bzr 1.13.1 and earlier push a stacked branch they do not take care
  to push all the parent inventories for the transferred revisions.  This
  means that a smart server serving that branch often cannot calculate
  inventory deltas for the branch (because smart server does not/cannot
  open fallback repositories).  Prior to 1.13 the server did not have a
  verb to stream revisions out of a repository, so that's why this bug has
  appeared now.
+ 
+ bzr.dev and 1.14rc2 have been fixed to push up complete branches always,
+ and bzr.dev has a fix for the server to make unfixed clients that use
+ the Repository.insert_stream* HPSS verbs send the missing records.  (See
+ also bug 368418 about the server fix in bzr.dev)
+ 
+ So upgrading clients to 1.14rc2 or newer fixes this bug.  Alternatively
+ upgrading the server to bzr.dev r4307 and using 1.13 or newer clients to
+ push via HPSS fixes this too.
+ 
+ Workarounds
+ 
+ 
+ There are multiple workarounds for dealing with an affected branch.  In
+ rough order of preference:
+ 
+  - Use the 'foo.py' script Robert has attached to this bug to repair the 
affected branch (by fetching the missing parts from the stacked-on repository)
+  - Delete the affected branch and repush it with a fixed client (1.14rc2 or 
newer)
+  - Use non-smart URLs to access an affected branch, e.g. sftp:// or 
nosmart+bzr+ssh://.  This works because the client can access the stacked-on 
repository, and the missing data is present there.
+ 
+ 
+ Symptom
+ ---
+ 
+ When pulling affected branches, you get a traceback like this:
  
  This manifests as exceptions from the server involving
  'AbsentContentFactory'.
  
  e.g. The exception below occurred while pulling lp:~rivenx/rivenx/domes
  using bzr.dev r4237.
  
  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 /Library/Python/2.6/site-packages/bzrlib/commands.py, line 727, in 
exception_to_return_code
  return the_callable(*args, **kwargs)
File /Library/Python/2.6/site-packages/bzrlib/commands.py, line 922, in 
run_bzr
  ret = run(*run_argv)
File /Library/Python/2.6/site-packages/bzrlib/commands.py, line 559, in 
run_argv_aliases
  return self.run(**all_cmd_args)
File /Library/Python/2.6/site-packages/bzrlib/builtins.py, line 1103, in 
run
  source_branch=br_from)
File /Library/Python/2.6/site-packages/bzrlib/bzrdir.py, line 1139, in 
sprout
  result_repo.fetch(source_repository, revision_id=revision_id)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 1465, 
in fetch
  find_ghosts=find_ghosts, fetch_spec=fetch_spec)
File /Library/Python/2.6/site-packages/bzrlib/decorators.py, line 192, in 
write_locked
  result = unbound(self, *args, **kwargs)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 2991, 
in fetch
  pb=pb, find_ghosts=find_ghosts)
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 84, in 
__init__
  self.__fetch()
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 110, in 
__fetch
  self._fetch_everything_for_search(search)
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 138, in 
_fetch_everything_for_search
  stream, from_format, [])
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 3791, 
in insert_stream
  return self._locked_insert_stream(stream, src_format)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 3819, 
in _locked_insert_stream
  for substream_type, substream in stream:
File /Library/Python/2.6/site-packages/bzrlib/remote.py, line 1709, in 
missing_parents_chain
  for kind, substream in stream:
File /Library/Python/2.6/site-packages/bzrlib/smart/repository.py, line 
447, in record_stream
  for bytes in byte_stream:
File /Library/Python/2.6/site-packages/bzrlib/smart/message.py, line 336, 
in read_streamed_body
  _translate_error(self._body_error_args)
File /Library/Python/2.6/site-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')
  
  bzr 1.14dev on python 2.6.1 (darwin)
  arguments: ['/usr/local/bin/bzr', 'branch', 'lp:~rivenx/rivenx/domes']
  encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
  plugins:
bzrtools 
/Library/Python/2.6/site-packages/bzrlib/plugins/bzrtools [1.13]
keychain_credential_store 
/Volumes/Crossroads/bahamut/.bazaar/plugins/keychain_credential_store [0.1dev]
launchpad
/Library/Python/2.6/site-packages/bzrlib/plugins/launchpad [unknown]
netrc_credential_store 

[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-29 Thread Robert Collins

** Attachment added: latest fixer
   http://launchpadlibrarian.net/26166834/fix-branch.py

** Attachment removed: foo.py
   http://launchpadlibrarian.net/25841405/foo.py

** Attachment removed: foo.py
   http://launchpadlibrarian.net/25904342/foo.py

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-28 Thread Bob Tanner
** Changed in: bzr/1.13
   Status: Fix Committed = Fix Released

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-27 Thread Andrew Bennetts
Robert, your script looks sane, but I haven't tested it...

** Description changed:

  When bzr 1.13.1 and earlier push a stacked branch they do not take care
  to push all the parent inventories for the transferred revisions.  This
  means that a smart server serving that branch often cannot calculate
  inventory deltas for the branch (because smart server does not/cannot
  open fallback repositories).  Prior to 1.13 the server did not have a
  verb to stream revisions out of a repository, so that's why this bug has
  appeared now.
  
  This manifests as exceptions from the server involving
  'AbsentContentFactory'.
  
  e.g. The exception below occurred while pulling lp:~rivenx/rivenx/domes
  using bzr.dev r4237.
  
  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 /Library/Python/2.6/site-packages/bzrlib/commands.py, line 727, in 
exception_to_return_code
  return the_callable(*args, **kwargs)
File /Library/Python/2.6/site-packages/bzrlib/commands.py, line 922, in 
run_bzr
  ret = run(*run_argv)
File /Library/Python/2.6/site-packages/bzrlib/commands.py, line 559, in 
run_argv_aliases
  return self.run(**all_cmd_args)
File /Library/Python/2.6/site-packages/bzrlib/builtins.py, line 1103, in 
run
  source_branch=br_from)
File /Library/Python/2.6/site-packages/bzrlib/bzrdir.py, line 1139, in 
sprout
  result_repo.fetch(source_repository, revision_id=revision_id)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 1465, 
in fetch
  find_ghosts=find_ghosts, fetch_spec=fetch_spec)
File /Library/Python/2.6/site-packages/bzrlib/decorators.py, line 192, in 
write_locked
  result = unbound(self, *args, **kwargs)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 2991, 
in fetch
  pb=pb, find_ghosts=find_ghosts)
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 84, in 
__init__
  self.__fetch()
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 110, in 
__fetch
  self._fetch_everything_for_search(search)
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 138, in 
_fetch_everything_for_search
  stream, from_format, [])
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 3791, 
in insert_stream
  return self._locked_insert_stream(stream, src_format)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 3819, 
in _locked_insert_stream
  for substream_type, substream in stream:
File /Library/Python/2.6/site-packages/bzrlib/remote.py, line 1709, in 
missing_parents_chain
  for kind, substream in stream:
File /Library/Python/2.6/site-packages/bzrlib/smart/repository.py, line 
447, in record_stream
  for bytes in byte_stream:
File /Library/Python/2.6/site-packages/bzrlib/smart/message.py, line 336, 
in read_streamed_body
  _translate_error(self._body_error_args)
File /Library/Python/2.6/site-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')
  
  bzr 1.14dev on python 2.6.1 (darwin)
  arguments: ['/usr/local/bin/bzr', 'branch', 'lp:~rivenx/rivenx/domes']
  encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
  plugins:
bzrtools 
/Library/Python/2.6/site-packages/bzrlib/plugins/bzrtools [1.13]
keychain_credential_store 
/Volumes/Crossroads/bahamut/.bazaar/plugins/keychain_credential_store [0.1dev]
launchpad
/Library/Python/2.6/site-packages/bzrlib/plugins/launchpad [unknown]
netrc_credential_store 
/Library/Python/2.6/site-packages/bzrlib/plugins/netrc_credential_store 
[unknown]
svn  /Volumes/Crossroads/bahamut/.bazaar/plugins/svn 
[0.5.4dev]
  *** 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.
  
- A workaround is to use non-smart URLs, e.g. sftp:// or
- nosmart+bzr+ssh://.  This works because the client can access the
- stacked-on repository, and the missing data is present there.
  
- To fix an affected branch, delete it and push it again with a fixed
- client (1.14rc2 or newer).  (Andrew will write a script to push just the
- missing data to an existing branch, but for now this is the only way to
- fix an affected branch.)
+ bzr.dev and 1.14rc2 have been fixed to push up complete branches always, and 
a fix for the server to make unfixed clients send the missing records has been 
sent to the list for review.
  
- bzr.devand 1.14rc2 have been fixed to push up complete branches always,
- and a fix for the server to make unfixed 

[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-27 Thread Guillermo Gonzalez
Robert I tried the script but I keep getting this error:

Missing inventories: 
set([('p...@pqm.ubuntu.com-20090424194131-qejafldvm3790pnz',), 
('p...@pqm.ubuntu.com-20090424154639-irhxcy29a2llkv23',)])
Traceback (most recent call last):
  File /home/guillermo/Desktop/foo(2).py, line 36, in module
main()
  File /home/guillermo/Desktop/foo(2).py, line 27, in main
raw_r.inventories.insert_recort_stream(stream)
AttributeError: 'KnitVersionedFiles' object has no attribute 
'insert_recort_stream'

Also tried to delete and re-push the branch with bzr.dev and hitted the
error with 1.14rc2 clients.

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-27 Thread Eric Casteleijn
There's a typo in the script:

L27:

  raw_r.inventories.insert_recort_stream(stream)


should be:

  raw_r.inventories.insert_record_stream(stream)

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-27 Thread Robert Collins
On Mon, 2009-04-27 at 13:24 +, Guillermo Gonzalez wrote:
 Robert I tried the script but I keep getting this error:
 
 Missing inventories: 
 set([('p...@pqm.ubuntu.com-20090424194131-qejafldvm3790pnz',), 
 ('p...@pqm.ubuntu.com-20090424154639-irhxcy29a2llkv23',)])
 Traceback (most recent call last):
   File /home/guillermo/Desktop/foo(2).py, line 36, in module
 main()
   File /home/guillermo/Desktop/foo(2).py, line 27, in main
 raw_r.inventories.insert_recort_stream(stream)
 AttributeError: 'KnitVersionedFiles' object has no attribute 
 'insert_recort_stream'


s/recort/record :) Just a typo - might want to attach a new vesion.

-Rob

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-27 Thread Nicola Larosa
The script is producing the following output:

Missing inventories:
set([('p...@pqm.ubuntu.com-20090420160237-yw9e8n5a307gcqth',),
('p...@pqm.ubuntu.com-20090422083034-s0shm3d0hxhg84lq',),
('p...@pqm.ubuntu.com-20090420214347-k1gk0keo4a7uxt2h',),
('p...@pqm.ubuntu.com-20090422230628-xtyi56fbatp545z8',),
('p...@pqm.ubuntu.com-20090423201454-bscveppbq3t0hpqf',),
('p...@pqm.ubuntu.com-20090424164259-u2gmlzow130bpaho',),
('p...@pqm.ubuntu.com-20090427044751-7mxz2gei6nxsrj9t',),
('p...@pqm.ubuntu.com-20090417154022-pxsz93dbtv43n0my',),
('p...@pqm.ubuntu.com-20090420184923-ygjiru4iutsu1b0v',),
('p...@pqm.ubuntu.com-20090423174041-kltbfhdz4un16iq0',)])

It also seem to contain a typo on line #27, insert_recort_stream should
possibly be insert_record_stream . The above output was obtained after
correcting said typo.

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-27 Thread Bob Tanner
** Changed in: bzr/1.13
   Status: Confirmed = Fix Committed

** Changed in: bzr/1.13
 Assignee: (unassigned) = Bob Tanner (tanner)

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-27 Thread Andrew Bennetts
** Description changed:

  When bzr 1.13.1 and earlier push a stacked branch they do not take care
  to push all the parent inventories for the transferred revisions.  This
  means that a smart server serving that branch often cannot calculate
  inventory deltas for the branch (because smart server does not/cannot
  open fallback repositories).  Prior to 1.13 the server did not have a
  verb to stream revisions out of a repository, so that's why this bug has
  appeared now.
  
  This manifests as exceptions from the server involving
  'AbsentContentFactory'.
  
  e.g. The exception below occurred while pulling lp:~rivenx/rivenx/domes
  using bzr.dev r4237.
  
  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 /Library/Python/2.6/site-packages/bzrlib/commands.py, line 727, in 
exception_to_return_code
  return the_callable(*args, **kwargs)
File /Library/Python/2.6/site-packages/bzrlib/commands.py, line 922, in 
run_bzr
  ret = run(*run_argv)
File /Library/Python/2.6/site-packages/bzrlib/commands.py, line 559, in 
run_argv_aliases
  return self.run(**all_cmd_args)
File /Library/Python/2.6/site-packages/bzrlib/builtins.py, line 1103, in 
run
  source_branch=br_from)
File /Library/Python/2.6/site-packages/bzrlib/bzrdir.py, line 1139, in 
sprout
  result_repo.fetch(source_repository, revision_id=revision_id)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 1465, 
in fetch
  find_ghosts=find_ghosts, fetch_spec=fetch_spec)
File /Library/Python/2.6/site-packages/bzrlib/decorators.py, line 192, in 
write_locked
  result = unbound(self, *args, **kwargs)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 2991, 
in fetch
  pb=pb, find_ghosts=find_ghosts)
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 84, in 
__init__
  self.__fetch()
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 110, in 
__fetch
  self._fetch_everything_for_search(search)
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 138, in 
_fetch_everything_for_search
  stream, from_format, [])
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 3791, 
in insert_stream
  return self._locked_insert_stream(stream, src_format)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 3819, 
in _locked_insert_stream
  for substream_type, substream in stream:
File /Library/Python/2.6/site-packages/bzrlib/remote.py, line 1709, in 
missing_parents_chain
  for kind, substream in stream:
File /Library/Python/2.6/site-packages/bzrlib/smart/repository.py, line 
447, in record_stream
  for bytes in byte_stream:
File /Library/Python/2.6/site-packages/bzrlib/smart/message.py, line 336, 
in read_streamed_body
  _translate_error(self._body_error_args)
File /Library/Python/2.6/site-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')
  
  bzr 1.14dev on python 2.6.1 (darwin)
  arguments: ['/usr/local/bin/bzr', 'branch', 'lp:~rivenx/rivenx/domes']
  encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
  plugins:
bzrtools 
/Library/Python/2.6/site-packages/bzrlib/plugins/bzrtools [1.13]
keychain_credential_store 
/Volumes/Crossroads/bahamut/.bazaar/plugins/keychain_credential_store [0.1dev]
launchpad
/Library/Python/2.6/site-packages/bzrlib/plugins/launchpad [unknown]
netrc_credential_store 
/Library/Python/2.6/site-packages/bzrlib/plugins/netrc_credential_store 
[unknown]
svn  /Volumes/Crossroads/bahamut/.bazaar/plugins/svn 
[0.5.4dev]
  *** 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.
  
  
- bzr.dev and 1.14rc2 have been fixed to push up complete branches always, and 
a fix for the server to make unfixed clients send the missing records has been 
sent to the list for review.
+ bzr.dev and 1.14rc2 have been fixed to push up complete branches always, and 
bzr.dev has a fix for the server to make unfixed clients send the missing 
records.
+ 
+ So upgrading clients to 1.14rc2 or newer fixes this bug.  Alternatively
+ upgrading the server to bzr.dev r4307 and using 1.13 or newer clients to
+ push via HPSS fixes this too.
  
  Workarounds
  
  
- There are multiple workarounds.  In rough order of preference:
+ There are multiple workarounds for dealing with an affected branch.  In
+ rough order of preference:
  
   - Use the 'foo.py' script Robert has attached to this bug 

[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-23 Thread Nicola Larosa
Today we upgraded bzr to 1.14~rc2-1~bazaar1~jaunty1.

Then we run bzr push --overwrite on both branches (the one being
merged, and the one receiving the merge), but the problem was still
there.

We then removed both branches from LP and pushed them again, but still
no luck.

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-23 Thread Rick McBride
Ubuntu One is definitely still seeing problems with this, as Nicola
indicated above.

I don't know what the proper thing to do with the status is on this, but
I'm going to chime in with a this isn't entirely fixed opinion at this
point.

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-23 Thread Robert Collins
On Thu, 2009-04-23 at 08:58 +, Nicola Larosa wrote:
 
 Then we run bzr push --overwrite on both branches (the one being
 merged, and the one receiving the merge), but the problem was still
 there.

This wouldn't fix the problem.

 We then removed both branches from LP and pushed them again, but still
 no luck.

This should have. Have you tried my fix script?

-Rob

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-23 Thread Rick McBride
when I try that script on an affected branch, I get

Traceback (most recent call last):
   File /home/rmcbride/foo.py, line 3, in module
 b = bzrlib.branch.Branch.open(argv[1])
NameError: name 'argv' is not defined


I'm guessing there's a parameter I should be passing


Robert Collins wrote:
 On Thu, 2009-04-23 at 08:58 +, Nicola Larosa wrote:
 Then we run bzr push --overwrite on both branches (the one being
 merged, and the one receiving the merge), but the problem was still
 there.
 
 This wouldn't fix the problem.
 
 We then removed both branches from LP and pushed them again, but still
 no luck.
 
 This should have. Have you tried my fix script?
 
 -Rob


-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-23 Thread Robert Collins
On Thu, 2009-04-23 at 22:20 +, Rick McBride wrote:
 when I try that script on an affected branch, I get
 
 Traceback (most recent call last):
File /home/rmcbride/foo.py, line 3, in module
  b = bzrlib.branch.Branch.open(argv[1])
 NameError: name 'argv' is not defined
 
 
 I'm guessing there's a parameter I should be passing

New version that should fix that.

And yes, run as 
python foo.py lp:BRANCHONLP


** Attachment added: foo.py
   http://launchpadlibrarian.net/25904342/foo.py

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-23 Thread Rick McBride
Robert Collins wrote:
 On Thu, 2009-04-23 at 22:20 +, Rick McBride wrote:
 when I try that script on an affected branch, I get

 Traceback (most recent call last):
File /home/rmcbride/foo.py, line 3, in module
  b = bzrlib.branch.Branch.open(argv[1])
 NameError: name 'argv' is not defined


 I'm guessing there's a parameter I should be passing
 
 New version that should fix that.
 
 And yes, run as 
 python foo.py lp:BRANCHONLP
 
 
 ** Attachment added: foo.py
http://launchpadlibrarian.net/25904342/foo.py
 


When I do that 
(rmcbr...@strangiato:~/canonical/ubunet/homepage-teh-client-pkg$ python 
/home/rmcbride/foo.py lp:~rmcbride/ubunet/homepage-teh-client-pkg)

I get

bzrlib.errors.NotBranchError: Not a branch: 
/home/rmcbride/canonical/ubunet/homepage-teh-client-pkg/lp:~rmcbride/ubunet/homepage-teh-client-pkg/.


When I leave it out I now get

Traceback (most recent call last):
   File /home/rmcbride/foo.py, line 4, in module
 b = bzrlib.branch.Branch.open(sys.argv[1])
IndexError: list index out of range

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-23 Thread Robert Collins
On Thu, 2009-04-23 at 23:28 +, Rick McBride wrote:
 Robert Collins wrote:
  On Thu, 2009-04-23 at 22:20 +, Rick McBride wrote:
  when I try that script on an affected branch, I get
 
  Traceback (most recent call last):
 File /home/rmcbride/foo.py, line 3, in module
   b = bzrlib.branch.Branch.open(argv[1])
  NameError: name 'argv' is not defined
 
 
  I'm guessing there's a parameter I should be passing
  
  New version that should fix that.
  
  And yes, run as 
  python foo.py lp:BRANCHONLP
  
  
  ** Attachment added: foo.py
 http://launchpadlibrarian.net/25904342/foo.py
  
 
 
 When I do that 
 (rmcbr...@strangiato:~/canonical/ubunet/homepage-teh-client-pkg$ python 
 /home/rmcbride/foo.py lp:~rmcbride/ubunet/homepage-teh-client-pkg)
 
 I get
 
 bzrlib.errors.NotBranchError: Not a branch: 
 /home/rmcbride/canonical/ubunet/homepage-teh-client-pkg/lp:~rmcbride/ubunet/homepage-teh-client-pkg/.

Oh,I haven't loaded plugins.

use bzr
+ssh://bazaar.launchpad.net/~rmcbride/ubunet/homepage-teh-client-pkg

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-23 Thread Rick McBride
That seems to work more, but I do get the following message:

Missing inventories: set([])


Robert Collins wrote:
 On Thu, 2009-04-23 at 23:28 +, Rick McBride wrote:
 Robert Collins wrote:
 On Thu, 2009-04-23 at 22:20 +, Rick McBride wrote:
 when I try that script on an affected branch, I get

 Traceback (most recent call last):
File /home/rmcbride/foo.py, line 3, in module
  b = bzrlib.branch.Branch.open(argv[1])
 NameError: name 'argv' is not defined 






 I'm guessing there's a parameter I should be passing
 New version that should fix that.

 And yes, run as 
 python foo.py lp:BRANCHONLP


 ** Attachment added: foo.py
http://launchpadlibrarian.net/25904342/foo.py


 When I do that 
 (rmcbr...@strangiato:~/canonical/ubunet/homepage-teh-client-pkg$ python 
 /home/rmcbride/foo.py lp:~rmcbride/ubunet/homepage-teh-client-pkg)

 I get

 bzrlib.errors.NotBranchError: Not a branch: 
 /home/rmcbride/canonical/ubunet/homepage-teh-client-pkg/lp:~rmcbride/ubunet/homepage-teh-client-pkg/.
 
 Oh,I haven't loaded plugins.
 
 use bzr
 +ssh://bazaar.launchpad.net/~rmcbride/ubunet/homepage-teh-client-pkg


-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-23 Thread Robert Collins
On Thu, 2009-04-23 at 23:58 +, Rick McBride wrote:

 That seems to work more, but I do get the following message:
 
 Missing inventories: set([])

That means that your branch appears fine. You're not suffering *this
bug* on *that branch*.

-Rob

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-23 Thread Rick McBride
OK. I suspected as much. I'm afraid something else may be wrong then, as 
Phil Fibiger reported the same error with that exact branch...


Robert Collins wrote:
 On Thu, 2009-04-23 at 23:58 +, Rick McBride wrote:
 
 That seems to work more, but I do get the following message:

 Missing inventories: set([])
 
 That means that your branch appears fine. You're not suffering *this
 bug* on *that branch*.
 
 -Rob


-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-23 Thread Robert Collins
spiv, care to double check my foo.py?

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-22 Thread Martin Pool
** Also affects: bzr/1.13
   Importance: Undecided
   Status: New

** Changed in: bzr/1.13
   Importance: Undecided = High

** Changed in: bzr/1.13
   Status: New = Confirmed

** Changed in: bzr/1.13
Milestone: None = 1.13.2

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-22 Thread Bob Tanner
Merged into 1.13.2, I cannot change the bug task Status, so posting
here. See http://permalink.gmane.org/gmane.comp.version-control.bazaar-
ng.general/57030 for my question regarding changing Status.

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-21 Thread Andrew Bennetts
I've updated the bug description to hopefully make the fix for affected
branches more explicit: currently the only way to fix an affected branch
is to delete it and push it again with a fixed client (such as 1.14rc2).
Some other workarounds are listed in the bug description too.

Thanks for the update, it sounds like this isn't a new instance of this
bug, so I'll close this bug again.

** Description changed:

  When bzr 1.13.1 and earlier push a stacked branch they do not take care
  to push all the parent inventories for the transferred revisions.  This
  means that a smart server serving that branch often cannot calculate
  inventory deltas for the branch (because smart server does not/cannot
  open fallback repositories).  Prior to 1.13 the server did not have a
  verb to stream revisions out of a repository, so that's why this bug has
  appeared now.
  
  This manifests as exceptions from the server involving
  'AbsentContentFactory'.
  
  e.g. The exception below occurred while pulling lp:~rivenx/rivenx/domes
  using bzr.dev r4237.
  
  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 /Library/Python/2.6/site-packages/bzrlib/commands.py, line 727, in 
exception_to_return_code
  return the_callable(*args, **kwargs)
File /Library/Python/2.6/site-packages/bzrlib/commands.py, line 922, in 
run_bzr
  ret = run(*run_argv)
File /Library/Python/2.6/site-packages/bzrlib/commands.py, line 559, in 
run_argv_aliases
  return self.run(**all_cmd_args)
File /Library/Python/2.6/site-packages/bzrlib/builtins.py, line 1103, in 
run
  source_branch=br_from)
File /Library/Python/2.6/site-packages/bzrlib/bzrdir.py, line 1139, in 
sprout
  result_repo.fetch(source_repository, revision_id=revision_id)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 1465, 
in fetch
  find_ghosts=find_ghosts, fetch_spec=fetch_spec)
File /Library/Python/2.6/site-packages/bzrlib/decorators.py, line 192, in 
write_locked
  result = unbound(self, *args, **kwargs)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 2991, 
in fetch
  pb=pb, find_ghosts=find_ghosts)
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 84, in 
__init__
  self.__fetch()
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 110, in 
__fetch
  self._fetch_everything_for_search(search)
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 138, in 
_fetch_everything_for_search
  stream, from_format, [])
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 3791, 
in insert_stream
  return self._locked_insert_stream(stream, src_format)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 3819, 
in _locked_insert_stream
  for substream_type, substream in stream:
File /Library/Python/2.6/site-packages/bzrlib/remote.py, line 1709, in 
missing_parents_chain
  for kind, substream in stream:
File /Library/Python/2.6/site-packages/bzrlib/smart/repository.py, line 
447, in record_stream
  for bytes in byte_stream:
File /Library/Python/2.6/site-packages/bzrlib/smart/message.py, line 336, 
in read_streamed_body
  _translate_error(self._body_error_args)
File /Library/Python/2.6/site-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')
  
  bzr 1.14dev on python 2.6.1 (darwin)
  arguments: ['/usr/local/bin/bzr', 'branch', 'lp:~rivenx/rivenx/domes']
  encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
  plugins:
bzrtools 
/Library/Python/2.6/site-packages/bzrlib/plugins/bzrtools [1.13]
keychain_credential_store 
/Volumes/Crossroads/bahamut/.bazaar/plugins/keychain_credential_store [0.1dev]
launchpad
/Library/Python/2.6/site-packages/bzrlib/plugins/launchpad [unknown]
netrc_credential_store 
/Library/Python/2.6/site-packages/bzrlib/plugins/netrc_credential_store 
[unknown]
svn  /Volumes/Crossroads/bahamut/.bazaar/plugins/svn 
[0.5.4dev]
  *** 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.
  
  A workaround is to use non-smart URLs, e.g. sftp:// or
  nosmart+bzr+ssh://.  This works because the client can access the
  stacked-on repository, and the missing data is present there.
  
- bzr.dev has been fixed to push up complete branches always, and a fix
- for the server to make unfixed clients send the missing records has been
- sent to the list for review.
+ To fix an affected branch, delete it and push it 

Re: [Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-21 Thread Robert Collins
This should repair a branch.

import bzrlib.branch
from bzrlib.revision import NULL_REVISION
b = bzrlib.branch.Branch.open(argv[1])

def main():
b.lock_read()
if not b.repository._fallback_repositories:
return
raw_r = b.repository.bzrdir.open_repository()
raw_r.lock_write()
try:
  revs = raw_r.all_revision_ids()
  rev_parents = raw_r.get_graph().get_parent_map(revs)
  needed = set()
  map(needed.update, rev_parents.itervalues())
  needed.discard(NULL_REVISION)
  needed = set((rev,) for rev in needed)
  needed = needed - raw_r.inventories.keys()
  print Missing inventories: %r % needed
  if not needed:
return
  assert raw_r._format.network_name() ==
b.repository._format.network_name()
  stream = b.repository.inventories.get_record_stream(needed,
'topological', True)
  raw_r.start_write_group()
  try:
raw_r.inventories.insert_recort_stream(stream)
  except:
raw_r.abort_write_group()
raise
  else:
raw_r.commit_write_group()
finally:
  raw_r.unlock()

main()



** Attachment added: foo.py
   http://launchpadlibrarian.net/25841405/foo.py

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-21 Thread Nicola Larosa
After upgrading Bazaar to 0.14rc2, I'm still seeing this:

$ bzr merge lp:~thisfred/ubunet/contacts-api
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/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 3527, in run 
   
location, revision, remember, possible_transports, pb)  
   
  File /usr/lib/python2.6/dist-packages/bzrlib/builtins.py, line 3634, in 
_get_merger_from_branch
other_revision_id, base_revision_id, other_branch, base_branch) 
   
  File /usr/lib/python2.6/dist-packages/bzrlib/merge.py, line 204, in 
from_revision_ids  
merger.set_other_revision(other, other_branch)  
   
  File /usr/lib/python2.6/dist-packages/bzrlib/merge.py, line 345, in 
set_other_revision 
self._maybe_fetch(other_branch, self.this_branch, self.other_rev_id)
   
  File /usr/lib/python2.6/dist-packages/bzrlib/merge.py, line 362, in 
_maybe_fetch   
target.fetch(source, revision_id)   
   
  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/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 1735, in 
missing_parents_chain
for kind, substream in stream:
  File /usr/lib/python2.6/dist-packages/bzrlib/smart/repository.py, line 447, 
in record_stream
for bytes in byte_stream:
  File /usr/lib/python2.6/dist-packages/bzrlib/smart/message.py, line 336, in 
read_streamed_body
_translate_error(self._body_error_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')

bzr 1.14rc2 on python 2.6.2 (linux2)
arguments: ['/usr/bin/bzr', 'merge', 'lp:~thisfred/ubunet/contacts-api']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools 
[1.14]
  launchpad
/usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store 
/usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [unknown]
  pqm  /usr/lib/python2.6/dist-packages/bzrlib/plugins/pqm [1.3]
  rebase   /usr/lib/python2.6/dist-packages/bzrlib/plugins/rebase 
[0.4.4]
  svn  /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn 
[0.5.4]
*** Bazaar has encountered an internal error.
Please report a bug at 

[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-21 Thread Martin Pool
Reopened per ~thisfred (who obviously meant to say 1.14rc2)

** Changed in: bzr
   Status: Fix Committed = Confirmed

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-21 Thread Andrew Bennetts
Nicola: do you know if that branch was pushed with 1.14rc2 (and never
any older version)?  If so this is expected behaviour (unfortunately),
not another case of this bug.

Even with 1.14rc2 on both the client and the server you will still get
this error from stacked branches pushed with older bzr versions, because
those versions can push stacked branches that are incomplete.  i.e. the
AbsentContentFactory error is the symptom, not the bug.  The bug
occurs silently during push, but is only noticed later when doing a
pull/merge/etc.

(We should improve the server to give a better error to the client in
this scenario, because presumably old clients will keep creating stacked
branches for a while to come, but we should track that in a separate
bug.)


** Changed in: bzr
   Status: Confirmed = Incomplete

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-21 Thread Nicola Larosa
Yeah, I meant to say 1.14rc2, sorry. By the way, I'm teknico
(~teknico.net on LP, ugh), I was trying to merge a branch by thisfred.
:-)

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-21 Thread Nicola Larosa
 Nicola: do you know if that branch was pushed with 1.14rc2
 (and never any older version)? If so this is expected behaviour
 (unfortunately), not another case of this bug.

AFAIK, that branch was pushed at least yesterday, before today's upgrade
to 1.14rc2, so no. I'll ask thisfred confirmation later, when I get hold
of him.

As a workaround, I downgraded to 1.13.1, and get no errors anymore.

We do use stacked branches. What's the fix for the real bug? Do we need
to change something in the local, stacked branches? Does anything in bzr
code need to change?

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-18 Thread Andrew Bennetts
** Changed in: bzr
   Status: Confirmed = Fix Committed

** Changed in: bzr
Milestone: 1.14rc1 = 1.14rc2

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-18 Thread Bob Tanner
Merged into 1.14rc2. Thanks.

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-17 Thread Andrew Bennetts
** Description changed:

  When bzr 1.13.1 and earlier push a stacked branch they do not take care
  to push all the parent inventories for the transferred revisions.  This
  means that a smart server serving that branch often cannot calculate
  inventory deltas for the branch (because smart server does not/cannot
  open fallback repositories).  Prior to 1.13 the server did not have a
  verb to stream revisions out of a repository, so that's why this bug has
  appeared now.
  
  This manifests as exceptions from the server involving
  'AbsentContentFactory'.
  
  e.g. The exception below occurred while pulling lp:~rivenx/rivenx/domes
  using bzr.dev r4237.
  
  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 /Library/Python/2.6/site-packages/bzrlib/commands.py, line 727, in 
exception_to_return_code
  return the_callable(*args, **kwargs)
File /Library/Python/2.6/site-packages/bzrlib/commands.py, line 922, in 
run_bzr
  ret = run(*run_argv)
File /Library/Python/2.6/site-packages/bzrlib/commands.py, line 559, in 
run_argv_aliases
  return self.run(**all_cmd_args)
File /Library/Python/2.6/site-packages/bzrlib/builtins.py, line 1103, in 
run
  source_branch=br_from)
File /Library/Python/2.6/site-packages/bzrlib/bzrdir.py, line 1139, in 
sprout
  result_repo.fetch(source_repository, revision_id=revision_id)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 1465, 
in fetch
  find_ghosts=find_ghosts, fetch_spec=fetch_spec)
File /Library/Python/2.6/site-packages/bzrlib/decorators.py, line 192, in 
write_locked
  result = unbound(self, *args, **kwargs)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 2991, 
in fetch
  pb=pb, find_ghosts=find_ghosts)
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 84, in 
__init__
  self.__fetch()
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 110, in 
__fetch
  self._fetch_everything_for_search(search)
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 138, in 
_fetch_everything_for_search
  stream, from_format, [])
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 3791, 
in insert_stream
  return self._locked_insert_stream(stream, src_format)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 3819, 
in _locked_insert_stream
  for substream_type, substream in stream:
File /Library/Python/2.6/site-packages/bzrlib/remote.py, line 1709, in 
missing_parents_chain
  for kind, substream in stream:
File /Library/Python/2.6/site-packages/bzrlib/smart/repository.py, line 
447, in record_stream
  for bytes in byte_stream:
File /Library/Python/2.6/site-packages/bzrlib/smart/message.py, line 336, 
in read_streamed_body
  _translate_error(self._body_error_args)
File /Library/Python/2.6/site-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')
  
  bzr 1.14dev on python 2.6.1 (darwin)
  arguments: ['/usr/local/bin/bzr', 'branch', 'lp:~rivenx/rivenx/domes']
  encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
  plugins:
bzrtools 
/Library/Python/2.6/site-packages/bzrlib/plugins/bzrtools [1.13]
keychain_credential_store 
/Volumes/Crossroads/bahamut/.bazaar/plugins/keychain_credential_store [0.1dev]
launchpad
/Library/Python/2.6/site-packages/bzrlib/plugins/launchpad [unknown]
netrc_credential_store 
/Library/Python/2.6/site-packages/bzrlib/plugins/netrc_credential_store 
[unknown]
svn  /Volumes/Crossroads/bahamut/.bazaar/plugins/svn 
[0.5.4dev]
  *** 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.
+ 
+ A workaround is to use non-smart URLs, e.g. sftp:// or
+ nosmart+bzr+ssh://.  This works because the client can access the
+ stacked-on repository, and the missing data is present there.
+ 
+ bzr.dev has been fixed to push up complete branches always, and a fix
+ for the server to make unfixed clients send the missing records has been
+ sent to the list for review.

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-14 Thread Martin Pool
So the infestations of this bug are:

With both client and server  1.14rc1 there's no problem.
If the client is =1.13  =1.14rc1 you'll be susceptible to this problem, and 
may hit it eventually.

This was introduced in 1.13 and discovered when Launchpad upgraded to
1.13.  The cause of the problem goes back to 1.6 (where stacking was
added) but it can only be seen when there's a streaming pull from a
stacked repository, which was added in 1.13.

We were trying to have a way to have a new server cause the client to do
the right thing, but at present it only works sometimes.  In other cases
it will cause an assertion in the client, which is still better than
having the client think it's pushed and get it wrong.  However, it may
be possible to fix this.

That seems to mean this must be fixed in jaunty, probably with a minimal
1.13.2.

** Also affects: bzr (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: bzr (Ubuntu)
   Status: New = Confirmed

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

2009-04-14 Thread Andrew Bennetts
** Description changed:

- The exception below occurred while pulling lp:~rivenx/rivenx/domes using
- bzr.dev r4237.
+ When bzr 1.13.1 and earlier push a stacked branch they do not take care
+ to push all the parent inventories for the transferred revisions.  This
+ means that a smart server serving that branch often cannot calculate
+ inventory deltas for the branch (because smart server does not/cannot
+ open fallback repositories).  Prior to 1.13 the server did not have a
+ verb to stream revisions out of a repository, so that's why this bug has
+ appeared now.
+ 
+ This manifests as exceptions from the server involving
+ 'AbsentContentFactory'.
+ 
+ e.g. The exception below occurred while pulling lp:~rivenx/rivenx/domes
+ using bzr.dev r4237.
  
  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 /Library/Python/2.6/site-packages/bzrlib/commands.py, line 727, in 
exception_to_return_code
  return the_callable(*args, **kwargs)
File /Library/Python/2.6/site-packages/bzrlib/commands.py, line 922, in 
run_bzr
  ret = run(*run_argv)
File /Library/Python/2.6/site-packages/bzrlib/commands.py, line 559, in 
run_argv_aliases
  return self.run(**all_cmd_args)
File /Library/Python/2.6/site-packages/bzrlib/builtins.py, line 1103, in 
run
  source_branch=br_from)
File /Library/Python/2.6/site-packages/bzrlib/bzrdir.py, line 1139, in 
sprout
  result_repo.fetch(source_repository, revision_id=revision_id)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 1465, 
in fetch
  find_ghosts=find_ghosts, fetch_spec=fetch_spec)
File /Library/Python/2.6/site-packages/bzrlib/decorators.py, line 192, in 
write_locked
  result = unbound(self, *args, **kwargs)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 2991, 
in fetch
  pb=pb, find_ghosts=find_ghosts)
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 84, in 
__init__
  self.__fetch()
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 110, in 
__fetch
  self._fetch_everything_for_search(search)
File /Library/Python/2.6/site-packages/bzrlib/fetch.py, line 138, in 
_fetch_everything_for_search
  stream, from_format, [])
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 3791, 
in insert_stream
  return self._locked_insert_stream(stream, src_format)
File /Library/Python/2.6/site-packages/bzrlib/repository.py, line 3819, 
in _locked_insert_stream
  for substream_type, substream in stream:
File /Library/Python/2.6/site-packages/bzrlib/remote.py, line 1709, in 
missing_parents_chain
  for kind, substream in stream:
File /Library/Python/2.6/site-packages/bzrlib/smart/repository.py, line 
447, in record_stream
  for bytes in byte_stream:
File /Library/Python/2.6/site-packages/bzrlib/smart/message.py, line 336, 
in read_streamed_body
  _translate_error(self._body_error_args)
File /Library/Python/2.6/site-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')
  
  bzr 1.14dev on python 2.6.1 (darwin)
  arguments: ['/usr/local/bin/bzr', 'branch', 'lp:~rivenx/rivenx/domes']
  encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
  plugins:
bzrtools 
/Library/Python/2.6/site-packages/bzrlib/plugins/bzrtools [1.13]
keychain_credential_store 
/Volumes/Crossroads/bahamut/.bazaar/plugins/keychain_credential_store [0.1dev]
launchpad
/Library/Python/2.6/site-packages/bzrlib/plugins/launchpad [unknown]
netrc_credential_store 
/Library/Python/2.6/site-packages/bzrlib/plugins/netrc_credential_store 
[unknown]
svn  /Volumes/Crossroads/bahamut/.bazaar/plugins/svn 
[0.5.4dev]
  *** 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.

-- 
ErrorFromSmartServer - AbsentContentFactory object has no attribute 
'get_bytes_as' exception while pulling from Launchpad
https://bugs.launchpad.net/bugs/354036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs