No space left on device. The error stops your application cold, and the first instinct — delete some logs and move on — usually misses what is actually wrong. A full disk on a VPS is rarely one obvious huge file; it is more often a directory you forgot about, a log that a process is still writing to after you "deleted" …
Read More1/var/log/myapp/*.log { 2 daily 3 rotate 14 4 compress 5 delaycompress 6 missingok 7 notifempty 8 create 0640 www-data adm 9 sharedscripts 10 postrotate 11 systemctl reload myapp >/dev/null 2>&1 || true 12 endscript 13} That single stanza is the whole job: it keeps two weeks of compressed application logs, never lets …
Read More