Open rasthoph opened 2 weeks ago
Transferring to sentry for product area review
Routing to @getsentry/product-owners-issues for triage ⏲️
Auto-routing to @getsentry/product-owners-issues for triage ⏲️
These should be the docs you're looking for:
Attachments persist for 30 days; if your total storage included in your quota is exceeded, attachments will not be stored. You can delete attachments or their containing events at any time. Deleting an attachment does not affect your quota - Sentry counts an attachment toward your quota as soon as it is stored.
https://docs.sentry.io/platforms/go/enriching-events/attachments/
Thank you, but i am not sure how this can help us, because we are using a self-hosted sentry and therefore have no quota.
I was specifically asking for a solution or answer of the self-hosted sentry.
How does the deletion of the event attachments of a deleted issue work? Is there any other process than sentry cleanup running in the background?
Or maybe does Sentry offer a tool or option to delete the attachments?
When Sentry deletes issues, the issue is marked for deletion, but the issue's events and its attachments are deleted in bulk asynchronously in a task GroupDeletionTask. This is why the attachments aren't removed for 24 hours.
I'm not sure if there's another process that can be run to do this immediately for self-hosted, so I will leave that for the self-hosted team to answer.
Self-Hosted Version
24.10.0
CPU Architecture
x86_64
Docker Version
25.0.5
Docker Compose Version
2.29.2
Steps to Reproduce
Expected Result
Immediate deletion of the attachments of a deleted issue or at least immediately after running the sentry cleanup command.
Actual Result
We had the situation where a massive amount of crashes with huge attachments arrived and filled our storage. So we decided to delete the issue and discard future events. After that the issue disappeared from the UI, but the storage didn't change at all. After running the sentry cleanup command manually, nothing happened again. But surprisingly after 24 hours the storage usage seems to decrease slowly over a time period of a few hours.
How does the deletion of the event attachments of a deleted issue work? Is there any other process than sentry cleanup running in the background?
Or maybe does Sentry offer a tool or option to delete the attachments? I couldn't find something in the documentation.
Thank you 🙏
Event ID
No response