cPanel

/var/cpanel/dnsadmin/sock is still not a local socket after trying to restart dnsadmin error fix

Today noticed, one of our server DNS editor extremely slow, and can not add Addon domain in the cPanel interface. The error log contanin the following rows:

/var/cpanel/dnsadmin/sock is still not a local socket after trying to restart dnsadmin

To fix run this command:

ps x | grep '/usr/local/cpanel/scripts/restartsrv_dnsadmin' | grep -v grep | awk '{print $1}' | xargs --no-run-if-empty kill -9

 

How to fix an incorrectly reported disk quota on a cPanel system

If you have a user that is getting over disk quota error message, but they claim to not have that much in use, they may have their disk quota being reporting incorrectly.

The first thing you should do however, is check to see if this is indeed the case.  If you run the following command, you can get a listing of every file on the server that is owned by their username.

find / -user 'username' | du -sh

Domain example.com has exceeded the max defers and failures per hour (10/10 (52%)) allowed. Message discarded.

I believe that I have fixed the problem on my own, but it may still be a bug with cPanel.

I found the following file:

/var/cpanel/email_send_limits/max_deferfail_example.com

Deleting this file fixed the problem immediately. I'm guessing that the system should have deleted (or updated?) this file at some point, but didn't.