Open alternativc opened 5 months ago
Hi, Do you have any idea about the duration before the issue occurs? I'm getting more and more issues with the redis backend, it's in my to-do to replace it with something else, but no ETA for now.
It's fairly non-deterministic but somewhere between 4<->12h. I was hoping that DEBUG level logs would give more info as to what is actually being searched for so I could inspect what is happening in both containers. Let me know if I can help in anyway
I'll do some tests on my side too, redis is the root cause for sure, just don't know how.
On my end: I've added a volume mount to the redis container, for persistance (if that was the cause?). I'll update the ticket with those findings if they will be relevant.
you can write root cause this problem, i have same issue.
Describe the bug
This is a simple setup: falco(systemd) -> falcosidekick(docker) -> falcosidekick-ui(docker) + redis(docker). We run falco on all machines while the sidekick/ui/redis stack lives inside a docker swarm stack on the same host.
Now this setup works, we can see events in the UI, however after a certain time interval the events disappear.
These are the logs from facosidekick-ui container (debug level logs):
These are the redis logs (from the time the errors started:
Now I think something happens in the redis container to invalidate the index. If I restart falcosidekick-ui container then the events appear again.
I have tried manipulating the
since
parameter, with the same result.How to reproduce it
Run the following docker-compose stack, emit some test events and wait. Please note that this is not a production ready stack, deploy section omitted:
Expected behaviour
Falco events persist longer than X hours, or with TTL definition.
Screenshots
After X hours:
After UI container restart:
Environment
falcosidekick: /app $ ./falcosidekick --version GitVersion: bce6b79 GitCommit: bce6b79ca5e0bc130649a4dae5d31ce7e33e6cae GitTreeState: clean BuildDate: '2024-06-04T08:44:13Z' GoVersion: go1.22.0 Compiler: gc Platform: linux/amd64
falcosidekick-ui: /app $ ./falcosidekick-ui -v GitVersion: 01947af GitCommit: 01947afe79923a4b35c027e737af193ca8e5b18e GitTreeState: clean BuildDate: '2024-04-30T14:11:51Z' GoVersion: go1.20.14 Compiler: gc Platform: linux/amd64
Cloud provider or hardware configuration: Hetzner bare-metal
OS: PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)"
Kernel: Linux worker-0 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux
Installation method: Docker swarm
Additional context n/a