-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Push notifications stop working when a history purge deletes the event a read receipt is pointing at #12880
Comments
Thanks for identifying the request in the logs, it's going to be helpful.
Could you search your logs for all lines containing |
PUT-3128:
httppush.process-29:
httppush.process-30:
httppush.process-31:
|
Thanks for the logs. I think we've got enough info to figure out what's going wrong now.
From your logs, it can be seen that the HTTP pusher picks up 0 unprocessed push actions after a message is sent.
Notably, if The reason push notifications work again when To fix this, we could either:
|
Ok, So will it be fixed in next synapse update, or I should implement some workaround on my own? |
It's unlikely that the Synapse team will find the time to fix it for the next update, though a PR with a fix and appropriate tests would be very welcome. In the mean time it's best to use some sort of workaround. Raising |
I made this PR : #14441, it can be helpfull for everyone who wants to override an existing Synapse for versions before 1.62. (I test the modification on a 1.46) In 1.62, there is a big refactoring with #13005, and i don't know if this refactoring fix the bug. Explanation of fix: I only made the modification for get_unread_push_actions_for_user_in_range_for_http but i think it should be done for get_unread_push_actions_for_user_in_range_for_email that have duplicate code.... |
Thank you for the excellent write-up @squahtx! I personally like the suggestion of deleting entries in If we wanted to avoid similar desyncs in the future, we could also add a background update to delete any existing rows in |
In 1.80.0 i do not reproduce, maybe the refactoring in 1.62 (#13005) or others fixes have solved this issue. Someone else confirm ? |
This looks to be fixed, I'm adding a regression test in matrix-org/sytest#1361 |
Description
We have a matrix homeserver which is configured without using additional workers. When the default message retention policy is on, and after the purge job took place, users stop to receive push notifications until they enter a room and send a message
Steps to reproduce
hemoserver.yaml
file:Version information
Homeserver is deployed inside VPN
If not matrix.org:
Version:
{
server_version: "1.59.1",
python_version: "3.9.13"
}:
{
server_version: "1.53.0",
python_version: "3.8.12"
}:
Install method:
via docker-compose file
Platform:
Matrix ecosystem is deployed in docker containers via docker-compose. Container versions used:
v1.59.1
v1.53.0
The text was updated successfully, but these errors were encountered: