Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED SQlite mod_security corrupt

Discussion in 'Database Discussion' started by urgido, May 12, 2018.

Tags:
  1. urgido

    urgido Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    129
    Likes Received:
    9
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    I am experimentig and issue with SQLite of mod_security. Here is my log:


    [
    as root /scripts/purge_modsec_log:

    Any help?
    Thanks
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,504
    Likes Received:
    2,179
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Can you let us know the size of the /var/cpanel/modsec/modsec.sqlite file? EX:

    Code:
    du -sh /var/cpanel/modsec/modsec.sqlite
    Also, can you confirm if you made any manual changes to this file in the past, or if it's ever been restored or recovered?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. urgido

    urgido Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    129
    Likes Received:
    9
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Well, one month ago I had disk issues that generated problems with all my InnoDB databases.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,504
    Likes Received:
    2,179
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @urgido,

    It's possible the issue with your drive also lead to the corruption of the /var/cpanel/modsec/modsec.sqlite file. You can use the following commands to generate a new instance of this file:

    Code:
    /scripts/restartsrv_tailwatchd --stop
    mv /var/cpanel/modsec/modsec.sqlite /var/cpanel/modsec/modsec.sqlite.old1
    /usr/local/cpanel/scripts/setup_modsec_db
    /scripts/restartsrv_tailwatchd --start
    Let us know if this helps.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. urgido

    urgido Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    129
    Likes Received:
    9
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Solved.
    Thanks a lot.


    Regards
     
    cPanelMichael likes this.
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,504
    Likes Received:
    2,179
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm glad to see that helped. I've marked this thread as solved.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Nord Stage

    Nord Stage Registered

    Joined:
    Apr 22, 2019
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Venezuela
    cPanel Access Level:
    Reseller Owner
    Please
    My cpanel gives the following message

    The system received an error from the “SQLite” database “/var/cpanel/bandwidth/onletkrp.sqlite”: SQLITE_CORRUPT (database disk image is malformed)

    Please
    Please, what solution can I follow?
    Thank you
     

    Attached Files:

  8. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,504
    Likes Received:
    2,179
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Nord Stage,

    Your cPanel Forums profile shows your access level as Reseller Owner. As a reseller, you'll want to report that error message to your reseller hosting provider so they can move the corrupted /var/cpanel/bandwidth/username.sqlite file to another location if necessary.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice