-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Failed to retrieve the next key. #15
Comments
Interesting, I've had some large modsec db files before but haven't run into this before unless the db files are corrupted. Are you able to perform any other operations on the database or does it result in the same error? |
@nitriques this is an exception or that is happening consistently with different databases? |
@nitriques I recommend creating a copy of the db that you can reproduce issues with. Try running the shrink operation (
Did you test with latest ModSecurity master branch? |
@bostrt Thanks for the help I just copied the existing ip.pag file. Then:
-D yeilds no output.
No, I can't. I have
And from what I can tell from this page it is running 2.9 |
@nitriques I think you are running into an issue with how modsec-sdbm-util picks up files by name:
Note that I copied in the Basically, I'm curious if you can shrink ( Testing with the latest ModSecurity would probably be best next step, but sounds like that might not be an option. FYI, latest version is ModSecurity 2.9.2: https://github.com/SpiderLabs/ModSecurity/releases/tag/v2.9.2 |
I still can't find how to get the version I am running :(
Still nothing
And then,
Should I run |
With
|
You should see a notice in your main Apache log stating the version. Something like this:
Yours will look a bit different b/c above is from Apache 2.4 and you are using 2.2. So I'm not sure of why exactly is causing the
This is promising though and potentially a workaround. You can try shrinking the database ( |
Thanks for your help @bostrt
I did, and could not find anything :( Thanks for the idea about the cron job. |
I had the 6.1Gb file and tried to shrink it with this tools.
I was able to process 1250 records and failed with:
I then move the 6.1Gb file and let mod_sec recreate the file. But I still get the same error when running either -x or -k, on the newly created file.
I tried this on the lastest master branch.
The text was updated successfully, but these errors were encountered: