[Buildbot-devel] html-access to the buildmaster

Alexander Lorenz lorenz at testingtech.de
Thu Mar 16 09:24:14 UTC 2006


so, now i found a third version of html.py (which is probably the one 
that is used, as there is also some bytecode files there) in
/usr/lib/python2.4/site-packages/buildbot/status

and somehow managed to crash the twisted server with the following 
stacktrace in the master config:


2006/03/15 20:02 CET [HTTPChannel,0,127.0.0.1] Traceback (most recent 
call last):
      File 
"/usr/lib/python2.4/site-packages/twisted/protocols/basic.py", line 221, 
in dataReceived
        why = self.lineReceived(line)
      File "/usr/lib/python2.4/site-packages/twisted/web/http.py", line 
961, in lineReceived
        self.allContentReceived()
      File "/usr/lib/python2.4/site-packages/twisted/web/http.py", line 
1002, in allContentReceived
        req.requestReceived(command, path, version)
      File "/usr/lib/python2.4/site-packages/twisted/web/http.py", line 
557, in requestReceived
        self.process()
    --- <exception caught here> ---
      File "/usr/lib/python2.4/site-packages/twisted/web/server.py", 
line 153, in process
        self.render(resrc)
      File "/usr/lib/python2.4/site-packages/twisted/web/server.py", 
line 160, in render
        body = resrc.render(self)
      File "/usr/lib/python2.4/site-packages/buildbot/status/html.py", 
line 149, in render
        data = self.content(request)
      File "/usr/lib/python2.4/site-packages/buildbot/status/html.py", 
line 173, in content
        data += self.body(request)
      File "/usr/lib/python2.4/site-packages/buildbot/status/html.py", 
line 1145, in body
        sourceEvents)
      File "/usr/lib/python2.4/site-packages/buildbot/status/html.py", 
line 1458, in phase2
        b = IBox(block[i]).getBox()
      File "/usr/lib/python2.4/site-packages/buildbot/status/html.py", 
line 955, in getBox
        text.append("<a href=\"%s\">%s</a>" % (url, html.escape(name)))
    exceptions.AttributeError: 'str' object has no attribute 'append'


although i reverted all the changes i made (only th eline you told me in 
html.py)


the master is still running, but instead of the waterfall i get an even 
longer, more colorful and more complicated stacktrace.


apparently it is necessary to have a good python knowledge (which i 
don't so far) in oeder to work properly with buildbot.



any ideas on how i get out of this mess? O_o


thx in advance,

lx






More information about the devel mailing list