{"id":454,"date":"2021-01-20T18:48:18","date_gmt":"2021-01-20T18:48:18","guid":{"rendered":"http:\/\/www.torontohelpdesk.ca\/blog\/?p=454"},"modified":"2025-11-04T18:03:35","modified_gmt":"2025-11-04T18:03:35","slug":"plesk-server-running-out-of-space","status":"publish","type":"post","link":"https:\/\/www.torontohelpdesk.ca\/blog\/plesk-server-running-out-of-space\/","title":{"rendered":"Plesk server running out of space"},"content":{"rendered":"\n<p><strong>Problem: <\/strong><\/p>\n\n\n\n<p>Plesk is running out of space<\/p>\n\n\n\n<p><strong>Solution:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>SSH into the server<\/li>\n\n\n\n<li>Run du -h to see what&#8217;s eating up space<\/li>\n\n\n\n<li>Or run <strong>du -sh * | sort -rh<\/strong> per folder to narrow down the file size <\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>(du -x \/ |sort -rnb |more)<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In this case, it was \/var\/log file<\/li>\n\n\n\n<li>I found a log file called modsec_audit.log-202010120.gz<\/li>\n\n\n\n<li>Deleted the file<\/li>\n\n\n\n<li>Do not delete modsec_audit.log<\/li>\n<\/ol>\n\n\n\n<p><strong>Update (2022)<\/strong><\/p>\n\n\n\n<p>The journal file was 4.3GB<br><br>Run this: journalctl &#8211;disk-usage (it&#8217;ll tell you how large the journal is)<br>Run this: journalctl &#8211;vacuum-size=200M (it&#8217;ll clean up the journal)<\/p>\n\n\n\n<p><strong>Update (2024)<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Drilled down to problematic folders using  <strong>du -sh * | sort -rh<\/strong><\/li>\n\n\n\n<li>System mailbox had 26GB<\/li>\n\n\n\n<li>In CPanel went to the mailbox, clicked Manage and emptied it out<\/li>\n\n\n\n<li>Went back into the problematic folders and the next item was the logs folder<\/li>\n\n\n\n<li>Deleted all the compressed logs using rm -rf *.gz<\/li>\n<\/ol>\n\n\n\n<p><strong>Update (2025)<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>journalctl &#8211;vacuum-time=7d<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem: Plesk is running out of space Solution: Update (2022) The journal file was 4.3GB Run this: journalctl &#8211;disk-usage (it&#8217;ll tell you how large the journal is)Run this: journalctl &#8211;vacuum-size=200M (it&#8217;ll clean up the journal) Update (2024) Update (2025)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-454","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts\/454","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/comments?post=454"}],"version-history":[{"count":7,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts\/454\/revisions"}],"predecessor-version":[{"id":587,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts\/454\/revisions\/587"}],"wp:attachment":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/media?parent=454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/categories?post=454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/tags?post=454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}