-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Message retention policy is not deleting files, only messages are getting deleted. #13249
Comments
Can you test a manual prune, and see if files disappear then? (e.g., create a channel, post some files, prune the channel, then see if the files are left). Perhaps someone updated the file storage logic without changing the references in the prune function. |
When I do a manual prune, in a test channel, the files are deleted, also. |
more or less the same here.
Retention Policy settings:
"File removed by prune" worked on private chats and some Channels, but not all of them. A manual prune works there. Didn't test "Private Groups" so far. |
We still have this problem. #15252 does not appear to have fixed our problem. Is there something that we need to do to enable the pruning, by cron, that is mentioned on that page? As mentioned in this ticket, we have a default retention policy of 7 days for everything. But we have files in channels, that are still viewable, going back several years. |
Apparently commenting to the issue doesn't automatically reopen it, and I'm not allowed to reopen it explicitly because I didn't close it myself. So, please reopen it :) |
@ggazzo can you please re-open? Thanks! |
1 similar comment
@ggazzo can you please re-open? Thanks! |
Description:
We have retention policy enabled in our RC instance, with a maximum age of 7 days. The settings are configured to include private groups, channels, and direct messages. We don't exclude pinned messages from this policy. And we have "Only delete files" set to false. Messages older than 7 days are getting successfully deleted. However, old files are not getting deleted. We have some files that still remain from as far back as 2016. But, to be clear, none of our files are getting removed.
Steps to reproduce:
Expected behavior:
We expect the files to be removed, along with the messages.
Actual behavior:
Files do not get removed.
Server Setup Information:
Additional context
Relevant logs:
Logs seem to show the policy working for messages:
Jan 24 00:00:00 chat rocketchat2: rocketchat_logger.js:299 #33[34mSyncedCron ➔ info#033[39m Starting "Prune old messages by retention policy".
Jan 24 00:00:52 chat rocketchat2: rocketchat_logger.js:299 #33[34mSyncedCron ➔ info#033[39m Finished "Prune old messages by retention policy".
The text was updated successfully, but these errors were encountered: