When I try to rebuild app on a new instance without files and any activity, I get this info about space limits. I found some links, but didn’t understand how to prevent this situation.
I copied logs, may be they will help.
Questions:
- When I rebuild the app, are old images in docker deleted or continue to be there and take their space?
- Why I found logs files of a huge size? Do they containg any userful info or I would better deactive logging somewhere? Where can I do it?
- How much of disk space is enough for discourse (all files and backups are saved at S3)?
Summary
` ./launcher rebuild app`
You have less than 5GB of free space on the disk where /var/lib/docker is locate d. You will need more space to continue
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 25G 20G 4.8G 81% /
Would you like to attempt to recover space by cleaning docker images and contain ers in the system?(y/N)Н
root@natives:/var/discourse# ./launcher rebuild app
You have less than 5GB of free space on the disk where /var/lib/docker is located. You will need more space to continue
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 25G 20G 4.8G 81% /
Would you like to attempt to recover space by cleaning docker images and containers in the system?(y/N)т
root@natives:/var/discourse# sudo find / -xdev -type f -size +100M
/swapfile
/usr/bin/dockerd
/var/lib/docker/overlay2/11f20e584db8fe2a9a04531c4b414ab666235cf459c32e3ab08dcb4991e617da/diff/var/www/discourse/.git/objects/pack/p ack-f9771d8b25eca321a22e64342acf3d1a49941948.pack
/var/lib/docker/overlay2/4053159ab17ec99394d754e06638f4243d480e394e0d47326d147c9d252a4c94/diff/var/www/discourse/.git/objects/pack/p ack-ffd1b8da21b9e26b4475a3fef6537a89f21989d6.pack
/var/log/journal/9f879a7af4154a4b84d50c11fc294890/system@285e1547c8b243eb817182c10ee45406-0000000000092ee9-0005a4c436c85763.journal
/var/log/journal/9f879a7af4154a4b84d50c11fc294890/system@285e1547c8b243eb817182c10ee45406-0000000000023601-0005a40f35e2b682.journal
/var/log/journal/9f879a7af4154a4b84d50c11fc294890/system@285e1547c8b243eb817182c10ee45406-0000000000039c20-0005a42bdf4f4f6b.journal
/var/log/journal/9f879a7af4154a4b84d50c11fc294890/system@285e1547c8b243eb817182c10ee45406-0000000000065991-0005a462464f08a1.journal
/var/log/journal/9f879a7af4154a4b84d50c11fc294890/system@285e1547c8b243eb817182c10ee45406-000000000000cdd9-0005a3defb4b3ae3.journal