[Buildbot] #3101: exception while rendering logs
Buildbot trac
trac at buildbot.net
Mon Dec 8 18:33:20 UTC 2014
#3101: exception while rendering logs
-------------------+-------------------
Reporter: sa2ajj | Owner:
Type: defect | Status: new
Priority: major | Milestone: 0.9.0
Version: master | Keywords: web
-------------------+-------------------
From `twistd.log`:
{{{
2014-12-08 18:26:39+0000 [-] while handling API request
Traceback (most recent call last):
File "/usr/home/bbmaster/master/lib/python2.7/site-
packages/twisted/internet/defer.py", line 1097, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/home/bbmaster/master/lib/python2.7/site-
packages/twisted/python/failure.py", line 389, in
throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/home/bbmaster/buildbot/master/buildbot/www/rest.py",
line 374, in renderRest
request.write(data)
File "/usr/local/lib/python2.7/contextlib.py", line 35, in
__exit__
self.gen.throw(type, value, traceback)
--- <exception caught here> ---
File "/usr/home/bbmaster/buildbot/master/buildbot/www/rest.py",
line 111, in handleErrors
yield
File "/usr/home/bbmaster/buildbot/master/buildbot/www/rest.py",
line 308, in renderRest
data = yield ep.get(rspec, kwargs)
File "/usr/home/bbmaster/master/lib/python2.7/site-
packages/twisted/internet/defer.py", line 1097, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/home/bbmaster/master/lib/python2.7/site-
packages/twisted/python/failure.py", line 389, in
throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File
"/usr/home/bbmaster/buildbot/master/buildbot/data/logchunks.py", line 78,
in get
logid, firstline, lastline)
File "/usr/home/bbmaster/master/lib/python2.7/site-
packages/twisted/python/threadpool.py", line 196, in _worker
result = context.call(ctx, function, *args, **kwargs)
File "/usr/home/bbmaster/master/lib/python2.7/site-
packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args,
**kw)
File "/usr/home/bbmaster/master/lib/python2.7/site-
packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/home/bbmaster/buildbot/master/buildbot/db/pool.py",
line 191, in __thd
rv = callable(arg, *args, **kwargs)
File "/usr/home/bbmaster/buildbot/master/buildbot/db/logs.py",
line 83, in thd
idx = content.rindex('\n', 0, idx - 1)
exceptions.ValueError: substring not found
}}}
The outcome seems to be `500 Internal Server Error` by nginx.
--
Ticket URL: <http://trac.buildbot.net/ticket/3101>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the bugs
mailing list