-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
TypeError in synapse.notifier #7774
Comments
We saw a burst of this on matrix.org from ~Jun 17 - Jun 22 as well. |
@auscompgeek Having a quick look at this, are you running Synapse with workers or as a monolith? |
No workers here. |
I had a quick skim over what could be causing this issue, it looks like this happens when the notifier gets notified via synapse/synapse/handlers/device.py Lines 488 to 500 in 4241a10
and synapse/synapse/handlers/device.py Lines 462 to 477 in 4241a10
In both cases, |
I turned up synapse.handlers.device to DEBUG overnight. It doesn't look like line 467 is getting hit in this scenario. The last log message I get now before the exception is "Attempting to resync the device list for [mxid]". |
Right, so I think |
I did some poking around and it doesn't look related to Is the |
@babolivier it looks to me like this will happen whenever It might be easier just to chuck a condition into |
Looking through a random sample, a lot of these seem to involve (different) matrix.org users, and the others involve other homeservers which I know/seem to recall are running a federation sender worker. I don't even share an encrypted room with any of these MXIDs. I wonder if synapse is doing something wrong on the sending side here as well. The last exception I got was when I was offline (i.e. no E2EE clients calling /sync). I got another batch of these from matrix.org yesterday (9 July) between 02:26:43 and 02:30:02 UTC (the MXIDs in question appear bot-like in nature in this batch). |
Taking a closer look I managed to find one originating from a Synapse without workers. Sorry for the red herring. Still doesn't explain why I would receive device list updates if my homeserver never cared about their device lists in the first place though. IIUC, device list updates are only sent to homeservers that have previously fetched device lists, right? |
But my point is that I've been calling
And I've got no error in my Synapse logs.
It's probably something we should do regardless of whether this is the real cause of the issue yeah. |
to repro the bug, you'll have to do it with a real user which actually has a request waiting for a notification via |
Description
I'm seeing this every so often on my Sentry dashboard/in my homeserver.log. Not sure what triggers it.
Version information
The text was updated successfully, but these errors were encountered: