Skip to main content
cPanel Technical Support has been heavily impacted by hurricane Beryl and our ability to respond to tickets has been hindered as a result. We appreciate your understanding and patience as we address these delays.

Incorrect Disk Usage displayed in cPanel

Comments

14 comments

  • cPRex Jurassic Moderator
    Hey hey! Was this not showing correctly for an extended period of time, or was it after clearing some space? The cPanel interface caches many of those types of value - for example, think how much resources it would take to scan the cPanel account's disk usage each time you loaded the page. Because of that, we cache those values for a period of time, and those get updated as part of the nightly maintenance.
    0
  • AndyX
    Hi Rex, This was over an extended period of time. The values was way off. For example cPanel was showing 6.14 GB when the correct value is 171.42 GB.
    0
  • cPRex Jurassic Moderator
    Weird - since the work has already been performed, which is the correct method to get that updated, we won't have any data on the "why" behind why it was behind.
    0
  • AndyX
    since the work has already been performed, which is the correct method

    So if I understand correctly, the correct fix is to move the directory as my web host has done?
    0
  • cPRex Jurassic Moderator
    Yes, clearing the old data is the proper way to get cPanel to update the cached data in the UI.
    0
  • AndyX
    Yesterday when the web host moved the directory, I looked for the directory: /home/username/.cpanel/datastore and the directory was not there. Now I just checked again and cPanel has created the directory and files in the directory. I assume that if we run into this issue again, all we need to do is delete the directory: /home/username/.cpanel/datastore then restart cPanel (not sure how they did that) and that will fix the issue.
    0
  • cPRex Jurassic Moderator
    You would need root access to the server to restart cPanel, but all that is necessary to is access the interface and those files will be regenerated.
    0
  • AndyX
    You would need root access to the server to restart cPanel

    I do have root access. What is the command to restart cPanel?
    but all that is necessary to is access the interface and those files will be regenerated

    That makes sense.
    0
  • cPRex Jurassic Moderator
    /scripts/restartsrv_cpsrvd
    0
  • quietFinn
    This was over an extended period of time. The values was way off. For example cPanel was showing 6.14 GB when the correct value is 171.42 GB.

    What was in that directory /home/username/.cpanel/datastore ? What told you that the "correct value" is 171.42 GB ?
    0
  • AndyX
    What was in that directory /home/username/.cpanel/datastore ?

    Same files as there are always there, they are created by cPanel.
    What told you that the "correct value" is 171.42 GB ?

    Terminal command: df -h
    0
  • quietFinn
    Same files as there are always there, they are created by cPanel.

    Those files are typically a few hundred kilobytes, not over 150 Gigabytes.
    Terminal command: df -h

    df command shows file system disk space usage. If you want to see cPanel user's disk usage you can do: du --max-depth=1 /home/username
    0
  • AndyX
    Those files are typically a few hundred kilobytes, not over 150 Gigabytes.

    The Disk Usage issue is resolved by deleting the file in the /home/username/.cpanel/datastore directory.
    If you want to see cPanel user's disk usage you can do

    An even better command is: du -sh /home/username
    0
  • Robert Wolf

    Your web host likely moved the directory /home/username/.cpanel/datastore to isolate and fix a caching issue causing the incorrect disk usage display in cPanel. This is a common troubleshooting technique

    Moving the directory itself shouldn't affect your website functionality.

    Unfortunately, there's no alternative fix without involving the directory. But since it worked for your web host, it's likely the most efficient solution-





    0

Please sign in to leave a comment.