Box Update and after Quota not showing limit space

hi every one ,

first of all i want to say that i tried all fix command but nothing …

I updated my 2.5.3 with new commits on the dashboard updater . And then i have blank quota
Before it was ok


UUID=4422b764-6c18-4f0c-9de4-a44367b6013d / ext4 usrjquota=aquota.user,jqfmt=vfsv1,errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=f3ee580a-147b-4f12-be39-7085fe4216d9 /boot ext4 defaults 0 2
# swap was on /dev/sda2 during installation
UUID=6316f729-9ffb-4f1d-afdd-9374d9d5b9ba none swap sw 0 0


sda 8:0 0 1.8T 0 disk
├─sda2 8:2 0 1G 0 part [SWAP]
├─sda3 8:3 0 1.8T 0 part /
└─sda1 8:1 0 199M 0 part /boot

so i did :
fix-disk_widget_root and then

still same problem ; with quota it’s blank : You have used NaN% of your total disk space

If i uninstall quota , the full disk size is showing ! Its a temp fix …

my test :
quota -u USER , show the limit on the / ( so setdisk is ok )

fix disk on root because my full space is on /

seems to be /srv/rutorrent/home/widgets/disk_data.php who cant take the value of Quota

maybe i’m wrong

i remember that in home folder it was supposed to be a file with the quota but not sure

Could be really nice to have some response !! Please !

doing this :
mv /install/.quota.lock /install/.quota.loc

Full size is showing !

seems that the error could come from

if (file_exists('/install/.quota.lock')) {
  $dftotal = shell_exec("sudo /usr/sbin/repquota /|/bin/grep ^".$username."|/usr/bin/awk '{printf \$4/1024/1024}'");
  $dffree = shell_exec("sudo /usr/sbin/repquota /|/bin/grep ^".$username."|/usr/bin/awk '{printf (\$4-\$3)/1024/1024}'");
  $dfused = shell_exec("sudo /usr/sbin/repquota /|/bin/grep ^".$username."|/usr/bin/awk '{printf \$3/1024/1024}'");
  $perused = sprintf('%1.0f', $dfused / $dftotal * 100);

} else {

  $bytesfree = disk_free_space('/home');
  $class = min((int)log($bytesfree,$base),count($si_prefix) - 1); $bytestotal = disk_total_space($location);
  $class = min((int)log($bytesfree,$base),count($si_prefix) - 1); $bytesused = $bytestotal - $bytesfree;

even not possible via the dasboard to clean mem or Install/remove plugin !

the page refresh without doing the job


this in shell is WORKING !
include ("/srv/rutorrent/php/util.php");
include ("/srv/rutorrent/home/widgets/class.php");
require_once ("/srv/rutorrent/home/inc/localize.php");

$username = getUser();

$dftotal = shell_exec("sudo /usr/sbin/repquota /|/bin/grep admin|/usr/bin/awk '{printf \$4/1024/1024}'");

$dffree = shell_exec("sudo /usr/sbin/repquota /|/bin/grep admin|/usr/bin/awk '{printf (\$4-\$3)/1024/1024}'");

$dfused = shell_exec("sudo /usr/sbin/repquota /|/bin/grep admin|/usr/bin/awk '{printf \$3/1024/1024}'");

// $perused = sprintf('%1.0f', $dfused / $dftotal * 100);

echo "TOTAL $dftotal  ";

echo "FREE : $dffree  ";

echo "USED : $dfused ";

// echo " Percent : $perused ";

So the problem is not from the Code next step i will put $username

but this test.php file doest work from http:// my website /test.php

the problem would come from www-data User ?! Who cant execute Shell_exec
i got this in apache error log :
sudo: no tty present and no askpass program specified

i continue …

its was that ! FIXED

you can close

Thx everybody for your help as always