Skip to content
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

swag-crowdsec is not activating sqlite WAL mode #802

Closed
GuiPoM opened this issue Dec 18, 2023 · 2 comments
Closed

swag-crowdsec is not activating sqlite WAL mode #802

GuiPoM opened this issue Dec 18, 2023 · 2 comments

Comments

@GuiPoM
Copy link

GuiPoM commented Dec 18, 2023

Hello,

It seems that having sqlite in WAL mode is a must when using community-blocklist, which is adviced to be used with swag-crowdsec.
But the default configuration is not activating this option and triggers a warning:

time="18-12-2023 20:16:27" level=warning msg="sqlite is not using WAL mode, LAPI might become unresponsive when inserting the community blocklist"
time="18-12-2023 20:16:28" level=info msg="crowdsecurity/community-blocklist : added 15000 entries, deleted 11060 entries (alert:2)"

/etc/crowdsec/config.yaml, section db_config should be updated with use_wal: true. Maybe it should be configurable, if needed. But default config seems not to be the one which is advised in combination with community-blocklist, to my understanding.

Thanks

@LaurenceJJones
Copy link

This is not controllable by swag, this is purely just CrowdSec configuration. In our latest container you can specify the container environment

USE_WAL 	false 	Enable Write-Ahead Logging with SQLite

https://hub.docker.com/r/crowdsecurity/crowdsec

@GuiPoM
Copy link
Author

GuiPoM commented Dec 27, 2023

Hello @LaurenceJJones ,

Thanks for your answer and sorry for the misunderstanding.
I was not aware of that env property, and I will make good use of it !

@GuiPoM GuiPoM closed this as completed Dec 27, 2023
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants