How To Fix Cphulkd Marked as Crashed

How To Fix Cphulkd Marked as Crashed

⚠️ Cphulkd Marked as Crashed | Fix Guide

Sometimes the cphulk database or one of its tables may crash.
When this happens:

  • The MySQL error log and the Cphulkd logs start consuming more disk space.

  • You’ll also receive repeated cPanel notifications regarding checkmysql.


🔍 How to Detect the Crash

You’ll notice errors in the following log files:

📂 /usr/local/cpanel/logs/cphulkd_errors.log
📂 /var/lib/mysql/$hostname.err
📂 /var/cpanel/user_notifications/root/history/

Example Error:

warn [cphulkd] 13650 DBD::mysql::db do failed: Table ‘./cphulkd/login_track’ is marked as crashed and should be repaired at /usr/local/cpanel/Cpanel/Hulkd.pm line 435, <$client_socket> line 3. Cpanel::Hulkd::_write_log(Cpanel::Hulkd=HASH(0x86d85b8), “errlog”, “warn”, “DBD::mysql::db do failed: Table ‘./cphulkd/login_track’ is ma”…, Cpanel::DBI::Mysql::db=HASH(0x8dd8000), undef) called at /usr/local/cpanel/Cpanel/Hulkd.pm line 465 Cpanel::Hulkd::warn(Cpanel::Hulkd=HASH(0x86d85b8), “DBD::mysql::db do failed: Table ‘./cphulkd/login_track’ is ma”…, Cpanel::DBI::Mysql::db=HASH(0x8dd8000), undef) called at /usr/local/cpanel/Cpanel/Hulkd.pm line 406

🔧 Recommended Fix

👉 If your installation is still using MySQL for cPhulk, it’s recommended to convert to SQLite to prevent such crashes.

  • This usually happens automatically if you upgrade to cPanel v66 or higher.

If upgrading is not an option, then you’ll need to rebuild the cPhulkd database.


🛠 Commands to Rebuild cPhulkd

Run the following command to rebuild the database:

# /usr/local/cpanel/bin/hulkdsetup --force 
  • The --force option updates the schema, even if that requires dropping tables.

Then, re-enable cPhulk PAM control with:

# /usr/local/cpanel/bin/cphulk_pam_ctl --enable

✅ Conclusion

If cphulkd is marked as crashed, rebuilding the database usually resolves the issue.

  • On newer cPanel versions, switching to SQLite prevents recurring crashes.

  • On older systems, rebuilding with --force is the way to go.

✨ With these steps, you can restore cPhulkd functionality and stop those endless log entries and notifications.

Share

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0