Web Hosting Talk







View Full Version : WHM, Resellers, and Quotas


thedavid
03-05-2003, 04:36 PM
Hello all,

WHM has me ripping my hair out today with its quota management.

I've created several reseller accounts in the past 2 days. I just created another reseller account today, and perhaps there's something I'm doing wrong.
When I create the account I do this:

1) Run the API queue in modernbill so that it auto-creates a domain account for the user.

2) In WHM turn the customers reseller account on (make them a reseller)

3) Edit the reseller priviledges so that they can only do the things I want. (no root access, no modifying others' zone files, etc) I also limit by disk space here, to whatever quotas their plan calls for (Limit Accounts user can create by Resource Usage)

4) I then modify their domain name so that their disk and bandwidth quotas don't match the reseller account entirely (so they're not using 100% right when they start, in other words)

5) Then I change the ownership of the users domain name to the reseller account (IE, the user can modify their own account)

6) Then I do various IP things, assigning them the addresses, setting defaults, etc.

That's all worked great before. I have a bunch of resellers all using this without problem. Except for this one - when the customer goes to create
an account WHM pops up the following error:

"Sorry you cannot create this account because you are out of disk space."

In other words, the customer has 3000 MB of disk space, and 50000 MB Bandwidth, but in the box that says remaining available, it's all zeros.

Anyone know how can this be fixed? I've tried running the fixquotas script as well as the fixcommonproblems (which looks like it's mostly email oriented anyway) with no luck. I've also tried removing and re-adding the reseller priviledges, resetting quotas on the main account, etc. It just sticks.

To allow this customer to create accounts I've had to not limit him by disk space/transfer at all.

Any insight would be appreciated. I did
some searches but do not see this error in the cpanel forums. Anyone else run into this error?

-David

atjeu
03-05-2003, 04:40 PM
maybe delete him alltogether and then put him back up?

thedavid
03-05-2003, 05:23 PM
Atjeu,

That was messed up. I went ahead and tried the deleting alltogether and recreating.. When I recreated and started assigning the reseller preferences, *it kept a bunch of the information from the deleted user*. After recreating, however, it looks like things are back to normal. I had to recreate all of his packages and such for him, but we can't have accounts without quotas on the server - we're not an unlimited disk space/bandwidth company :)

I had submitted a ticket to cpanel support, we'll see what they say on this - that and I don't want it to happen again, obviously.

-David

atjeu
03-05-2003, 05:36 PM
ouch... what version of cpanel are you using?

thedavid
03-05-2003, 05:39 PM
Atjeu,

Version 6 - might consider dropping down to "stable" as that was a bunch of unnecessary work.

-David

atjeu
03-05-2003, 05:50 PM
we havent seen cpanel keep info like that.. thats kind of weird

thedavid
03-05-2003, 05:53 PM
I'll post the response from cpanel support when we get it... But yes, very weird. No problems at all up till this point.

-David