[Buildbot-commits] [Buildbot] #1865: pb tryscheduler on reload doesn't reload config

Buildbot nobody at buildbot.net
Sat Mar 12 15:50:54 UTC 2011


#1865: pb tryscheduler on reload doesn't reload config
----------------------------+------------------------
Reporter:  gg0              |       Owner:
    Type:  support-request  |      Status:  new
Priority:  major            |   Milestone:  undecided
 Version:  0.8.3            |  Resolution:
Keywords:                   |
----------------------------+------------------------
Changes (by dustin):

 * type:  defect => support-request


Old description:

> I set a pb tryscheduler up on port 9990 but when I reload config on
> master I get errors below and it doesn't apply changes.
> I have to restart master.
>

>
> 2011-03-10 04:58:01-0700 [-] scheduler 'onPush' got id 8
> 2011-03-10 04:58:01-0700 [-] scheduler 'tryserver_ssh' got id 10
> 2011-03-10 04:58:01-0700 [-] scheduler 'onPushReset' got id 7
> 2011-03-10 04:58:01-0700 [-] scheduler 'tryserver_pb' got id 11
> 2011-03-10 04:58:01-0700 [-] Unhandled Error
>         Traceback (most recent call last):
>           File "/usr/lib/python2.4/site-
> packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/internet/defer.py",
> line 307, in _startRunCallbacks
>             self._runCallbacks()
>           File "/usr/lib/python2.4/site-
> packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/internet/defer.py",
> line 323, in _runCallbacks
>             self.result = callback(self.result, *args, **kw)
>           File "/usr/lib/python2.4/site-
> packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/internet/defer.py",
> line 284, in _continue
>             self.unpause()
>           File "/usr/lib/python2.4/site-
> packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/internet/defer.py",
> line 280, in unpause
>             self._runCallbacks()
>         --- <exception caught here> ---
>           File "/usr/lib/python2.4/site-
> packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/internet/defer.py",
> line 323, in _runCallbacks
>             self.result = callback(self.result, *args, **kw)
>           File "/usr/lib/python2.4/site-
> packages/buildbot-0.8.3-py2.4.egg/buildbot/schedulers/manager.py", line
> 71, in _attach
>             s.setServiceParent(self)
>           File "/usr/lib/python2.4/site-
> packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/application/service.py",
> line 185, in setServiceParent
>             self.parent.addService(self)
>           File "/usr/lib/python2.4/site-
> packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/application/service.py",
> line 305, in addService
>             service.startService()
>           File "/usr/lib/python2.4/site-
> packages/buildbot-0.8.3-py2.4.egg/buildbot/schedulers/trysched.py", line
> 186, in startService
>             self.registrations.append(
>           File "/usr/lib/python2.4/site-
> packages/buildbot-0.8.3-py2.4.egg/buildbot/pbmanager.py", line 50, in
> register
>             disp.setServiceParent(self)
>           File "/usr/lib/python2.4/site-
> packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/application/service.py",
> line 185, in setServiceParent
>             self.parent.addService(self)
>           File "/usr/lib/python2.4/site-
> packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/application/service.py",
> line 304, in addService
>             service.privilegedStartService()
>           File "/usr/lib/python2.4/site-
> packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/application/service.py",
> line 273, in privilegedStartService
>             service.privilegedStartService()
>           File "/usr/lib/python2.4/site-
> packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/application/internet.py",
> line 85, in privilegedStartService
>             self._port = self._getPort()
>           File "/usr/lib/python2.4/site-
> packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/application/internet.py",
> line 115, in _getPort
>             return getattr(reactor, 'listen%s' % (self.method,))(
>           File "/usr/lib/python2.4/site-
> packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/internet/posixbase.py",
> line 355, in listenTCP
>             p.startListening()
>           File "/usr/lib/python2.4/site-
> packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/internet/tcp.py",
> line 855, in startListening
>             raise CannotListenError, (self.interface, self.port, le)
>         twisted.internet.error.CannotListenError: Couldn't listen on
> any:9990: (98, 'Address already in use').

New description:

 I set a pb tryscheduler up on port 9990 but when I reload config on master
 I get errors below and it doesn't apply changes.
 I have to restart master.

 {{{
 2011-03-10 04:58:01-0700 [-] scheduler 'onPush' got id 8
 2011-03-10 04:58:01-0700 [-] scheduler 'tryserver_ssh' got id 10
 2011-03-10 04:58:01-0700 [-] scheduler 'onPushReset' got id 7
 2011-03-10 04:58:01-0700 [-] scheduler 'tryserver_pb' got id 11
 2011-03-10 04:58:01-0700 [-] Unhandled Error
         Traceback (most recent call last):
           File "/usr/lib/python2.4/site-
 packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/internet/defer.py",
 line 307, in _startRunCallbacks
             self._runCallbacks()
           File "/usr/lib/python2.4/site-
 packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/internet/defer.py",
 line 323, in _runCallbacks
             self.result = callback(self.result, *args, **kw)
           File "/usr/lib/python2.4/site-
 packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/internet/defer.py",
 line 284, in _continue
             self.unpause()
           File "/usr/lib/python2.4/site-
 packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/internet/defer.py",
 line 280, in unpause
             self._runCallbacks()
         --- <exception caught here> ---
           File "/usr/lib/python2.4/site-
 packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/internet/defer.py",
 line 323, in _runCallbacks
             self.result = callback(self.result, *args, **kw)
           File "/usr/lib/python2.4/site-
 packages/buildbot-0.8.3-py2.4.egg/buildbot/schedulers/manager.py", line
 71, in _attach
             s.setServiceParent(self)
           File "/usr/lib/python2.4/site-
 packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/application/service.py",
 line 185, in setServiceParent
             self.parent.addService(self)
           File "/usr/lib/python2.4/site-
 packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/application/service.py",
 line 305, in addService
             service.startService()
           File "/usr/lib/python2.4/site-
 packages/buildbot-0.8.3-py2.4.egg/buildbot/schedulers/trysched.py", line
 186, in startService
             self.registrations.append(
           File "/usr/lib/python2.4/site-
 packages/buildbot-0.8.3-py2.4.egg/buildbot/pbmanager.py", line 50, in
 register
             disp.setServiceParent(self)
           File "/usr/lib/python2.4/site-
 packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/application/service.py",
 line 185, in setServiceParent
             self.parent.addService(self)
           File "/usr/lib/python2.4/site-
 packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/application/service.py",
 line 304, in addService
             service.privilegedStartService()
           File "/usr/lib/python2.4/site-
 packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/application/service.py",
 line 273, in privilegedStartService
             service.privilegedStartService()
           File "/usr/lib/python2.4/site-
 packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/application/internet.py",
 line 85, in privilegedStartService
             self._port = self._getPort()
           File "/usr/lib/python2.4/site-
 packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/application/internet.py",
 line 115, in _getPort
             return getattr(reactor, 'listen%s' % (self.method,))(
           File "/usr/lib/python2.4/site-
 packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/internet/posixbase.py",
 line 355, in listenTCP
             p.startListening()
           File "/usr/lib/python2.4/site-
 packages/Twisted-9.0.0-py2.4-linux-i686.egg/twisted/internet/tcp.py", line
 855, in startListening
             raise CannotListenError, (self.interface, self.port, le)
         twisted.internet.error.CannotListenError: Couldn't listen on
 any:9990: (98, 'Address already in use').
 }}}

--

Comment:

 Does something else have that port open?  Are you running two copies of
 the master, somehow?

-- 
Ticket URL: <http://trac.buildbot.net/ticket/1865#comment:1>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list