One of the features that RunCloud offers is the disk usage display, which shows you how much space your server is using, and how much is available. However, sometimes the disk usage display may show incorrect or outdated information, due to various reasons.
Block storage issue
If you are using block storage, which is a way of adding extra disk space to your server by attaching external volumes, RunCloud may not be able to detect and display the correct disk size. This is because RunCloud can only see the original size of the server’s disk, not the additional volumes. Therefore, you may see a smaller disk size than you actually have.
To fix this issue, you need to manually resize your server’s disk by using either your server provider’s dashboard or the terminal. You can follow the instructions from your server provider on how to do this. After you resize your server’s disk, RunCloud should be able to display the correct disk size.
Cache issue
If you have deleted some files or folders from your server to free up some space, but RunCloud still shows the same disk usage as before, it may be because of a cache issue. This means that RunCloud has not updated its disk usage information yet and is still showing the old data. This usually happens when you delete large amounts of data at once.
To fix this issue, you need to wait for at least 15 minutes for RunCloud to sync its disk usage information with your server. You can also either refresh your RunCloud dashboard, or log out and then log back in again to see if the disk usage display has changed.
Log files issue
If your disk usage is showing as full or almost full, but you don’t know what is taking up so much space, it may be because of the log files. Log files are used to record various events or activities on your server, such as errors, access, requests, etc. Log files can be useful for debugging or troubleshooting purposes, but they can also grow very large over time and consume a lot of disk space.
To fix this issue, you need to check and delete some of the log files that are no longer needed or too old. You can find the log files in these locations on your server:
/home/{username}/logs /var/log/nginx /var/log/apache2 /var/log/php/7.x/fpm
Note that in this code {username} is your web application username and 7.x is your PHP version.
You can use a file manager or a terminal to access and delete these log files. However, you should be careful not to delete any important or recent log files that may contain valuable information. You should also not delete any folders within these locations, only the files with a .log
extension.
Disk cleanup
If you want to free up some more disk space on your server, you can use the disk cleanup feature in RunCloud. This feature will remove some temporary or unnecessary files and folders from your server, such as cache files, session files, error logs, etc. This can help you improve your server performance and reduce your disk usage.
To use the disk cleanup feature in RunCloud, follow these steps:
- Log in to your RunCloud dashboard and select the server that has the disk usage issue.
- Click on Server Health from the main navigation menu and then click on Disk Cleanup.
- Confirm that you do definitely want to delete the specified files, and click on Clean.
Server restart issue
If none of the above solutions work and your disk usage display is still incorrect or outdated, you may need to restart your server. This will force RunCloud to reconnect with your server and gather the latest data about your disk usage and then sync it with the dashboard.
You can restart your server by logging in via SSH and then executing the reboot
command. You can also restart your server by using your server provider’s dashboard or the terminal.