Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

NoneType has no attribute shutdown #3837

Open
turt2live opened this issue Sep 10, 2018 · 1 comment
Open

NoneType has no attribute shutdown #3837

turt2live opened this issue Sep 10, 2018 · 1 comment
Assignees
Labels
A-Logging Synapse's logs (structured or otherwise). Not metrics. O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Tolerable Minor significance, cosmetic issues, low or no impact to users. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.

Comments

@turt2live
Copy link
Member

turt2live commented Sep 10, 2018

Unsure what causes this, but it seems to happen frequently. Observed on a federation_sender worker. Shows up in pairs.

federation_sender_1 - 2018-09-10 20:03:46,477 - twisted - 131 - CRITICAL - - Unhandled Error
Traceback (most recent call last):
  File "/home/matrix/.synapse/local/lib/python2.7/site-packages/synapse/app/_base.py", line 104, in run
    reactor.run()
  File "/home/matrix/.synapse/local/lib/python2.7/site-packages/twisted/internet/base.py", line 1261, in run
    self.mainLoop()
  File "/home/matrix/.synapse/local/lib/python2.7/site-packages/twisted/internet/base.py", line 1270, in mainLoop
    self.runUntilCurrent()
  File "/home/matrix/.synapse/local/lib/python2.7/site-packages/synapse/metrics/__init__.py", line 243, in f
    ret = func(*args, **kwargs)
--- <exception caught here> ---
  File "/home/matrix/.synapse/local/lib/python2.7/site-packages/twisted/internet/base.py", line 896, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/home/matrix/.synapse/local/lib/python2.7/site-packages/synapse/util/async_helpers.py", line 415, in time_it_out
    deferred.cancel()
  File "/home/matrix/.synapse/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 548, in cancel
    self.result.cancel()
  File "/home/matrix/.synapse/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 537, in cancel
    canceller(self)
  File "/home/matrix/.synapse/local/lib/python2.7/site-packages/twisted/web/_newclient.py", line 1481, in cancelRequest
    self.transport.abortConnection()
  File "/home/matrix/.synapse/local/lib/python2.7/site-packages/twisted/protocols/tls.py", line 435, in abortConnection
    self._shutdownTLS()
  File "/home/matrix/.synapse/local/lib/python2.7/site-packages/twisted/protocols/tls.py", line 338, in _shutdownTLS
    shutdownSuccess = self._tlsConnection.shutdown()
exceptions.AttributeError: 'NoneType' object has no attribute 'shutdown'
@hawkowl hawkowl added the z-bug (Deprecated Label) label Sep 14, 2018
@hawkowl hawkowl self-assigned this Sep 14, 2018
@hawkowl hawkowl added A-Logging Synapse's logs (structured or otherwise). Not metrics. and removed z-bug (Deprecated Label) labels Sep 14, 2018
@neilisfragile neilisfragile added z-p2 (Deprecated Label) z-minor (Deprecated Label) labels Oct 5, 2018
@richvdh
Copy link
Member

richvdh commented Oct 10, 2018

@MadLittleMods MadLittleMods added T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. S-Tolerable Minor significance, cosmetic issues, low or no impact to users. labels Nov 10, 2021
@erikjohnston erikjohnston added O-Uncommon Most users are unlikely to come across this or unexpected workflow and removed z-p2 (Deprecated Label) z-minor (Deprecated Label) labels Nov 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Logging Synapse's logs (structured or otherwise). Not metrics. O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Tolerable Minor significance, cosmetic issues, low or no impact to users. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Projects
None yet
Development

No branches or pull requests

6 participants