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

Andre LaBranche dre at mac.com
Tue Aug 18 20:44:47 UTC 2009


On Aug 18, 2009, at 1:33 PM, Kiffin Gish wrote:

> Thanks for the tip, but it didn't help. Now I get the following error:
>
> ...
> "/usr/lib/python2.4/site-packages/buildbot-0.7.11p3-py2.4.egg/ 
> buildbot/master.py", line 529, in loadConfig
> 	    exec f in localDict
> 	  File "/home/buildbot/master/master.cfg", line 77, in ?
> 	    from buildbot.changes.svnpoller import SVNPoller
> 	exceptions.SyntaxError: invalid syntax (svnpoller.py, line 283)

This suggests a malformed config file. This might be a good time to  
post your entire config :)

In general, my approach when writing a new config file is to start  
with a known working template, and verify that it works by doing a  
configtest on it. Once you are satisfied, make incremental changes,  
checking the config each time. This usually helps to isolate the  
changes that may be causing problems.

HTH,
-dre

> 	
> 2009-08-18 22:30:30+0200 [-] The new config file is unusable, so I'll
> ignore it.
> 2009-08-18 22:30:30+0200 [-] I will keep using the previous config  
> file
> instead.
>
> The buildmaster appears to have encountered an error in the master.cfg
> config
> file during startup. It is probably running with an empty  
> configuration
> right
> now. Please inspect and fix master.cfg, then restart the buildmaster.
>
>
>
> On Tue, 2009-08-18 at 12:24 -0700, Andre LaBranche wrote:
>> The salient error appears to be:
>>
>>> .CannotListenError: Couldn't listen on any:3001:
>>> (98, 'Address already in use')
>>
>> Possibly because you are asking twice for the web status listener.  
>> The
>> 'already in use' message is fairly self-explanatory. Try removing
>> these two lines:
>>
>>> from buildbot.status.html import WebStatus
>>> c['status'].append(WebStatus(3001))
>>
>> Also, verify that all the buildbot python processes are terminated
>> before attempting to start it again.
>>
>> HTH,
>> -dre
>>
>> On Aug 18, 2009, at 6:09 AM, Kiffin Gish wrote:
>>
>>> 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
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>>> 30-Day
>>> trial. Simplify your report design, integration and deployment - and
>>> focus on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> Buildbot-devel mailing list
>>> Buildbot-devel at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
> -- 
> Kiffin Gish
> Interapy Nederland BV
> Keizersgracht 424-4
> 1016 GC Amsterdam
> The Netherlands
>
> 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