Error :
/scripts/purge_modsec_log
Cpanel::Exception:
atabase::Error/(XID uzrgjm) The system received an error from the “SQLite” database “/var/cpanel/modsec/modsec.sqlite”: SQLITE_CORRUPT (database disk image is malformed)
at /usr/local/cpanel/Cpanel/DBI.pm line 200.
Cpanel:
BI::_create_exception(Cpanel:
BI::SQLite::db=HASH(0x1164998), "DBD::SQLite::db do failed: database disk image is malformed", undef) called at /usr/local/cpanel/Cpanel/DBI.pm line 188
Cpanel:
BI::_error_handler("DBD::SQLite::db do failed: database disk image is malformed", Cpanel:
BI::SQLite::db=HASH(0x1164998), undef) called at /usr/local/cpanel/Cpanel/ModSecurity/DB.pm line 321
Cpanel::ModSecurity:
B:
urge_stale_records_from_database(1) called at /scripts/purge_modsec_log line 41
scripts:
urge_modsec_log::run() called at /scripts/purge_modsec_log line 27
Solution :
/scripts/purge_modsec_log
Cpanel::Exception:
at /usr/local/cpanel/Cpanel/DBI.pm line 200.
Cpanel:
Cpanel:
Cpanel::ModSecurity:
scripts:
Solution :
/scripts/restartsrv_tailwatchd --stop
mv /var/cpanel/modsec/modsec.sqlite /var/cpanel/modsec/modsec.sqlite.old
/usr/local/cpanel/scripts/setup_modsec_db
/scripts/restartsrv_tailwatchd --start