[Buildbot-devel] Problem using Force build with buildbot 0.7.11p3
Amber Yust
ayust at yelp.com
Tue Jul 26 07:15:34 UTC 2011
I'm not sure we're even really supporting 0.7.11 any more. Have you
considered upgrading to a newer version? At the very least 0.7.12 if you
don't want major architectural changes, but ideally 0.8.3+?
~Amber
On Mon, Jul 25, 2011 at 11:16 PM, adheer chandravanshi <
adheerchandravanshi at gmail.com> wrote:
> 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
>
>
> ------------------------------------------------------------------------------
> Magic Quadrant for Content-Aware Data Loss Prevention
> Research study explores the data loss prevention market. Includes in-depth
> analysis on the changes within the DLP market, and the criteria used to
> evaluate the strengths and weaknesses of these DLP solutions.
> http://www.accelacomm.com/jaw/sfnl/114/51385063/
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20110726/def0733e/attachment.html>
More information about the devel
mailing list