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

Why wazuh-manager service won't start on boot and cant be enabled. (on alma/rocky rhel compatible linux) #2389

Open
TheBigBear opened this issue Aug 29, 2023 · 0 comments

Comments

@TheBigBear
Copy link

Here is the solution once it has happened.

Why wazuh-manager service wont start on boot and can't be enabled.

The same happens on almalinux 9.2 (probably on most RHEL/CENTOS compatible OSes actually - as they are all systemd systems)

It would be so much nicer if we were told to 1st install chckconfig. As it can not be installed later once wazuh-manager with the first SysV scripts has been installed, without manual fixup and intervention.

I am including the actual output and errors that show when one tries to enable it in the hope that others having the issue will find this solution.

systemctl enable --now wazuh-manager
Synchronizing state of wazuh-manager.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable wazuh-manager
Failed to execute /usr/lib/systemd/systemd-sysv-install: No such file or directory
systemctl status wazuh-manager
wazuh-manager.service - Wazuh manager
     Loaded: loaded (/usr/lib/systemd/system/wazuh-manager.service; disabled; preset: disabled)
dnf install chkconfig -y

Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                     1/1
  Installing       : chkconfig-1.20-2.el9.x86_64                                                                                                                                                                                         1/1
Error unpacking rpm package chkconfig-1.20-2.el9.x86_64
  Verifying        : chkconfig-1.20-2.el9.x86_64                                                                                                                                                                                         1/1

Failed:
  chkconfig-1.20-2.el9.x86_64

Error: Transaction failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant