element-hq / element-hq/synapse

Media store can leave many empty directories, leading to large disk space usage

Open
#7,690 0 comments 1 reaction 0 assignees View on GitHub
A-Disk-Space S-Tolerable T-Defect z-p3
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#7690](https://github.com/matrix-org/synapse/issues/7690).

---

### Description

On my server, the directory media_store/remote_content currently has 567 746 empty sub directories (takes about 2.5 GB of disk space)

Happy to share logs in a non-public channel or give access to my server for debugging.

Some homeservers seems more affected than others.

![2020-06-12-16-07-16](https://user-images.githubusercontent.com/19155609/84517260-f3ae2600-acc6-11ea-9b92-0852d89eb679.png)
![2020-06-12-16-07-25](https://user-images.githubusercontent.com/19155609/84517279-fb6dca80-acc6-11ea-9de5-cf3fc0278568.png)
![2020-06-12-16-07-31](https://user-images.githubusercontent.com/19155609/84517283-fe68bb00-acc6-11ea-85d5-cb6bb444aa5b.png)
![2020-06-12-16-07-38](https://user-images.githubusercontent.com/19155609/84517294-00cb1500-acc7-11ea-89b7-bb2a467c4407.png)

### Steps to reproduce

- uh, have a Synapse running for six months

### Version information

- **Homeserver**: twilightsparkle.dev

If not matrix.org:

- **Version**: 1.15.0

- **Install method**: pip

- **Platform**: Ubuntu Server 18.04.4 LTS (4.15.0-106-generic x86_64)

VPS (running on KVM I believe)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.