Skip to content
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

springfiles map pruning / cleanup script #101

Open
springraaar opened this issue Apr 25, 2024 · 2 comments
Open

springfiles map pruning / cleanup script #101

springraaar opened this issue Apr 25, 2024 · 2 comments

Comments

@springraaar
Copy link
Contributor

springrts.com ran out of disk space yesterday. There seems to be some recurring process that can take up a significant amount of GB and create this issue if free space is < 10 GB

In any case, the springfiles maps directory seems to be the biggest one and had about 92 GB at the time.

I manually removed about 7 GB worth of old versions of maps which have newer ones and also have relatively big files.

Then I made this script to cleanup the DB records, images,etc as if they'd been removed through the web app
verifyMapsCleanup.zip

might be worth adding it on a PR

@springraaar
Copy link
Contributor Author

disk filled up again!
/dev/mapper/spring1--vg-root 365494272 362827904 64 100% /

mysql stopped working
springfiles@spring1:~/upq/files/games$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (111)

apparently it's not user-uploaded content that's doing this since no game or map has been uploaded in the past 12h and the remaining free ~5 GB are gone.

@springraaar
Copy link
Contributor Author

it cleared up over the past hour
/dev/mapper/spring1--vg-root 365494272 351262128 10891120 97% /

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant