Small display issues...

Hi,

I noticed some small display issues in Quotas on the main page when using Firefox 2.x, Safari 2.x or Opera 8.x

Screenshot:

All of the sites are using the same "unlimited" disk quota! So something is going wrong here. :wink:

Other things I noticedā€¦ I donā€™t get to see any bars or status for Real Memory, Virtual Memory and Local Disk Space. I guess Virtualmin does not know how to read any info on OSX about that right? Would be nice at least to see the remaining disk space. :slight_smile:

I also do not get any Status on ProFTPd wich is installed and running fine!? However, it does show up when I change ā€œProFTPd IP-based virtual server enabled?ā€ to ā€œYesā€ instead of ā€œNoā€. The problem is that I donā€™t want to offer this feature but still would like to see if ProFTPd is up and running in the first place.

Thanks
Tony

EDIT:
I should mention that the quota you see in the picture must be wrong as well it seems. The first site uses 300KB cause its only one simple page, the second about 17 MB, and the third about 670 MB.<br><br>Post edited by: tony.p, at: 2007/08/21 15:17

Howdy Tony,

Iā€™ll see about fixing the line feed in that quota graph. I think I can force it to nowrap. Not sure why I havenā€™t done that to dateā€¦but it usually looks fine, so I guess I never saw a need.

As for wrongness, spend some time looking at what the system is reporting for quota usage, and force a quota recalculation. Virtualminā€™s quotas (at least most of them) come from the system-level quotas. If they are wrong, then your system quota tools have are wrong. Virtualmin doesnā€™t (usually) calculate disk usage itself, though it might be on Mac OS X (Iā€™m not sure of the state of quotas on Mac OS X).

Check the Webmin System:Disk Quotas module, force a check of the quotas, and file a bug if things arenā€™t reporting sanely.

Joe,

kewl thanks for fixing that. No big deal though but just thought I mention it anyway.

As for the quotas, funny and odd enough, Webmin > System > Disk Quotas does show ALL of the quotas and they are all correct!?

Check it out:

Sorry but forum did not like my picture size and submit only the text message.

Here is what I see in Disk Quotas Module:

Hi Tony,
Regarding the quotas, do you have group quotas enabled on your system? This is highly recommended, as without them Virtualmin cannot properly enforce usage by all mailboxes in a domain.

Regarding the disk, memory and CPU use on OSX, you are correct that they are not shown because I donā€™t know how to get that information on OSX. But it would be easy to add if you know of a command or special file in which this can be found.

Regarding ProFTPD, most likely the reason it doesnā€™t have a start/stop button is that it is launched on-demand from inetd or xinetd, rather than having a permanent server process.

Thanks Jamie,

will see if I have group quotas enabled or not, but how come the quotas module is showing these numbers while the frontpage is showing something entirely different!?

As for ProFTPd, I do have a start stop button on the ProFTPd module page but again this is just not showing up on the frontpage UNLESS I change "ProFTPd IP-based virtual server enabled?" to "Yes" instead of "No". That I find funny.

ProFTPd is launched on demand at startup on OSX definatly but I can not see the difference between that and for instance mysql or apache which are started the same way?

Tony

ps: I will check if there is such a command on OSX and let you know.

The quotas shown in Virtualmin for domains are computed by adding up the usage for all users in the domain, if you donā€™t have group quotas active . And it may be that this isnā€™t working properly ā€¦ so let me know if you have group quotas on or not. You can see this in the Disk Quotas module.

Regarding ProFTPd, this is quirk of Virtualmin at the moment - unless you have the ā€˜ProFTPd IP-based virtual server enabled?ā€™ feature enabled, it doesnā€™t considered FTP server management to be under its control, and thus doesnā€™t show that button. This is arguably incorrect, as domain owners and some mailbox users can still FTP in.

By the way, in Virtualmin 3.45 the proftpd start/stop/restart buttons will always appear if it is installed, even if you have the proftpd private IP feature turned off.

Jamie,

I have "User and Group Quotas Active" for the drive I use for my vhosts and emails. I have seperated the hosting part from the drive where webmin/usermin/virtualmin are on. Do I need to enable it also for the "main" / "boot" drive then?

Regarding ProFTPd, this is quirk of Virtualmin at the moment - unless you have the 'ProFTPd IP-based virtual server enabled?' feature enabled, it doesn't considered FTP server management to be under its control, and thus doesn't show that button. This is arguably incorrect, as domain owners and some mailbox users can still FTP in.

Right, that was what I meant. FTP access is in general still allowed for all vhosts. I just donā€™t want to allow ā€œanonymousā€ IP-based ftp but at least would like to know if the service is up and running as soon as I login to Virtualmin/Webmin.

Tony

Sorry did not see your last post right away.

By the way, in Virtualmin 3.45 the proftpd start/stop/restart buttons will always appear if it is installed, even if you have the proftpd private IP feature turned off.

Nice, thanks for telling me. Right now I am still on 3.44 and want to wait for one of the next updates because of some manual changes you walked me thru with the FileManager and stuff.

You need to have quotas enabled only for the filesystem on which Virtualmin home directories and email is stored. Typically this is /home , which contains domain directories like /home/whatever.com , and also usersā€™ mail files in ~/Maildir directories.

However, if your mail server delivers to /var/mail/username, you will also need quotas enabled on /var/mail if that is a separate filesystem.

Ok, well then I am set and good to go. Group Quotas enabled on the drive where email and vhosts reside.

Tony

Sounds like there is a bug in Virtualmin then, in the fetching or display of quotas. But to debug it further Iā€™d need to login to your system myself to see what is happening under the hood ā€¦ contact me via email at jcameron@virtualmin.com if this is possible.