Jun 162013
 

Hello,

Recently there has been issues on some cPanel servers when attempting to obtain the disk quota for specific users. The problem is that it would return N/A in the cPanel account when looking at disk usage. Same result would appear when trying to get disk space for the user manually in the command line:

/usr/local/cpanel/bin/quota $user

cPanel confirmed that the issue is a bug and they have created an internal report on it. For the time being, they are reporting that they were able to temporarily fix the issue by doing the following:

Inside of the file called /usr/local/cpanel/bin/quota. Change this block
from:

}
print $header, $out if $out;
Quota::endmntent();
return 0;
}

To:

}
print $header, $out if $out;
Quota::endmntent();
return run_quota($uid) if scalar %$seen && !$out;

return 0;
}

The only thing that you are really doing here is adding this line:
"return run_quota($uid) if scalar %$seen && !$out;"

 Posted by at 7:55 am

Sorry, the comment form is closed at this time.