Anyone seen this? edquota: error

homeport

Member
Jun 15, 2003
5
0
151
Everything was working correctly, then I just added a new domain and noticed the quota was "unlimited".

So I ran ./initquotas, ./fixquotas and ./resetquotas all received the following error for each user:



quote:
--------------------------------------------------------------------------------
edquota: Can't duplicate descriptor of file to write to: Bad file descriptor
--------------------------------------------------------------------------------



Now all domains have "unlimited" listed as the quota.

Has anyone seen this before? What should be done to fix this, I even tried deleting aquota.user and quota.user in / after I backed them up first, then running ./initquotas still the same problem. Any help would be greatly appreciated. Thank you.

cPanel.net Support Ticket Number:

cPanel.net Support Ticket Number:

cPanel.net Support Ticket Number:
 

homeport

Member
Jun 15, 2003
5
0
151
No one has seen this before

What? No one has seen this problem before.

cPanel.net Support Ticket Number:

cPanel.net Support Ticket Number:
 

homeport

Member
Jun 15, 2003
5
0
151
Originally posted by thaphantom
/scripts/fixquotas --useplanquotes

cPanel.net Support Ticket Number:
Thanks for the tip about --useplanquotes, but that doesn't work either. Still receive:

edquota: Can't duplicate descriptor of file to write to: Bad file descriptor

everytime I use any of the quota scripts in /scripts.

cPanel.net Support Ticket Number:
 

homeport

Member
Jun 15, 2003
5
0
151
Found cause and Fix

The error I was having is due to edquota tries to read all mounted hard drives quotas. :rolleyes:

Since I still had a slave mounted, this is what caused the error.

Simple fix is to run /scripts/fixquotas on the mounted drive too, for example if your mount was under /oldroot, you would use /oldroot/scripts/fixquotas

cPanel.net Support Ticket Number: