incorrect quota between cli and gui

ca2236

Well-Known Member
Feb 2, 2018
244
25
28
Nebraska
cPanel Access Level
DataCenter Provider
Hello,

There is a very large discrepancy between on an account between the GUI and command line. I have only compared one account and more. If I log into the GUI, under list accounts, it shows the account using 60MB and on the cli, disk usage shows it at almost 50GB! that is a huge difference.

Please see pictures:

GUI

.gui.PNG

Command line

cli.PNG
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
What is the breakdown of the disk space allocation within public_html of that account? You can run the following to find that:

Code:
du -h --max-depth=1
Does the discrepancy change when you run the following:

Code:
/scripts/fixquotas
 

ca2236

Well-Known Member
Feb 2, 2018
244
25
28
Nebraska
cPanel Access Level
DataCenter Provider
the requested du command is here:


Code:
bash-4.2# du -h --max-depth=1
0       ./cgi-bin
11M     ./phpmyadmin
47G     ./wp-content
0       ./wordpress
8.8M    ./wp-admin
35M     ./wp-includes
0       ./session
14M     ./tmp
48G     .
and the subsequent large folder is a local wordpress backup via a plugin.

However, I'm not sure why things are not getting counted correctly. I will try to run

/scripts/fixquotas and post back
 

ca2236

Well-Known Member
Feb 2, 2018
244
25
28
Nebraska
cPanel Access Level
DataCenter Provider
Code:
/scripts/fixquotas
didn't seem to fix anything, It seemed to reset what the soft/hard limit is, not what the disk usage. Also checked from Chrome Incognito
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
Well the disk usage as reported on the CLI is the actual disk usage, the quota as reported in the account should match the usage in the account with the understanding that the quota report is only reporting what is owned by that user. Fix quotas should ensure that quota reporting for all accounts is accurate.

If that backup isn't owned by the account the disk space usage total looks actually pretty accurate.