These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Quota/Aquota error causing a headache on the new forum.
Hi everyone
I have an instance of virtualmin running on a live server which runs perfectly on ubuntu 10.04 LTS.
I've recently installed virtualmin on a local ubuntu machine and I'm not able to add or restore virtual servers due to a disk and/or user quota problem.
After a few hours of research and attempts to get this working, I've decided to ask for some help from the members of this forum - here are the things that I've tried so far and some config files that you might find useful in debugging/diagnosing...
# quotaon -avug
quotaon: Cannot find quota file on / [/dev/sda1] to turn quotas on/off.
quotaon: Cannot find quota file on / [/dev/sda1] to turn quotas on/off.
root@demo1:/# rm -f aquota.user
root@demo1:/# rm -f quota.group
root@demo1:/# touch aquota.user
root@demo1:/# touch quota.group
root@demo1:/# mount -o remount /
root@demo1:/# quotaon -avug
quotaon: Cannot find quota file on / [/dev/sda1] to turn quotas on/off.
quotaon: Cannot find quota file on / [/dev/sda1] to turn quotas on/off.
/etc/fstab file contents:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
/dev/sda1 / ext4 grpquota,errors=remount-ro,usrquota,rw 0 1
# swap was on /dev/sda5 during installation
UUID=42bf41db-678c-4f2f-ab25-a091ccfadda3 none swap sw $
/etc/mtab file contents:
/dev/sda1 / ext4 rw,grpquota,errors=remount-ro,usrquota 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
none /sys sysfs rw,noexec,nosuid,nodev 0 0
none /sys/fs/fuse/connections fusectl rw 0 0
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/security securityfs rw 0 0
none /dev devtmpfs rw,mode=0755 0 0
none /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
none /dev/shm tmpfs rw,nosuid,nodev 0 0
none /var/run tmpfs rw,nosuid,mode=0755 0 0
none /var/lock tmpfs rw,noexec,nosuid,nodev 0 0
none /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
none /var/lib/ureadahead/debugfs debugfs rw,relatime 0 0
gvfs-fuse-daemon /home/cfoulstone/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,u$
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
/var/webmin/miniserv.error last few lines:
[25/Aug/2011:11:41:25 +0100] miniserv.pl started
[25/Aug/2011:11:41:25 +0100] PAM authentication enabled
Failed to initialize SSL connection
Failed to initialize SSL connection
Failed to initialize SSL connection
Failed to initialize SSL connection
Failed to initialize SSL connection
Failed to initialize SSL connection
status: Unknown parameter: INTERFACE
status: Unknown parameter: JOB
Error: quotaon: Cannot find quota file on / [/dev/sda1] to turn quotas on/off.
Failed to initialize SSL connection
df: `/home/cfoulstone/.gvfs': Permission denied
df: no file systems processed
I don't know what else to try, so any help or advice would be appreciated.
Cheers
Howdy,
Well, the steps you're taking there seem reasonable.
Are you using this on a Virtual Machine or VPS of some sort? Or is this a dedicated server?
-Eric
Hi Eric
Thanks for taking a look at my problem again!
The machine is local box, so a 'dedicated' server would be the best description.
I install Ubuntu 10.04 LTS as a clean install yesterday, upgraded the packages and ran install.sh script. Other than that there's no customisation or mods to the box at all.
One other minor niggle, although I don't think it is connected, is that webmin will not run as a startup process - I have to manually instigate the process with
/etc/init.d/webmin start
. But as this is only to be used for some website demos at an exhibition (via server backup and restore from my production box) I don't need to worry about this startup issue.Cheers
Howdy,
There is an issue with Ubuntu's upstart that can cause things to go a bit "wonky" in regards to starting Webmin automatically.
A quick fix would be to run this:
update-rc.d webmin defaults
As far as quotas go -- those usually work pretty well on a fresh install, those are some surprising issues you're running into!
One option, if you don't actually require quotas, may be to just tell Virtualmin not to try and use them.
To do that, go into System Settings -> Virtualmin Config, and set "Set quotas for domain and mail users" to "No".
After you do that, are you then able to add a Virtual Server?
However, if you do want quotas, we can try and do some troubleshooting steps to figure out what's going on there. Though that is very odd :-)
-Eric
Cheers again
I'm out at the minute but will give this a shot later and see if it works. Having said that, is there a way to import virtual servers that don't use quotos from backups that were backed up from a system that did use quotas? i'm pretty sure (although not 100%) that I tried to import the virtual servers with option to recover administrator's password and quota etc, but that failed too.
I'll get back to you later on with results...
Thanks Eric, the
update-rc.d webmin defaults
command fixed the webmin startup for me and disabling Virtualmin's control of quotas enabled me to import my backed up servers.