-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
retention purge job don't run #6683
Comments
Thanks for the report, I will have a look later next week. FWIW, can you find lines which message start with |
no such messages in log (loglevel=INFO). |
Hmm, weird. Even if the purge job doesn't run, Synapse should prevent expired events from being sent to clients: Lines 125 to 135 in ac87ddb
Therefore events shouldn't be visible from Riot after a "Clear cache and reload"... I've tried to reproduce this in a room with the same settings as yours, with a few messages in there: and then waited a bit more than a day and hit "Clear cache and reload" in Riot, and the messages had disappeared as expected: So it looks to me like Synapse doesn't believe the feature has been enabled on your server, which leaves me puzzled, as it shouldn't happen if you have retention:
enable: true in your homeserver's configuration :/ |
At this point the only thing I can think of that might help is restart your homeserver to ensure it registered the configuration change... |
@babolivier: would it be worth adding some more logging to help us see what purge jobs are being set up, and when they are running? |
Oh good idea, I'll look at that tomorrow! |
So we can debug issues like #6683 more easily
So we can debug issues like #6683 more easily
upgraded to 1.9.0 and first line in logs was:
should I turn loglevel to DEBUG or is INFO enough? |
Hey @4nd3r, debug logs might help. Though they might contain sensitive data, so please send them to me in PM ( |
|
and some more. if that's not helpful, then I'll send you full log after some clean up.
|
any update on this? |
Sorry, I've been busy with other things, I'll try to look at this again soon. |
All right, so that error was due to a fail on my part when adding the logs, this has been fixed in #6945. Let's try to debug this further in PM and I'll share the conclusion here. |
We eventually got to the bottom of it, and the issue was that the https://github.com/matrix-org/synapse/blob/master/docs/message_retention_policies.md#room-configuration already spells out the requirement for the events to be state events so I don't think any action from me is required, therefore I'm closing the issue. |
Steps to reproduce
retention: enabled: true
in homeserver configm.room.retention
with content{ "max_lifetime": 86400000 }
select * from room_retention
confirms that message retention is configured for roomsynapse/synapse/config/server.py
Line 368 in c2ba994
Version information
The text was updated successfully, but these errors were encountered: