-
Notifications
You must be signed in to change notification settings - Fork 22
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
[BUG] wazuh-indexer
service takes ownership of /run
#284
Comments
With regards to the [root@rhel8 ~]# cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.10 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.10"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.10 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.10
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.10"
[root@rhel8 ~]# ls -lsah /var/ | grep run
0 lrwxrwxrwx. 1 root root 11 Dec 19 2023 lock -> ../run/lock
0 lrwxrwxrwx. 1 root root 6 Dec 19 2023 run -> ../run [root@alma ~]# cat /etc/os-release
NAME="AlmaLinux"
VERSION="8.10 (Cerulean Leopard)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.10"
PLATFORM_ID="platform:el8"
PRETTY_NAME="AlmaLinux 8.10 (Cerulean Leopard)"
ANSI_COLOR="0;34"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:almalinux:almalinux:8::baseos"
HOME_URL="https://almalinux.org/"
DOCUMENTATION_URL="https://wiki.almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"
ALMALINUX_MANTISBT_PROJECT="AlmaLinux-8"
ALMALINUX_MANTISBT_PROJECT_VERSION="8.10"
REDHAT_SUPPORT_PRODUCT="AlmaLinux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.10"
SUPPORT_END=2029-06-01
[root@alma ~]# ls -lsah /var | grep run
0 lrwxrwxrwx 1 root root 11 Jun 27 23:10 lock -> ../run/lock
0 lrwxrwxrwx 1 root root 6 Jun 27 23:10 run -> ../run I'm still trying to pin the ownership issue, which seems to only happen on |
We decided to use Latest build workflow: https://github.com/wazuh/wazuh-indexer/actions/runs/9759538401 |
Description
Related issue: wazuh/wazuh-dashboard#222
During the testing of
v4.9.0-alpha1
, it was noticed that thewazuh-indexer
service takes the ownership of the/run
root folder, impeding the installation of Wazuh Dashboard (if it is installed in the same machine).During a brief investigation of the issue, we noticed that the storage of the
wazuh-indexer
PID file is inconsistent, storing it on/run/wazuh-indexer
and/var/run/wazuh-indexer
. The standard nowadays is to use/run
, instead of/var/run
.However, this does not explain the ownership change on the
/run
folder. This may be caused by the_localstatedir
variable being undefined onwazuh-indexer.rpm.spec
.wazuh-indexer/distribution/packages/src/rpm/wazuh-indexer.rpm.spec
Line 29 in 1998088
Additional info
References:
The text was updated successfully, but these errors were encountered: