Opened 6 years ago

Closed 6 years ago

#2934 closed undecided (fixed)

buildbot throws exception on startup in (hasContents)

Reported by: vlovich Owned by: Mikhail Sobolev <mss@…>
Priority: major Milestone: undecided
Version: 0.8.9 Keywords:


I have an exception in a Git master step. This is the latest build. I stopped buildbot & started it again & now I get an exception.

It appears to be a similar issue to

Removing the assertion fixes the issue.

2014-10-08 20:54:54-0700 [-] while starting BuildMaster
	Traceback (most recent call last):
	  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/internet/", line 1155, in gotResult
	    _inlineCallbacks(r, g, deferred)
	  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/internet/", line 1099, in _inlineCallbacks
	    result = g.send(result)
	  File "/Library/Python/2.7/site-packages/buildbot/", line 761, in reconfigService
	    yield svc.reconfigService(new_config)
	  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/internet/", line 1237, in unwindGenerator
	    return _inlineCallbacks(None, gen, Deferred())
	--- <exception caught here> ---
	  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/internet/", line 1099, in _inlineCallbacks
	    result = g.send(result)
	  File "/Library/Python/2.7/site-packages/buildbot/status/", line 95, in reconfigService
	  File "/Library/Python/2.7/site-packages/buildbot/status/web/", line 520, in setServiceParent
	  File "/Library/Python/2.7/site-packages/buildbot/status/web/", line 553, in setupSite
	    root.putChild("json", JsonStatusResource(status))
	  File "/Library/Python/2.7/site-packages/buildbot/status/web/", line 732, in __init__
	  File "/Library/Python/2.7/site-packages/buildbot/status/web/", line 746, in hackExamples
	    if builder.getBuild(-1):
	  File "/Library/Python/2.7/site-packages/buildbot/status/", line 353, in getBuild
	    return self.getBuildByNumber(number)
	  File "/Library/Python/2.7/site-packages/buildbot/status/", line 182, in getBuildByNumber
	    return self.buildCache.get(number)
	  File "/Library/Python/2.7/site-packages/buildbot/util/", line 63, in get
	    result = self.miss_fn(key, **miss_fn_kwargs)
	  File "/Library/Python/2.7/site-packages/buildbot/status/", line 224, in cacheMiss
	    return self.loadBuildFromFile(number)
	  File "/Library/Python/2.7/site-packages/buildbot/status/", line 205, in loadBuildFromFile
	  File "/Library/Python/2.7/site-packages/buildbot/status/", line 442, in checkLogfiles
	  File "/Library/Python/2.7/site-packages/buildbot/status/", line 311, in checkLogfiles
	    self.logs = [l for l in self.logs if l.hasContents()]
	  File "/Library/Python/2.7/site-packages/buildbot/status/", line 263, in hasContents
	    assert not self._isNewStyle, "not available in new-style steps"
	exceptions.AssertionError: not available in new-style steps

Change History (4)

comment:1 Changed 6 years ago by vlovich

*I get an exception on startup.

comment:3 Changed 6 years ago by Dustin J. Mitchell <dustin@…>

comment:4 Changed 6 years ago by Mikhail Sobolev <mss@…>

  • Owner set to Mikhail Sobolev <mss@…>
  • Resolution set to fixed
  • Status changed from new to closed

In 32ce14f9def3b3f7596d25f2cbe70578d2051ea9:

Merge pull request #1254 from djmitche/bug2934

Test for and fix new-style step assertions triggered by Buildbot code

Fixes ticket:2934

Note: See TracTickets for help on using tickets.