Quotacheck doubled quota in Virtualhost with chroot jail

Hi,

I've noticed that the Virtualhost quota is doubled after a quotacheck via the Virtualmin tool. In this way a lot of Virtualhosts are overquota but the effective homedir size is half the quota indicated by Virtualmin!

In these Virtualhosts i have enabled the chroot jail.

In Virtualhosts where chroot jail is not enabled, the quota count match the homedir size.

Status: 
Active

Comments

Can you post a screenshot showing the page on which the quota is doubled?

Also, what does the mount command output on your system?

Hi Jamie, sorry for the delay...

this is the output of mount command

sysfs on /sys type sysfs (rw,relatime)
proc on /proc type proc (rw,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=16443100k,nr_inodes=4110775,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=3291240k,mode=755)
/dev/md2 on / type ext4 (rw,relatime,discard,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=38,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1277)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
/dev/md3 on /home type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md1 on /boot type ext4 (rw,relatime,discard,errors=remount-ro,data=ordered)
tmpfs on /run/user/117 type tmpfs (rw,nosuid,nodev,relatime,size=3291236k,mode=700,uid=117,gid=121)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/123456789012345/home/cdqformazione type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
tmpfs on /run/user/1050 type tmpfs (rw,nosuid,nodev,relatime,size=3291236k,mode=700,uid=1050,gid=1049)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
/dev/md3 on /home/chroot/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx type ext4 (rw,relatime,discard,quota,usrquota,grpquota,data=ordered)

The rows with x are different users

Screenshot of Disk Usage section
Screenshot of the file manager with the home size

Thank you for your reply.

.nicola

looks like a bug that was present in ubuntu 16.04...i had this exact same problem.

Also, what output do you get if you SSH in as root and run virtualmin check-config

Hi Jamie,

this is the output

Your system has 31.38 GiB of memory, which is at or above the Virtualmin recommended minimum of 256 MiB.

BIND DNS server is installed, and the system is configured to use it.

Apache is installed.

The following PHP versions are available : 5.6.40 (/usr/bin/php-cgi5.6), 7.0.33 (/usr/bin/php-cgi7.0), 7.3.10 (/usr/bin/php-cgi7.3)

The following PHP-FPM versions are available on this system : 5.6.40 (php5.6-fpm) 7.0.33 (php7.0-fpm) 7.3.10 (php7.3-fpm)

Apache is configured to host SSL websites.

MariaDB 10.1.41 is installed and running.

ProFTPD is installed.

Logrotate is installed.

Plugin AWstats reporting is installed OK.

Plugin DAV Login is installed OK.

Plugin Git repositories is installed OK.

Plugin Protected web directories is installed OK.

Plugin SQLite Databases is installed OK.

Using network interface enp1s0 for virtual IPs.

IPv6 addresses are available, using interface enp1s0.

Default IPv4 address for virtual servers is xxx.

Default IPv6 address for virtual servers is xxx

Both user and group quotas are enabled for home and email directories.

All commands needed to create and restore backups are installed.

The selected package management and update systems are installed OK.

Chroot jails are available on this system

OK

Can you also post the output from the command grep quotas /etc/webmin/virtual-server/config

Sure,

home_quotas=/home
mail_quotas=/home
quotas=1
hard_quotas=1
show_quotas=0
show_uquotas=0
group_quotas=1

That looks fine to me (all quotas are on the /home filesystem).

Can you post a screenshot of the page on which the incorrect quota usage is shown?