I set up Letsencrypt on my ubuntu web server a few days ago. Everything has ben working fine but today my server is warning that I’m using up 100% of my 40GB HDD.
Below is the output of a du command and it shows that it’s letsencrypt using up all this space. I can’t work out why though.
Has anyone else experienced this before and know how to fix it?
Thanks!!
~$ du -a | sort -nr | head
39620 .
39512 ./.local
39508 ./.local/share
39504 ./.local/share/letsencrypt
36156 ./.local/share/letsencrypt/lib
36152 ./.local/share/letsencrypt/lib/python2.7
35772 ./.local/share/letsencrypt/lib/python2.7/site-packages
7580 ./.local/share/letsencrypt/lib/python2.7/site-packages/pip
6460 ./.local/share/letsencrypt/lib/python2.7/site-packages/pip/_vendor
4548 ./.local/share/letsencrypt/lib/python2.7/site-packages/cryptography
@JohEngstrom, du -hs command shows the output in a summarize way (-s) and in a human readable format (G for GigaBytes, M for MegaBytes, K for KiloBytes…) with option (-h)
So, du -hs ~/.local/ will show the size of .local dir an all sub-dirs and it is 39 MegaBytes so it is not filling your disk.
That directory is using 39 MB of storage. You probably want to run du -a / | sort -nr | head to look at your whole file system, and not just your current working directory.
@JohEngstrom, this is totally off topic but try to remove first some files on /tmp/ and or /var/tmp/ to free some space so you could launch the proposed commands.