Unable to save changes in Zone file.

bryanabhay

Active Member
Aug 14, 2006
30
0
156
Hello :) ,

today i found one tricky problem, If i login to whm using Reseller User name & password

& edit any of the DNS zone file then i would not able to save the changes, I even did not

get any error.

But if i again edit the same zone file i did not find last made changes.

any one knows the reason behind this .....

Please update me...

Bryanabhay
 

brendanrtg

Well-Known Member
Oct 4, 2006
311
0
166
When we last had this problem, it was due to the reseller's files under /var/cpanel getting too HUGE, over 100MB.

You should try to clean those and reduce the size.

The files you should look for are:

38M -rw-r--r-- 1 root root 38M Oct 3 10:54 reseller-limits
38M -rw-r--r-- 1 root root 38M Oct 3 10:55 reseller-number-accounts
45M -rw-r--r-- 1 root root 44M Oct 3 10:56 resellers-nameservers
101M -rw-r--r-- 1 root root 101M Oct 3 10:53 reseller-resource-limits

There's 2 more but I cant remember it off hand.
 
Last edited:

brendanrtg

Well-Known Member
Oct 4, 2006
311
0
166
OK, I login to our server and got the info, I am not sure if its related to your problems but when we encountered the same problem as you, we did the following and it works later on:

As root, DO:

# ls -lshSr /var/cpanel

This command should lists all your resellers files and you should look for those above 100mb in size.

CP (copy) the original filename to reseller-something.old

# service httpd stop or whatever command you use to shut down apache.

Then of ALL the files you CP to something.old,

Hence, once done CPing, you should see the following:

resellers-nameservers
reseller-limits
reseller-resource-overselling
reseller-number-accounts
resellers-nameservers
reseller-resource-limits

will become:

reseller-resource-accounts.old
reseller-limits.old
reseller-resource-overselling.old
reseller-number-accounts.old
resellers-nameservers.old
reseller-resource-limits.old

# cat /var/cpanel/reseller-limits-old | sort | uniq > var/cpanel/reseller-limits

This caused only one instance of each reseller definition to be output to the given resellerfile. These files gets huge when duplicate entries are added to it.

Hope this helps.