Librarian requests occasionally fail: 'NoneType' object has no attribute 'get_object'

Bug #1420046 reported by William Grant on 2015-02-10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself

Bug Description

Roughly 25 Swift Librarian requests fail each day like OOPS-f1c692cf8f319c390c1a8940f8187009:

Unhandled Error
Traceback (most recent call last):
Failure: exceptions.AttributeError: 'NoneType' object has no attribute 'get_object'

Possibly the Swift connection pool ends up with a None in it?

Stuart Bishop (stub) wrote :

An assert in ConnectionPool.put will locate anywhere that does this. Or log the traceback and throw the None away.

William Grant (wgrant) wrote : adds the None check. Hopefully we'll get some useful tracebacks, though it's possible that this theory is completely wrong.

William Grant (wgrant) wrote :

New assertion confirms the theory, eg. OOPS-0858ab81859c279c8b8d55322b57402c:

Traceback (most recent call last):
  File "/srv/", line 421, in errback
  File "/srv/", line 488, in _startRunCallbacks
  File "/srv/", line 575, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/srv/", line 1126, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  File "/srv/", line 1068, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/srv/", line 389, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/srv/", line 322, in resumeProducing
    data = yield
  File "/srv/", line 1070, in _inlineCallbacks
    result = g.send(result)
  File "/srv/", line 150, in read
  File "/srv/", line 351, in put
    "%r is not a swiftclient Connection." % swift_connection)
exceptions.AssertionError: None is not a swiftclient Connection.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers