[Buildbot-devel] html-access to the buildmaster

Alexander Lorenz lorenz at testingtech.de
Fri Mar 17 10:48:06 UTC 2006


Marnix Klooster wrote:
> Alexander Lorenz wrote:
>
>>
>> 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
>
>
> I *think* I had this same kind of exception when I used --somewhere in 
> by master.cfg file-- a string where I should have used a list of 
> strings, or vice versa.  I don't remember the details.  Hope this 
> helps...
>
> Groetjes,
> <><
> Marnix
>

thanks for the idea.
the problem lay elsewhere, though (i have figured it out by now):
the buildbot master was created and tested from one user account. then 
later, the buildmaster was started  from another user account. now 
buildbot (or better, the waterfall) apparently did not have all the 
necessary rights to some files it wanted to use, which lead to a twisted 
error everytime someone wanted to access the waterfall. the master 
itself was running fine though.
figuring this out was quite some work, step-by-step-try&error, since the 
twisted stacktrace unfortunately gave _no_ clue at all as to the real 
problem . on the contrary it led into the wrong direction, making you 
think something is wrong with the html.py or your usage of it.


regards

lx








More information about the devel mailing list