I am have openvas installed on Rhel 8 en since the laatste update this is not working anymore , first i was havig some probleem with the a wrong parameter in /usr/lib/systemd/system/ospd-openvas.service i fiexd en updated again the server en now i get this errors:
ospd-openvas.service - Job that runs the ospd-openvas daemon
Loaded: loaded (/usr/lib/systemd/system/ospd-openvas.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2022-07-20 15:51:58 CEST; 28s ago
Docs: man:gvm
Process: 15623 ExecStart=/opt/atomicorp/bin/ospd-openvas --pid-file /var/run/ospd/ospd-openvas.pid --unix-socket=/var/run/ospd/ospd-openvas.sock --log-file /var/log/gvm/ospd-scanner.log --lock-file-dir /var/run/gvmd/ (code=exited, status=1/FAILURE)
Main PID: 15623 (code=exited, status=1/FAILURE)
journalctl -ex
-- Unit ospd-openvas.service has finished shutting down.
Started Job that runs the ospd-openvas daemon.
-- Subject: Unit ospd-openvas.service has finished start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Unit ospd-openvas.service has finished starting up.
--
-- The start-up result is done.
Traceback (most recent call last):
File "/opt/atomicorp/bin/ospd-openvas", line 5, in <module>
from ospd_openvas.daemon import main
File "/opt/atomicorp/lib/python3.8/site-packages/ospd_openvas/daemon.py", line 33, in <module>
from lxml.etree import tostring, SubElement, Element
ModuleNotFoundError: No module named 'lxml.etree'
ospd-openvas.service: Main process exited, code=exited, status=1/FAILURE
ospd-openvas.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- The unit ospd-openvas.service has entered the 'failed' state with result 'exit-code'.
openvas versions
ospd-openvas version 21.4.4
openvas-scanner 21.4.4
I only installed from the atomic repo. Yes, openvas does not find lxml.etree from python3.8, but it is installed. I see there are 2 python versions pyhton3.6 and python3.8.
[root@openvas ~]# python3.8
Python 3.8.12 (default, Sep 16 2021, 10:46:05)
[GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from lxml import etree
>>>
Hi Eero! Thanks for the answer I tried and it works, previously I tried with the interactive mode … I probably got something wrong and it didn’t work. Thanks again regards