-
Notifications
You must be signed in to change notification settings - Fork 876
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
Centos 7.7: Falco Will Only Start After Multiple Restarts #1347
Comments
Hey @kylegoch Could you let me know if this problem has been fixed by 0.25.0, please? Thanks in advance! |
@leogr I updated to 0.25.0 and I am still seeing the error. For further explanation, Falco is installed via yum using Ansible, on to an AWS AMI. Falco is then stopped (so it doesnt record through the AMI build, then enabled to start on boot). And same with 0.25.0, when I start an EC2 Instance with the AMI, Falco has the same error and is not started after launching the instance. But if i restart Falco, it works just fine. Only difference between the first report of the issue and the instance I just used is slightly newer kernel: |
Hey @kylegoch Could you attach the new log message, please? Also, some another questions manually running
(we changed a bit the log message in the 0.25.0). I just want to understand if the problem is here or elsewhere. BTW, I'm reopening the issue since it's not yet solved. Thanks in advance. |
Here is the new Log message on 0.25.0:
Running And just to match the opening comment. Here is the system info from Falco
And Falco version:
And here are the logs after running
|
Thank you! Although manually running
At least we know what is happening though we don't know why 😄 At this point, I suppose there's something else that does not allow it to load the kernel module immediately after the boot. |
After working with @leogr we were able to find the cause of this issue. One was the #1366 but the issue still persisted. We were building an AWS AMI with Packer and installing Falco during that build. We were also updating the image during that time too. As a result a kernel update was usually in those updates. However that was never an issue before because the instance would be stopped and then would be started as a new instance with the image. But installing Falco after running kernel updates was causing some weirdness. So we continued our image build process with Packer, but added a step to restart the instance Packer uses, then installed Falco. After that Falco would start on first boot as expected. |
Describe the bug
After installing Falco and the kernel headers, Falco will only start after running
systemctl restart falco
several times. The log messages when Falco fails are below:Eventually after running
systemctl restart falco
several times (usually once or twice), Falco will start right up and do it's thing:How to reproduce it
Install Falco 0.24 per Install Docs on Centos 7.7 with kernel 3.10.0-1127.18.2.el7.x86_64
Start Falco with
systemctl start falco
Falco will fail to start with error:
Runtime error: error opening device /dev/falco0. Make sure you have root credentials and that the falco module is loaded.. Exiting.
Run
systemctl restart falco
until Falco starts.Expected behaviour
Ideally Falco should start up on the first
systemctl start falco
or on boot whenenabled
, rather than manual restarts.Environment
Additional context
Posted originally in the #Falco channel in Kubernetes Slack, @leogr suggested I open an issue about this. He believed it might be related to these lines:
https://github.com/falcosecurity/falco/blob/master/scripts/rpm/falco#L55-L58
The text was updated successfully, but these errors were encountered: