Troubleshoot¶
This guide provides solutions to common issues you may encounter when operating the Falco charms.
SSH authentication failures¶
If Falco cannot access a custom configuration repository:
Verify the SSH key is correctly added to the Git repository
Check the repository URL format is correct (must start with
git+ssh://)Ensure the username in the URL matches your Git provider (usually
gitfor GitHub/GitLab providers)Test SSH access manually:
ssh -T git@github.com(adjust for your provider)
Custom rules not loading¶
If custom rules from a Git repository are not being applied:
Verify the repository structure has
rules.d/andconfig.override.d/directoriesCheck that YAML files in these directories are valid Falco configuration
Review Falco logs for syntax errors:
juju ssh falco/0 -- sudo journalctl -u falco -n 100Verify the repository was cloned:
juju ssh falco/0 -- ls -la /root/custom-falco-config-repository
Falco service not starting¶
If the Falco service fails to start:
Check the unit status:
juju status falcoReview service logs:
juju ssh falco/0 -- sudo journalctl -u falco -n 100Verify kernel module dependencies are met
Check configuration file syntax
Falcosidekick not receiving alerts¶
If Falcosidekick is not receiving alerts from Falco:
Verify the
http-endpointrelation is established:juju status --relationsCheck Falco is sending alerts:
juju ssh falco/0 -- sudo journalctl -u falcoCheck Falcosidekick logs:
juju debug-log --include=falcosidekick-k8sVerify network connectivity between Falco and Falcosidekick
Alerts not appearing in Loki¶
If alerts are not reaching Loki:
Verify all integration statuses:
juju status --relationsCheck Falcosidekick logs:
juju debug-log --include=falcosidekick-k8sCheck OpenTelemetry Collector logs:
juju debug-log --include=opentelemetry-collector-k8sEnsure the Loki service is running:
juju status -m cos lokiVerify cross-model integration is working:
juju consumed-offers
TLS certificate issues¶
If you encounter TLS certificate problems:
Check certificate status:
juju status --relationsVerify certificate charm logs:
juju debug-log --include=self-signed-certificatesorjuju debug-log --include=legoCheck certificate files are present in the Falcosidekick container
For Lego certificates, verify domain DNS is correctly configured
Connection refused errors¶
If you see connection refused errors:
Verify network connectivity between applications
Check that endpoints are accessible
Review firewall rules if running in a restricted environment
Verify the service is listening on the expected port