The logs have been purged. We went from 600GB to 40GB.
'Sleeper'
Buffistas Building a Better Board ++
Do you have problems, concerns, or recommendations about the technical side of the Phoenix? Air them here. Compliments also welcome.
take that, logs
Sweet! Do you clean closets?
Wow, we look so slim!
Thanks, Tom!!
Thanks, Tom :)
So I told them "hey! we fixed it!" and here's the response:
Hi there!
Thank you for the reply back about this matter!
It looks like the log locations are down by quite a bit:
9.3G -- 321G "ps189917:/home/buff_org/buffistas.org/phoenix/www.buffistas.org/logs" 6.3G -- 247G "ps189917:/home/buff_org/buffistas.org/phoenix/buffistas.org/logs"
However, they're still active and will continue to grow over time again. I'm afraid we'd first need to clear up the older logs in there, and then you'd have to look into setting up a function to rotate out the old logs with the new logs. The logs seem to get as large as 350Mb, so you'd want to look into possibly rotating out these logs after about 3 days so the new logs overwrite the old logs and rotate out every 3 days to help ensure that the location will not grow over time anymore.
Both are still quite large since they both go back to the new year, so you'd want to clear up the older ones left, and look into the rotation function for the logs.
Please see what can be done about that as well as clearing up the older logs that are left. I've added more time until February 7th, so please do reply back by or before that date if you have any questions or concerns or may require a bit more time. We'd be happy to help!
Thank you kindly,
Jin K.
I don't have dreamhost access or anything, but I have a similar rotating function running on my personal server. I think if you logged in to the dreamhost account via SSH and did
crontab -l; echo "0 4 * * * find /home/buff_org/buffistas.org/phoenix/www.buffistas.org/logs -mtime +3 -exec rm {} ;" | crontab
then that would set it up. However, that does assume that the log gets regularly written out to separate files; it won't delete old lines. It deletes files older than 3 days every day at 4am.
P.S. I have a feature request for the new board that we enable markdown, at least for bold and italics. The quick-edits are awesome but markdown is becoming second nature for me and is better for inline formatting...
I will add the cron job this evening.
I can't add a cron job, because I get the following error:
[ps189917]$ crontab -l
crontabs/buff_org/: fopen: Permission denied
[ps189917]$ crontab
/var/spool/cron/: mkstemp: Permission denied
Maybe it's something we need to do through the web console?