[Buildbot-devel] Nightly schedulers not running

Thomas Middeldorp thomas at ranzer.geek.nz
Sun Nov 27 08:57:43 UTC 2011


Hi,

Our nightly schedulers have stopped triggering recently. I can't think of 
anything that has changed between them working and not. They can still be run 
manually, they just don't trigger at the specified times.

They are set up in master.cfg like so:

c['schedulers'].append(Nightly( name='nightly-build', 
builderNames=['master-build-nightly'], hour=2, minute=0, branch='trunk' ) )

Upon examing twistd.log I've found when doing a buildbot restart these 
exceptions are thrown:

2011-11-27 21:41:17+1300 [-] while initializing Nightly 'nightly-build'
         Traceback (most recent call last):
           File 
"/usr/local/lib/python2.6/dist-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py", 
line 388, in errback
             self._startRunCallbacks(fail)
           File 
"/usr/local/lib/python2.6/dist-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py", 
line 455, in _startRunCallbacks
             self._runCallbacks()
           File 
"/usr/local/lib/python2.6/dist-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py", 
line 542, in _runCallbacks
             current.result = callback(current.result, *args, **kw)
           File 
"/usr/local/lib/python2.6/dist-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py", 
line 891, in gotResult
             _deferGenerator(g, deferred)
         --- <exception caught here> ---
           File 
"/usr/local/lib/python2.6/dist-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py", 
line 866, in _deferGenerator
             result = g.next()
           File 
"/usr/local/lib/python2.6/dist-packages/buildbot-0.8.5-py2.6.egg/buildbot/schedulers/base.py", 
line 134, in getState
             yield wfd.getResult()
           File 
"/usr/local/lib/python2.6/dist-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py", 
line 845, in getResult
             self.result.raiseException()
           File 
"/usr/local/lib/python2.6/dist-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/python/threadpool.py", 
line 207, in _worker
             result = context.call(ctx, function, *args, **kwargs)
           File 
"/usr/local/lib/python2.6/dist-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", 
line 118, in callWithContext
             return self.currentContext().callWithContext(ctx, func, *args, **kw)
           File 
"/usr/local/lib/python2.6/dist-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", 
line 81, in callWithContext
             return func(*args,**kw)
           File 
"/usr/local/lib/python2.6/dist-packages/buildbot-0.8.5-py2.6.egg/buildbot/db/pool.py", 
line 128, in thd
             rv = callable(conn, *args, **kwargs)
           File 
"/usr/local/lib/python2.6/dist-packages/buildbot-0.8.5-py2.6.egg/buildbot/db/state.py", 
line 98, in thd
             (name, objectid))
         exceptions.TypeError: JSON error loading state value 'last_build' for 2

This happens for all 3 of our nightly builders, they are all set up the same and 
throw the same exception on buildbot restart (just the number at the end 
changes, e.g. "value 'last_build' for 3").

Any advice on what might have caused this and how it can be fixed would be 
appreciated, or if any other info is needed to figure this out please let me know.

Thanks,
Thomas





More information about the devel mailing list