[Buildbot-devel] Force Build Button problems ...

Kiffin Gish kgish at interapy.nl
Tue Aug 18 13:09:55 UTC 2009


Hi there.

If I try to enable the force build button as follows:

# -----
from buildbot.status import html
c['status'].append(html.WebStatus(http_port=3001, allowForce=True))

from buildbot.status.html import WebStatus
c['status'].append(WebStatus(3001))
# -----

I get the following error message when I start buildbot:

# -----
2009-08-18 15:09:03+0200 [-] Unhandled error in Deferred:
2009-08-18 15:09:03+0200 [-] Unhandled Error
	Traceback (most recent call last):
	  File
"/usr/lib/python2.4/site-packages/buildbot-0.7.11p3-py2.4.egg/buildbot/master.py", line 795, in <lambda>
	    d.addCallback(lambda res: self.loadConfig_status(status))
	  File
"/usr/lib/python2.4/site-packages/buildbot-0.7.11p3-py2.4.egg/buildbot/master.py", line 967, in loadConfig_status
	    d.addCallback(addNewOnes)
	  File
"/usr/lib/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-x86_64.egg/twisted/internet/defer.py", line 195, in addCallback
	    callbackKeywords=kw)
	  File
"/usr/lib/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-x86_64.egg/twisted/internet/defer.py", line 186, in addCallbacks
	    self._runCallbacks()
	--- <exception caught here> ---
	  File
"/usr/lib/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-x86_64.egg/twisted/internet/defer.py", line 328, in _runCallbacks
	    self.result = callback(self.result, *args, **kw)
	  File
"/usr/lib/python2.4/site-packages/buildbot-0.7.11p3-py2.4.egg/buildbot/master.py", line 964, in addNewOnes
	    s.setServiceParent(self)
	  File
"/usr/lib/python2.4/site-packages/buildbot-0.7.11p3-py2.4.egg/buildbot/status/web/baseweb.py", line 541, in setServiceParent
	    service.MultiService.setServiceParent(self, parent)
	  File
"/usr/lib/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-x86_64.egg/twisted/application/service.py", line 185, in setServiceParent
	    self.parent.addService(self)
	  File
"/usr/lib/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-x86_64.egg/twisted/application/service.py", line 304, in addService
	    service.privilegedStartService()
	  File
"/usr/lib/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-x86_64.egg/twisted/application/service.py", line 273, in privilegedStartService
	    service.privilegedStartService()
	  File
"/usr/lib/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-x86_64.egg/twisted/application/internet.py", line 85, in privilegedStartService
	    self._port = self._getPort()
	  File
"/usr/lib/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-x86_64.egg/twisted/application/internet.py", line 115, in _getPort
	    return getattr(reactor, 'listen%s' % (self.method,))(
	  File
"/usr/lib/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-x86_64.egg/twisted/internet/posixbase.py", line 356, in listenTCP
	    p.startListening()
	  File
"/usr/lib/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-x86_64.egg/twisted/internet/tcp.py", line 858, in startListening
	    raise CannotListenError, (self.interface, self.port, le)
	twisted.internet.error.CannotListenError: Couldn't listen on any:3001:
(98, 'Address already in use').
	

The buildmaster took more than 10 seconds to start, so we were unable to
confirm that it started correctly. Please 'tail twistd.log' and look for
a
line that says 'configuration update complete' to verify correct
startup.
# -----

What's going wrong and how can I fix this?

-- 
Kiffin Gish
Interapy Nederland BV
Keizersgracht 424-4
1016 GC Amsterdam

T: +31 (0)20 798 8300  
F: +31 (0)20 798 8399
M: +31 (0)61 405 2604
E: kgish at interapy.nl
I: www.interapy.nl





More information about the devel mailing list