Skip to main content

ModSecurity: collections_remove_stale failed

Comments

7 comments

  • quizknows
    You can always try clearing it out yourself, simply delete ip.dir and ip.pag and restart apache. The files should recreate themselves as soon as rules are processed. Check your permissions on /tmp and /var/cpanel/secdatadir, /tmp should be 1777 and /var/cpanel/secdatadir should be 1770 Out of curiosity do you happen to be using RUID2?
    0
  • MACscr
    No I am not, i am using suphp. I have deleted them and it does appear to have helped. Should we be using logrotate or something like that to maintain these files? If there is a logrotate conf for them, can someone share it with me?
    0
  • quizknows
    I have never had to use logrotate for the files. If you're on a very busy server you could lower the collection timeout to try to help;
    0
  • cPanelMichael
    Hello :) Feel free to update this thread and let us know if lowering the "SecCollectionTimeout" value addressed the issue. Thank you.
    0
  • MACscr
    nope. even set it as low as 600.
    0
  • MACscr
    Still happening. Super frustrating. I dont know of anyone using any type of pruning process for theirs either. Im not sure what i could be doing differently than others.
    0
  • cPanelMichael
    Hello :) Internal case number FB-188769 is open to determine if rotation for /var/cpanel/secdatadir/ip.pag is a viable option. You may want to utilize the following utility offered by Mod_Security in the meantime:
    0

Please sign in to leave a comment.