Webmail was rejecting logins and while checking cpanel error logs, got the following.
=========
cphulkd rejected registration attempt for webmaild with: 400 Unable to connect to database backend: Failed to connect to mysql db: cphulkd
========
The issue was with cphulk in the server. While trying to check cphulk via WHM, it showed the following warning.
========
Mysql is currently disabled. To enable mysql go to: Service Manager Once there check Enable and Monitor for mysql. Then at the bottom of the page click save.
========
Solution :
1. Try to uncheck > save > re-check > save mysql service from WHM >> Service Configuration >> Service Manager.
If same error exists then repair cPHulk database
2. Use following command
# mysqlcheck -c cphulkd
# mysqlcheck -r cphulkd
3. If still problem persists, just execute the below command
# /usr/local/cpanel/bin/hulkdsetup
=========
cphulkd rejected registration attempt for webmaild with: 400 Unable to connect to database backend: Failed to connect to mysql db: cphulkd
========
The issue was with cphulk in the server. While trying to check cphulk via WHM, it showed the following warning.
========
Mysql is currently disabled. To enable mysql go to: Service Manager Once there check Enable and Monitor for mysql. Then at the bottom of the page click save.
========
Solution :
1. Try to uncheck > save > re-check > save mysql service from WHM >> Service Configuration >> Service Manager.
If same error exists then repair cPHulk database
2. Use following command
# mysqlcheck -c cphulkd
# mysqlcheck -r cphulkd
3. If still problem persists, just execute the below command
# /usr/local/cpanel/bin/hulkdsetup