modsec.sqlite database corrupt error

HostStud

Administrator
Staff member
#1
Error :

/scripts/purge_modsec_log
Cpanel::Exception::Database::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::DBI::_create_exception(Cpanel::DBI::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::DBI::_error_handler("DBD::SQLite::db do failed: database disk image is malformed", Cpanel::DBI::SQLite::db=HASH(0x1164998), undef) called at /usr/local/cpanel/Cpanel/ModSecurity/DB.pm line 321
Cpanel::ModSecurity::DB::purge_stale_records_from_database(1) called at /scripts/purge_modsec_log line 41
scripts::purge_modsec_log::run() called at /scripts/purge_modsec_log line 27

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
 
Top