getting a stacked branch over the smart protocol fails with "Could not install revisions"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Critical
|
Martin Pool |
Bug Description
This shell transcript and ~/.bzr.log excerpt demonstrates a way to reproduce:
mwh@grond:
mwh@grond:
mwh@grond:
mwh@grond:
mwh@grond:
mwh@grond:base$ bzr ci -m . --unchanged
Committing to: /home/mwh/
You need a passphrase to unlock the secret key for
user: "Michael Hudson <email address hidden>"
1024-bit DSA key, ID 6EC0EE48, created 2007-09-28
Committed revision 1.
mwh@grond:base$ cd ..
mwh@grond:
Created new stacked branch referring to file://
mwh@grond:
bzr: ERROR: Could not install revisions:
<email address hidden>
mwh@grond:
this is a debug log for diagnosing/
you can delete or truncate this file, or include sections in
bug reports to https:/
0.059 encoding stdout as sys.stdout encoding 'UTF-8'
0.059 bzr arguments: [u'init', u'base', u'--1.6']
0.060 looking for plugins in /home/mwh/
0.096 bzr-svn: using Subversion 1.4.6 ()
0.191 looking for plugins in /usr/lib/
0.192 Plugin name __init__ already loaded
0.192 Plugin name __init__ already loaded
0.192 Plugin name gtk already loaded
0.192 Plugin name pqm already loaded
0.199 encoding stdout as sys.stdout encoding 'UTF-8'
0.218 opening SVN RA connection to 'file:/
0.220 Unable to open <bzrlib.
0.224 opening SVN RA connection to 'file:/
0.226 Unable to open <bzrlib.
0.226 opening SVN RA connection to 'file:/
0.227 Unable to open <bzrlib.
0.228 opening SVN RA connection to 'file:///home/mwh'
0.229 Unable to open <bzrlib.
0.230 opening SVN RA connection to 'file:///home'
0.231 Unable to open <bzrlib.
0.231 opening SVN RA connection to 'file:'
0.232 Unable to open <bzrlib.
0.233 creating repository in file://
0.236 creating branch <bzrlib.
0.258 trying to create missing lock '/home/
0.258 opening working tree '/home/
0.264 return code 0
0.054 encoding stdout as sys.stdout encoding 'UTF-8'
0.055 bzr arguments: [u'ci', u'-m', u'.', u'--unchanged']
0.055 looking for plugins in /home/mwh/
0.089 bzr-svn: using Subversion 1.4.6 ()
0.181 looking for plugins in /usr/lib/
0.181 Plugin name __init__ already loaded
0.182 Plugin name __init__ already loaded
0.182 Plugin name gtk already loaded
0.182 Plugin name pqm already loaded
0.188 encoding stdout as sys.stdout encoding 'UTF-8'
0.203 opening working tree '/home/
0.214 preparing to commit
[31500] 2008-08-26 09:23:22.671 INFO: Committing to: /home/mwh/
0.225 Selecting files for commit with filter []
0.242 ** Env var TTY empty, cannot set GPG_TTY. Is TTY exported?
[31500] 2008-08-26 09:23:22.738 INFO: Committed revision 1.
0.295 return code 0
0.054 encoding stdout as sys.stdout encoding 'UTF-8'
0.054 bzr arguments: [u'push', u'-d', u'base', u'bzr+ssh:
0.055 looking for plugins in /home/mwh/
0.090 bzr-svn: using Subversion 1.4.6 ()
0.185 looking for plugins in /usr/lib/
0.185 Plugin name __init__ already loaded
0.185 Plugin name __init__ already loaded
0.186 Plugin name gtk already loaded
0.186 Plugin name pqm already loaded
0.192 encoding stdout as sys.stdout encoding 'UTF-8'
0.241 ssh implementation is OpenSSH
0.071 encoding stdout as bzrlib.
0.071 bzr arguments: [u'serve', u'--inet', u'--directory=/', u'--allow-writes']
0.072 looking for plugins in /home/mwh/
0.105 bzr-svn: using Subversion 1.4.6 ()
0.195 looking for plugins in /usr/lib/
0.195 Plugin name __init__ already loaded
0.195 Plugin name __init__ already loaded
0.195 Plugin name gtk already loaded
0.196 Plugin name pqm already loaded
0.201 encoding stdout as bzrlib.
0.588 creating repository in bzr+ssh:
0.611 creating branch <bzrlib.
0.679 fetch up to rev {<email address hidden>}
[31509] 2008-08-26 09:23:23.516 INFO: Created new stacked branch referring to file://
0.737 return code 0
0.392 return code 0
0.065 encoding stdout as sys.stdout encoding 'UTF-8'
0.066 bzr arguments: [u'get', u'-Dhpss', u'bzr+ssh:
0.067 looking for plugins in /home/mwh/
0.105 bzr-svn: using Subversion 1.4.6 ()
0.198 looking for plugins in /usr/lib/
0.199 Plugin name __init__ already loaded
0.199 Plugin name __init__ already loaded
0.199 Plugin name gtk already loaded
0.199 Plugin name pqm already loaded
0.205 encoding stdout as sys.stdout encoding 'UTF-8'
0.215 hpss: Built a new medium: SmartSSHClientM
0.218 hpss call: 'BzrDir.open', '/home/
0.218 (to bzr+ssh:
0.247 ssh implementation is OpenSSH
0.062 encoding stdout as bzrlib.
0.062 bzr arguments: [u'serve', u'--inet', u'--directory=/', u'--allow-writes']
0.062 looking for plugins in /home/mwh/
0.096 bzr-svn: using Subversion 1.4.6 ()
0.189 looking for plugins in /usr/lib/
0.190 Plugin name __init__ already loaded
0.190 Plugin name __init__ already loaded
0.190 Plugin name gtk already loaded
0.190 Plugin name pqm already loaded
0.196 encoding stdout as bzrlib.
0.666 result: ('yes',)
0.666 hpss call: 'BzrDir.
0.666 (to bzr+ssh:
0.669 result: ('ok', '')
0.669 hpss call: 'BzrDir.
0.669 (to bzr+ssh:
0.671 result: ('ok', '', 'no', 'no', 'yes')
0.671 hpss call: 'Branch.
0.671 (to bzr+ssh:
0.685 result: ('ok', '1', '<email address hidden>')
0.687 hpss call: 'get', '//home/
0.687 (to bzr+ssh:
0.689 result: ('ok',)
0.689 35 body bytes read
0.689 hpss call: 'get', '//home/
0.689 (to bzr+ssh:
0.690 result: ('ok',)
0.690 39 body bytes read
0.691 hpss call: 'stat', '//home/
0.691 (to bzr+ssh:
0.691 result: ('stat', '4096', '040755')
0.692 hpss call: 'get', '//home/
0.692 (to bzr+ssh:
0.693 result: ('ok',)
0.693 43 body bytes read
0.693 hpss call: 'stat', '//home/
0.693 (to bzr+ssh:
0.694 result: ('stat', '4096', '040755')
0.698 hpss call: 'get', '//home/
0.698 (to bzr+ssh:
0.700 result: ('ok',)
0.700 75 body bytes read
0.707 hpss call: 'get', '//home/
0.707 (to bzr+ssh:
0.709 result: ('NoSuchFile', '/home/
0.713 hpss call: 'BzrDir.
0.713 (to bzr+ssh:
0.714 result: ('ok', '')
0.714 hpss call: 'BzrDir.
0.714 (to bzr+ssh:
0.716 result: ('ok', '', 'no', 'no', 'yes')
0.728 opening SVN RA connection to 'file:/
0.731 Unable to open <bzrlib.
0.732 opening SVN RA connection to 'file:/
0.733 Unable to open <bzrlib.
0.733 opening SVN RA connection to 'file:///home/mwh'
0.735 Unable to open <bzrlib.
0.735 opening SVN RA connection to 'file:///home'
0.737 Unable to open <bzrlib.
0.737 opening SVN RA connection to 'file:'
0.739 Unable to open <bzrlib.
0.739 creating repository in file://
0.745 hpss call: 'get', '//home/
0.745 (to bzr+ssh:
0.746 result: ('ok',)
0.747 43 body bytes read
0.747 hpss call: 'stat', '//home/
0.747 (to bzr+ssh:
0.748 result: ('stat', '4096', '040755')
0.750 hpss call: 'get', '//home/
0.751 (to bzr+ssh:
0.753 result: ('ok',)
0.753 60 body bytes read
0.754 Using fetch logic to copy between KnitPackReposit
0.762 Traceback (most recent call last):
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
hardlink=
File "/usr/lib/
result_
File "/usr/lib/
find_
File "/usr/lib/
find_
File "/usr/lib/
result = unbound(self, *args, **kwargs)
File "/usr/lib/
raise errors.
InstallFailed: Could not install revisions:
<email address hidden>
0.763 return code 3
0.306 return code 0
I don't really know where the problem is at all -- somehow the server isn't looking in the stacked on repository for revisions?
Related branches
Changed in bzr: | |
importance: | Undecided → Critical |
status: | New → Triaged |
Changed in bzr: | |
assignee: | nobody → mbp |
Changed in bzr: | |
milestone: | none → 1.7 |
I can reproduce it using mwh's script.
The InterPackRepo's source is a KnitPackRepository which (unsurprisingly but incorrectly) has no fallback repositories configured; this would explain why we can't find the revision. We're using InterPackRepo because the current InterRemoteToOther always gets the real repository and fetches through that.
I suspect the problem is that the repository is somewhere being opened directly, rather than through the branch object, which is responsible for configuring the fallbacks into the repository when it is opened.
Going up the stack, I see the RemoteRepository also does not have fallback repositories configured, which is probably how it should be if this is to be hidden on the server side.