How to reset data and etc directories
This is often useful if you encounter errors from crowdsec-setup. Just do the following:
- Stop the
crowdsec.serviceservice (if it's running and don't forget thecrowdsec-firewall-bouncer.service) withsystemctl stop crowdsec.service. - Remove the directories:
rm -rf /etc/crowdsec /var/lib/crowdsec(adjust the paths toservices.crowdsec.settings.config.config_paths.config_dirandservices.crowdsec.settings.config.config_paths.data_dir) - Recreate the directories:
systemd-tmpfiles --create - Start the
crowdsec.serviceagain:systemctl start crowdsec.service.
If any errors still persist, feel free to create an issue.