This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
AttributeError: 'RegistrationHandler' object has no attribute 'pusher_pool' #11769
Labels
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
X-Regression
Something broke which worked on a previous release
X-Release-Blocker
Must be resolved before making a release
When testing out commit d1e6333 on matrix.org today, we ended up with the following stacktrace:
stacktrace
Sentry link for those with access: https://sentry.matrix.org/sentry/synapse-matrixorg/issues/239801/
@squahtx traced it back to this change. The issue is that this method, whose docstring states that it "Must be called on master." is being called on workers. matrix.org routes
/_synapse/client/sso_register
and other related SSO endpoints to one generic worker.It appears there is an underlying bug here, however the existing code just happened to sidestep it (we don't attempt to make a pusher if
token
isNone
. This commit uncovers it with a partial fix, but that fix has ended up raising exceptions and causing worse problems.A PR will come shortly that reverts the partial fix. Then hopefully a second PR that fixes the underlying issue (workers calling this function) properly.
The text was updated successfully, but these errors were encountered: