[Buildbot-devel] Problem using Force build with buildbot 0.7.11p3

adheer chandravanshi adheerchandravanshi at gmail.com
Tue Jul 26 06:16:51 UTC 2011


Hello All,

I am using buildbot version 0.7.11p3. I have set the authentication to
BasicAuth. And I am facing issues with force build.

The snippet of error I get is as follows:

===========================================================================================
        Traceback (most recent call last):
          File "/usr/lib64/python2.4/site-packages/twisted/web/http.py",
line 1402, in rawDataReceived
            self._finishRequestBody(data[self.length:])
          File "/usr/lib64/python2.4/site-packages/twisted/web/http.py",
line 1337, in _finishRequestBody
            self.allContentReceived()
          File "/usr/lib64/python2.4/site-packages/twisted/web/http.py",
line 1391, in allContentReceived
            req.requestReceived(command, path, version)
          File "/usr/lib64/python2.4/site-packages/twisted/web/http.py",
line 714, in requestReceived
            self.process()
        --- <exception caught here> ---
          File "/usr/lib64/python2.4/site-packages/twisted/web/server.py",
line 149, in process
            resrc = self.site.getResourceFor(self)
          File "/usr/lib64/python2.4/site-packages/twisted/web/server.py",
line 567, in getResourceFor
            return resource.getChildForRequest(self.resource, request)
          File "/usr/lib64/python2.4/site-packages/twisted/web/resource.py",
line 47, in getChildForRequest
            resource = resource.getChildWithDefault(pathElement, request)
          File "/usr/lib64/python2.4/site-packages/twisted/web/resource.py",
line 151, in getChildWithDefault
            return self.getChild(path, request)
          File "/usr/lib/python2.4/site-packages/buildbot/status/web/builder.py",
line 298, in getChild
            return self.force(req)
          File "/usr/lib/python2.4/site-packages/buildbot/status/web/builder.py",
line 184, in force
            return self.authUser(req, self._force_authenticated)
          File "/usr/lib/python2.4/site-packages/buildbot/status/web/base.py",
line 290, in authUser
            return request.site.buildbot_service.authUser(user,
passwd, request, nextfunc)
          File "/usr/lib/python2.4/site-packages/buildbot/status/web/baseweb.py",
line 636, in authUser
            d.addCallbacks(_success, _failure)
        exceptions.AttributeError: 'bool' object has no attribute 'addCallbacks'

===========================================================================================




The snippet of buildmaster config in master.cfg is as follows:

-----------------------------------------------------------------------------
from buildbot.status.html import WebStatus
from buildbot.status.web import auth
from buildbot.status.web.auth import BasicAuth

users = [('adheer', 'adheerpass')]
BuildmasterConfig = {
        'slavePortnum': 1111,
        'projectName': 'Build Server',
        'projectURL': 'http://buildmaster.buildserver.com:8020/',
        'buildbotURL': 'http://172.16.1.42:8020/',
        'status':
[html.WebStatus(http_port=8020,auth=BasicAuth(users),allowForce=True),mn],
}
-----------------------------------------------------------------------------



And when I don't use any authentication, I get following error:

===========================================================================================
        Traceback (most recent call last):
          File "/usr/lib64/python2.4/site-packages/twisted/web/http.py",
line 1402, in rawDataReceived
            self._finishRequestBody(data[self.length:])
          File "/usr/lib64/python2.4/site-packages/twisted/web/http.py",
line 1337, in _finishRequestBody
            self.allContentReceived()
          File "/usr/lib64/python2.4/site-packages/twisted/web/http.py",
line 1391, in allContentReceived
            req.requestReceived(command, path, version)
          File "/usr/lib64/python2.4/site-packages/twisted/web/http.py",
line 714, in requestReceived
            self.process()
        --- <exception caught here> ---
          File "/usr/lib64/python2.4/site-packages/twisted/web/server.py",
line 150, in process
            self.render(resrc)
          File "/usr/lib64/python2.4/site-packages/twisted/web/server.py",
line 157, in render
            body = resrc.render(self)
        exceptions.AttributeError: 'NoneType' object has no attribute 'render'
===========================================================================================


Any help is greatly appreciated!

Thanks,
Adheer




More information about the devel mailing list