# OpenReplay give 502 once disk is filled up

**URL:** <https://forum.openreplay.com/t/openreplay-give-502-once-disk-is-filled-up/108>\
**Category:** 🛠️ Deployment\
**Tags:** cleanup\
**Created:** [June 5, 2024, 4:18pm UTC](https://forum.openreplay.com/t/openreplay-give-502-once-disk-is-filled-up/108 "2024-06-05T16:18:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dave-the-developer](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@dave-the-developer](https://forum.openreplay.com/u/dave-the-developer)\
**Post date:** [June 5, 2024, 4:18pm UTC](https://forum.openreplay.com/t/openreplay-give-502-once-disk-is-filled-up/108/1 "2024-06-05T16:18:57Z")

</div>

Hi there, I have openreplay installed on an ec2 instance with files writing to s3 (not minio). For some reason our disk is filling up (in `/openreplay/storage/nfs`).  
The issue is the server is once the HDD space is filled up, openreplay gives a 502 bad gateway error.  
I’ve modified the cron job in config file to `cron: "5 * * * *"`

---

<div class="post-metadata">

**Author:** ![mehdi](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.openreplay.com/mehdi/32/50_2.png) [@mehdi](https://forum.openreplay.com/u/mehdi)\
**Post date:** [June 5, 2024, 5:10pm UTC](https://forum.openreplay.com/t/openreplay-give-502-once-disk-is-filled-up/108/2 "2024-06-05T17:10:32Z")

</div>

Right now, the mimium retention for cleanup we support via automation is 1 day.  
If you want to cleanup data before, say you want to only keep files that are older than 5 hrs, run the following command:  
`sudo find /openreplay/storage/nfs -type f -mmin +300 -exec /bin/bash -c "ls -lah {}; rm {}" \;`
