Wazuh manager not enable in AlmaLinux

213 views
Skip to first unread message

Valerio Vinci

unread,
Oct 28, 2023, 1:55:21 PM10/28/23
to Wazuh | Mailing List
Hello,

I've installed a Wazuh Manager in AlmaLinux release 9.2 (Turquoise Kodkod)

when I try to enable the service I got error:

systemctl enable wazuh-manager.service
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

Daniel Sappa

unread,
Oct 29, 2023, 5:42:30 AM10/29/23
to Wazuh | Mailing List
Hi Valerio Vinci

Is the wazuh manager installed correctly?
Can you share version of manager installed?

You can check its status with the following command:

# /var/ossec/bin/wazuh-control status

Valerio Vinci

unread,
Oct 30, 2023, 8:32:34 PM10/30/23
to Wazuh | Mailing List
Hello,

the manager instance is working perfectly and the service are ok as soon as I start it manually:

# /var/ossec/bin/wazuh-control status
wazuh-clusterd not running...
wazuh-modulesd is running...
wazuh-monitord is running...
wazuh-logcollector is running...
wazuh-remoted is running...
wazuh-syscheckd is running...
wazuh-analysisd is running...
wazuh-maild not running...
wazuh-execd is running...
wazuh-db is running...
wazuh-authd is running...
wazuh-agentlessd not running...
wazuh-integratord is running...
wazuh-dbd not running...
wazuh-csyslogd not running...
wazuh-apid is running...

Daniel Sappa

unread,
Oct 31, 2023, 5:50:58 PM10/31/23
to Wazuh | Mailing List
From what has been reported, a file appears to be missing.

Failed to execute /usr/lib/systemd/systemd-sysv-install: No such file or directory

Valerio Vinci

unread,
Nov 1, 2023, 2:09:54 PM11/1/23
to Wazuh | Mailing List
Sure but seems that it's a problem of Wazuh Manager installer.
we hare done the same step to several other OS but never got this issue.

At now we can't migrate the manager to other OS... there's any way to solve this problem?

Daniel Sappa

unread,
Nov 2, 2023, 8:11:13 AM11/2/23
to Wazuh | Mailing List
Recommended operating systems to install the manager are:
https://documentation.wazuh.com/current/installation-guide/wazuh-server/index.html#recommended-operating-systems

However, it is possible to install it on others, as is your case.

That, I insist, beyond the fact that the systemctl service poses some inconvenience, does not mean that this makes its use impossible.

What version of wazuh-manager have you used?

Also, it would be helpful if you could share the procedure you have performed.

Valerio Vinci

unread,
Nov 7, 2023, 6:41:02 AM11/7/23
to Daniel Sappa, Wazuh | Mailing List
Hi,

sure I know.
if I start the Wazuh server manually it works fine.

The only thing that's not working is that the service is not starting on reboot.
I've created a cron that starts it on reboot but I think that there is
a bug during installation.

The Manager version is 4.5.2


Il giorno gio 2 nov 2023 alle ore 13:11 'Daniel Sappa' via Wazuh |
Mailing List <wa...@googlegroups.com> ha scritto:
> --
> You received this message because you are subscribed to a topic in the Google Groups "Wazuh | Mailing List" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/wazuh/anw4jWKjLTw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to wazuh+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/95914437-b863-4e94-afd7-7a6e9b804148n%40googlegroups.com.



--
Cordiali Saluti
Vinci Valerio
Cel. 3339979972
Message has been deleted

Daniel Sappa

unread,
Nov 9, 2023, 1:47:52 PM11/9/23
to Wazuh | Mailing List
The error message you're encountering indicates that the `systemd-sysv-install` tool is not present on your system. This tool is used to enable SysV init scripts as systemd services. Since your system is using `systemd` as the init system, this issue can occur.

Here are steps to resolve this problem:

1. Check Installed Packages:
   Verify whether the `systemd-sysv-install` tool is installed on your system. You can do this by running:

   # rpm -q initscripts

   If it's not installed, you should see an output like "package initscripts is not installed." In this case, proceed to the next step.

2. Install `initscripts` Package:
   You can install the `initscripts` package to get the missing `systemd-sysv-install` tool. Use the following command to install the package:

  $ sudo dnf install initscripts

   If you encounter any issues installing the package, make sure your system's package repositories are configured correctly.

3. Enable Wazuh Manager Service:
   After installing the `initscripts` package, try enabling the Wazuh Manager service again:

   $ sudo systemctl enable wazuh-manager.service

   This should now work without errors.

4. Start the Wazuh Manager:
   Once the service is enabled, you can start the Wazuh Manager:

   $ sudo systemctl start wazuh-manager.service

   Check the status of the service to ensure it's running without errors:

   $ sudo systemctl status wazuh-manager.service
 
   If you encounter any issues at this stage, review the service logs for more specific error messages:

   $ sudo journalctl -u wazuh-manager.service

By installing the `initscripts` package and then enabling the Wazuh Manager service, you should be able to get the service up and running without encountering the "No such file or directory" error.
Reply all
Reply to author
Forward
0 new messages