[2.4, devel] WSGI application error

Bug #1748051 reported by Andres Rodriguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Critical
Unassigned

Bug Description

: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36)
2018-02-08 00:01:45 -: [critical] WSGI application error
        Traceback (most recent call last):
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 122, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 87, in callWithContext
            self.contexts.pop()
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 875, in callInContext
            return func(*args, **kwargs)
          File "/usr/lib/python3/dist-packages/twisted/web/wsgi.py", line 522, in run
            self.started = True
        --- <exception caught here> ---
          File "/usr/lib/python3/dist-packages/twisted/web/wsgi.py", line 500, in run
            self.write(elem)
          File "/usr/lib/python3/dist-packages/twisted/web/wsgi.py", line 455, in write
            self.reactor, wsgiWrite, self.started)
          File "/usr/lib/python3/dist-packages/twisted/internet/threads.py", line 122, in blockingCallFromThread
            result.raiseException()
          File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 385, in raiseException
            raise self.value.with_traceback(self.tb)
        builtins.AttributeError: 'NoneType' object has no attribute 'writeHeaders'

2018-02-08 00:01:45 asyncio: [error] Exception in callback <function AsyncioSelectorReactor.callLater.<locals>.run at 0x7ff0cfb1ad08>
handle: <Handle AsyncioSelectorReactor.callLater.<locals>.run>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 47, in uvloop.loop.Handle._run
  File "/usr/lib/python3/dist-packages/twisted/internet/asyncioreactor.py", line 290, in run
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/twisted/web/wsgi.py", line 510, in wsgiError
    self.request.loseConnection()
  File "/usr/lib/python3/dist-packages/twisted/web/http.py", line 1474, in loseConnection
    self.channel.loseConnection()
AttributeError: 'NoneType' object has no attribute 'loseConnection'

Changed in maas:
importance: Undecided → Critical
status: New → Triaged
milestone: none → 2.4.0alpha1
summary: - [2.4, devel]
+ [2.4, devel] WSGI application error
Revision history for this message
Blake Rouse (blake-rouse) wrote :

Looks like the remote client dropped the tcp connection for http and twisted doesn't handle that correctly.

Changed in maas:
milestone: 2.4.0alpha1 → 2.4.0alpha2
Changed in maas:
milestone: 2.4.0alpha2 → 2.4.0beta1
Changed in maas:
milestone: 2.4.0beta1 → 2.4.0beta2
Changed in maas:
status: Triaged → Invalid
Changed in maas:
milestone: 2.4.0beta2 → 2.4.x
Changed in maas:
milestone: 2.4.x → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.