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

[VM] KubeArmor failing on Amazon Linux 2 #919

Closed
rohitrishim opened this issue Sep 29, 2022 · 10 comments
Closed

[VM] KubeArmor failing on Amazon Linux 2 #919

rohitrishim opened this issue Sep 29, 2022 · 10 comments
Labels
bug Something isn't working

Comments

@rohitrishim
Copy link

Bug Report

Not able to get KubeArmor running on Amazon Linux 2 kernal version 5.10

General Information

  • Environment description: Amazon Linux 2
  • Kernal version: 5.10

These are the problems:

issue: KubeArmor not running

[ec2-user@ip-172-31-11-103 ~]$ systemctl status kubearmor.service
● kubearmor.service - KubeArmor
   Loaded: loaded (/usr/lib/systemd/system/kubearmor.service; enabled; vendor preset: disabled)
   Active: inactive (dead)

Sep 27 10:05:29 ip-172-31-11-103.us-west-1.compute.internal kubearmor[21203]: github.com/kubearmor/KubeArmor/KubeArmor/core.KubeArmor
Sep 27 10:05:29 ip-172-31-11-103.us-west-1.compute.internal kubearmor[21203]: /home/runner/work/KubeArmor/KubeArmor/KubeArmor/core/kubeArmor.go:419
Sep 27 10:05:29 ip-172-31-11-103.us-west-1.compute.internal kubearmor[21203]: main.main
Sep 27 10:05:29 ip-172-31-11-103.us-west-1.compute.internal kubearmor[21203]: /home/runner/work/KubeArmor/KubeArmor/KubeArmor/main.go:44
Sep 27 10:05:29 ip-172-31-11-103.us-west-1.compute.internal kubearmor[21203]: runtime.main
Sep 27 10:05:29 ip-172-31-11-103.us-west-1.compute.internal kubearmor[21203]: /opt/hostedtoolcache/go/1.18.5/x64/src/runtime/proc.go:250
Sep 27 10:05:29 ip-172-31-11-103.us-west-1.compute.internal kubearmor[21203]: 2022-09-27 10:05:29.823838        INFO        Stopped KubeArmor Monitor
Sep 27 10:05:29 ip-172-31-11-103.us-west-1.compute.internal kubearmor[21203]: 2022-09-27 10:05:29.823846        INFO        Terminated KubeArmor
Sep 27 10:05:31 ip-172-31-11-103.us-west-1.compute.internal kubearmor[21203]: 2022-09-27 10:05:31.824120        INFO        Stopped KubeArmor Logger
Sep 27 10:05:31 ip-172-31-11-103.us-west-1.compute.internal kubearmor[21203]: 2022-09-27 10:05:31.824181        INFO        Waiting for routine terminations

To Reproduce

  1. Followed Step : https://help.accuknox.com/open-source/kubearmor/al2/al2/
  2. Used latest release i.e., kubearmor_0.6.0_linux-amd64.rpm
@rohitrishim rohitrishim added the bug Something isn't working label Sep 29, 2022
@HariVamsiK
Copy link
Contributor

Hey @Ankurk99 Please assign this to me. I'll check it out.

@HariVamsiK
Copy link
Contributor

Hey @nyrahul i was able to solve this, i ran it on my AWS instance and it worked. The daemon has to be reloaded, i checked the logs. Its better that we add a troubleshooting guide for AWS in respective README.md file. I'll add it to the README and raise the PR.

@HariVamsiK
Copy link
Contributor

1
2

@Ankurk99
Copy link
Member

@HariVamsiK How were you able to get this resolved? By running systemctl daemon-reload?
That's already a part of KubeArmor documentation here under "For distributions other than Ubuntu/Debian": https://github.com/kubearmor/KubeArmor/blob/main/getting-started/kubearmor_vm.md

@HariVamsiK
Copy link
Contributor

I resolved it by installing previous version of kubearmor first, removing it and installing a new version, doing a daemon reload.

@Ankurk99
Copy link
Member

As per #1016 (comment), this issue is fixed. @rohitrishim Can you please confirm this?

@HariVamsiK
Copy link
Contributor

Its working for latest version of kubearmor(v 0.7.2) on Amazon Linux 2 Kernel Version 5.10

@rohitrishim
Copy link
Author

@Ankurk99 yes, will check and confirm with you

@rohitrishim
Copy link
Author

Hey @Ankurk99 I have checked kubearmor on Amazon Linux 2 Kernel Version 5.10 it's working fine now, I think we can close this issue.
kube aws linux vm
cc: @ravkishu

@Ankurk99
Copy link
Member

@rohitrishim Thanks for the confirmation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants