mention remove-old-stack-work-libs.hs for diskspace clean

This commit is contained in:
Jens Petersen 2020-05-19 01:02:58 +08:00 committed by GitHub
parent e3061a095b
commit 58e6d38671
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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