Skip to main content

ModSecurity™ Tools The following exception has occurred: API failure

Comments

7 comments

  • cPanelMichael
    Already tried: root@web [~]# /usr/local/cpanel/scripts/setup_modsec_db info [setup_modsec_db] Initialized ModSecurity" database. root@web [~]#

    Hello, Please let us know if the following command helps:
    /usr/local/cpanel/bin/modsecpass
    Thank you.
    0
  • JerryB
    Yes, tried it, but did not fix the problem. Running WHM 56.0 (build 17)
    0
  • JerryB
    Upgraded our test system to: CLOUDLINUX 6.8 x86_64 VMware WHM 60.0 (build 26) Same error. Error: The following exception has occurred: API failure: (XID XXXX) Database Connect Error: Access denied for user 'modsec'@'web02.XXXXXXXXXX.XXX(using password: YES)
    0
  • cPanelMichael
    Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • JerryB
    Support Request ID is: 8053645
    0
  • JerryB
    fixed by cpanel support.
    ==== update mysql.user set Host='xx.XXXXX.xx' WHERE User='modsec'; FLUSH PRIVILEGES; use modsec; grant all on modsec.* to modsec@xx.XXXXX.xx; ====
    0
  • cPanelMichael
    I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.