setquota: Quota file not found or has wrong format [AGAIN]

12 posts / 0 new
Last post
#1 Fri, 07/10/2009 - 00:37
crankshaft

setquota: Quota file not found or has wrong format [AGAIN]

I am now receiving the following error whenever I try to modify any user email accounts on all domains, also these accounts don't seem to be receiving emails:

Failed to save mailbox : setquota: Quota file not found or has wrong format. setquota: Not all specified mountpoints are using quota.

Problem is I can't even delete the account and re-add it as I get a similar error.

Help !!!!!!

P

Fri, 07/10/2009 - 01:07
crankshaft

Here's the webmin log file,

[10/Jul/2009:05:15:27 +0000] Reloading configuration
Error: setquota: Quota file not found or has wrong format.
setquota: Not all specified mountpoints are using quota.
</tt>
Error: setquota: Quota file not found or has wrong format.
setquota: Not all specified mountpoints are using quota.
</tt>
Error: setquota: Quota file not found or has wrong format.
setquota: Not all specified mountpoints are using quota.
</tt>
Error: setquota: Quota file not found or has wrong format.
setquota: Not all specified mountpoints are using quota.
</tt>
Error: setquota: Quota file not found or has wrong format.
setquota: Not all specified mountpoints are using quota.
</tt>
Fri, 07/10/2009 - 01:21
crankshaft

Solution: repquota -uga

Fri, 07/10/2009 - 08:57
andreychek

Glad you got it! Thanks for posting your solution.

-Eric

Tue, 07/14/2009 - 03:26 (Reply to #4)
crankshaft

Hi;

This problem has returned again, I am guessing that there's a cron job running either on my VPS or on the host server that is breaking my system.

Disk Quotas is not enabled in Webmin, well I assume it is as the only option I have under that menu is " Enable Quotas". When I run the command to fix the problem, switching off quotas with quotaoff -a throws and error as below, but this might be because quotas is not enabled in webmin ?!

# quotaoff -a
quotaoff: Cannot find quota file on / [/dev/simfs] to turn quotas on/off.
quotaoff: Cannot find quota file on / [/dev/simfs] to turn quotas on/off.
# quotacheck -ugamn

I don't really need quotas, so in Module Config, I have set "Quota setup for domain and mail users?" to no, but how do I completely disable quotas, and what might the recurring cause of this be ??

I have a suspicion that although quotas is disabled in webmin, virtualmin may assume that it's enabled, and is trying to work without the necessary files etc, but I must admit I'm not really sure what's going on.

P

Oh dear, something else is broken as well, none of the emails are making it to the mailboxes:

## Maillog
 
Jul 14 08:13:00 alpha postfix/local[19594]: A008F4099C57: to=<xxx@domain.com>, orig_to=<xxx@domain.com>, relay=local, delay=0.16, delays=0.13/0/0/0.02, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
.
.
Jul 14 08:15:20 alpha postfix/local[20407]: 5D68A4099C57: to=<xxx@domain.com>, orig_to=<xxx@domain.com>, relay=local, delay=0.17, delays=0.14/0/0/0.03, dsn=5.2.0, status=bounced (can't create user output file)
##procmail log
From home@peter-c.net  Tue Jul 14 08:13:00 2009
 Subject: 415
  Folder: /home/xxx/homes/pac/Maildir/new/1247559180.19595_0.alph       658
Time:1247559180 From:xxx@xxx.net To:xxx@xxx.com User:pac.ivessusa Size:706 Dest:/home/ivessusa/homes/pac/Maildir/new/1247559180.19595_0.alpha Mode:None
procmail: Quota exceeded while writing "/home/ivessusa/homes/sue/Maildir/tmp/1247559320.20408_0.alpha"
procmail: Quota exceeded while writing "/home/ivessusa/homes/sue/Maildir/tmp/1247559320.20408_1.alpha"

Help !!!

Tue, 07/14/2009 - 09:50 (Reply to #5)
andreychek

Some VPS's rewrite /etc/fstab each time they reboot... if that's the case, it's possible the usrquota and grpquota definitions in there are getting lost.

What do your /etc/fstab and /etc/mtab files look like?

-Eric

Fri, 07/17/2009 - 04:35
crankshaft

Hi;

Here's the output of my /etc/fstab:

none /dev/pts    devpts  rw  0   0

I have turned off quotas in Virtualmin, so I just can't understand why this problem is recurring.

If I try to enable quotas in WEBMIN I get the folowing error:

quotaon: using //aquota.user on /dev/simfs [/]: Permission denied

Is there anyway to completely disable file quotas, other than to just disable it through virtualmin as I have already done ??

P

Fri, 07/17/2009 - 07:36
crankshaft

I am also getting the following errors when I validate the servers:

xxx.com
    Administration user : Unix group xxx's quota of Unlimited does not match the virtual server's quota of 1000 MB
    Mail for domain : The mail server is not configured to receive email for xxx.com 
Sun, 07/19/2009 - 08:19
andreychek

When you say you turned off quotas through Virtualmin, how did you go about doing that?

-Eric

Mon, 07/20/2009 - 13:22
andreychek

I'm not really sure what's going on with your quota's there. Is that your full fstab file you're listing there? Someone had suggested you may be running on OpenVZ, so perhaps it is...

Also, could you post a copy of your /etc/mtab file?

As far as disabling quotas goes -- you should be able to do that by going into Webmin -> System -> Disk Quotas, and click the "Disable Quotas" link on the right.

However, quotas should -- in theory -- work, so I'd like to think we could figure out what's going on for you if you'd like to continue troubleshooting it.

-Eric

Tue, 03/29/2011 - 19:15
PatrickLambooy
PatrickLambooy's picture

quota problems :

quotaoff /partition cp -au /partition/aquota.* /temp rm -rf /partition/aquota.* quotacheck -vgum /partition quotaon /partition

this will fix it.

Example fstab Note : /dev/sdb1 /home ext3 grpquota,usrquota,rw 0 2

Fri, 05/13/2011 - 03:37
exius

seemed to "fix" itself after a reboot.

we'll see how this comes along...

Topic locked