lp-serve infinite loop on bzr branch/push development focus is empty bzrdir with "maximum recursion depth exceeded in __subclasscheck__"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Undecided
|
Andrew Bennetts | ||
Launchpad itself |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This story starts nearly an hour ago, on #launchpad:
15:09 < Guest86981> I have a new Launchpad project and can't seem to push my bzr repository to my project on Launchpad. I get "Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.
The command the user is trying is "bzr push lp:~m-os-griffin/mblogic/trunk"
Investigations showed that anyone trying to access the branch gets that problem. e.g. if I try to push to that branch, I get this -Dhpss trace:
"""
2.228 hpss: Built a new medium: SmartSSHClientM
2.229 hpss call: 'BzrDir.open_2.1', '~m-os-
2.229 (to bzr+ssh:
2.260 ssh implementation is OpenSSH
16.819 result: ('yes', 'no')
16.819 hpss call: 'BzrDir.
16.819 (to bzr+ssh:
"""
Note that it is waiting for a reply to the open_branch call.
lp:~m-os-griffin/mblogic/trunk is just an empty bzrdir (no branch, no repository, just the bzr control dir):
"""
lftp bazaar.
-rw-r--r-- 1 1001 1001 141 Oct 28 06:24 README
-rw-r--r-- 1 1001 1001 35 Oct 28 06:24 branch-format
drwxr-xr-x 2 1001 1001 4096 Oct 28 06:24 branch-lock
"""
Also, that branch is the development focus for mblogic — perhaps the combination of a useless, empty bzrdir and being the dev focus causes this problem? Although the automatic stacking bzrdir doesn't seem to be present for this project.
This seems to be causing performance issues on codehosting, as the processes are stuck in an infinite loop that seems to gradually consume memory.
affects: | bzr → launchpad-code |
Changed in bzr: | |
status: | New → Fix Committed |
I've suggested the user tries "bzr push sftp:// bazaar. launchpad. net/~m- os-griffin/ mblogic/ trunk/ --use-existing-dir" as a workaround; if it does work it may resolve this instance of the problem. If my guess about dev focus + empty bzrdir is correct we'll be able to reproduce though.
FWIW, accessing over SFTP appears normal, the client doesn't get stuck in an infinite loop or anything like that:
$ bzr revno sftp:// bazaar. launchpad. net/~m- os-griffin/ mblogic/ trunk bazaar. launchpad. net/~m- os-griffin/ mblogic/ trunk/. bzr/branch/"
bzr: ERROR: Not a branch: "sftp://