Skip to content

Commit dc5f437

Browse files
authored
docs(self-hosted): manually clean sentry-data (#11808)
1 parent b3b3965 commit dc5f437

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

develop-docs/self-hosted/troubleshooting.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,25 @@ CSRF_TRUSTED_ORIGINS = ["https://sentry.example.com", "http://10.100.10.10", "ht
2323

2424
See [Django's documentation on CSRF](https://docs.djangoproject.com/en/4.2/ref/settings/#std-setting-CSRF_TRUSTED_ORIGINS) for further detail.
2525

26+
### `sentry-data` volume not being cleaned up
27+
28+
You may see the `sentry-data` taking too much disk space. You can clean it manually (or putting the cleanup cronjob in place).
29+
30+
Find the Docker mountpoint for the volume by executing:
31+
```bash
32+
docker volume inspect sentry-data
33+
34+
# Or if you prefer to do it directly (assuming you have `jq` on your system):
35+
docker volume inspect sentry-data | jq -r .[0].Mountpoint
36+
```
37+
38+
Then run the following command to remove the contents of the volume for the last 30 days (change the `30` to whatever you want, it's in days):
39+
```bash
40+
# `/var/lib/docker/volumes/sentry-data/_data` refers to the mountpoint of the volume
41+
# from the output of the previous command. Change it if it's different.
42+
find /var/lib/docker/volumes/sentry-data/_data -type f -mtime +30 -delete
43+
```
44+
2645
## Kafka
2746

2847
One of the most likely things to cause issues is Kafka. The most commonly reported error is

0 commit comments

Comments
 (0)