From 58e6d38671d5d9185a8c16b58afcfa1ab0bc83c0 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 19 May 2020 01:02:58 +0800 Subject: [PATCH] mention remove-old-stack-work-libs.hs for diskspace clean --- CURATORS.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CURATORS.md b/CURATORS.md index 80da8441..89ee5394 100644 --- a/CURATORS.md +++ b/CURATORS.md @@ -333,14 +333,15 @@ early and hopefully the nightlies will be timely. LTS minor bumps typically are run on Sundays. -### Website sync debugging (and other out of disk space errors) +### Diskspace errors (and website sync debugging) * You can detect the problem by running `df`. If you see that `/` is out of space, we have a problem * If you see that `/var/stackage/` is out of space, you can: + * run `./stackage/etc/diskspace/remove-old-stack-work-libs.hs` in `/var/stackage/stackage/automated/work/*/unpack-dir/.stack-work/install/x86_64-linux/*/*/` (hopefully sufficient) + + optionally (not recommended?): * `rm -r /var/stackage/stackage/automated/work/lts*/unpack-dir/unpacked/` * `rm -r /var/stackage/stackage/automated/work/nightly/unpack-dir/unpacked/` -* (outdated) There are many temp files inside `/home/ubuntu/stackage-server-cron` that can be cleared out occasionally -* (outdated) You can then manually run `/home/ubuntu/stackage-server-cron.sh`, or wait for the cron job to do it ### Wiping the cache