cPanel insufficient disk space upgrade error

My Linode has enough disk space, yet I receive the below error after an auto-upgrade.

cPanel & WHM cannot update due to insufficient disk space in the staging directory, '/usr/local/cpanel

How can I troubleshoot this?

1 Reply

There could be a few reasons you are getting this error. Sometimes, the error message may tell you how much space is needed as opposed to how much space it reads is available. We will need to check our disk usage to get a baseline. Let's walk through a few steps to see where the issue is.

#Show disk usage in human readable format by displaying them in megabytes and gigabytes
df -h

#Will show each folder size in megabytes under /home/directory
du -sh /home/*

1. Move Backups offsite
There are may ways to store specific backups. This intro will help you access your needs. cPanel has some documentation on how to do it through there system.

2. Move or archive logs
These are typically in /var/log and may get quite large if they get out of hand. They may be found in the below places, as well.

usr/local/cpanel/logs/
/usr/local/apache/logs/
/usr/local/apache/domlogs/

3. Remove cPanel archive files
You can move or delete the following files as they may not be needed. Some of the names may be different depending on your cPanel version.
/usr/local/apache.backup*
/home/<cpanel update file name>

4. Remove unnecessary or duplicate folders such as the ones below.
/usr/local/apache.*
/usr/local/maldet.*

These are just a few steps you can try. I hope this is helpful. Please, feel free to ask the Community if you have any questions.

Happy Troubleshooting!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct