服务未启动,但没有生成任何错误来显示它们未启动的原因

服务未启动,但没有生成任何错误来显示它们未启动的原因

在 Kali 上成功、一致地安装和运行 OpenVAS 是一场噩梦。我知道有一个 docker 镜像,但仍然如此。

我面临的问题是,ospd-openvas当我手动运行它时,服务没有启动,尽管它在我运行时启动gvm-check-setup,即使它运行完全相同的systemctl start ospd-openvas命令。

___(root__docker-desktop)-[~]
__# systemctl status ospd-openvas
ospd-openvas.service - OpenVAS Wrapper of the Greenbone Vulnerability Management (ospd-openvas)
    Loaded: loaded (/usr/lib/systemd/system/ospd-openvas.service, disabled)
    Active: inactive (dead)

___(root__docker-desktop)-[~]
__# systemctl start ospd-openvas

___(root__docker-desktop)-[~]
__# systemctl status ospd-openvas
ospd-openvas.service - OpenVAS Wrapper of the Greenbone Vulnerability Management (ospd-openvas)
    Loaded: loaded (/usr/lib/systemd/system/ospd-openvas.service, disabled)
    Active: inactive (dead)

但如果我用 运行它gvm-check-setup,那么它工作正常:

Step 6: Checking Greenbone Security Assistant (GSA) ...
Oops, secure memory pool already initialized
        ERROR: Greenbone Security Assistant too old or too new: 21.4.1~dev1
        FIX: Please install Greenbone Security Assistant >= 21.04.
        OK: Greenbone Security Assistant is present in version 21.4.1~dev1.
Step 7: Checking if GVM services are up and running ...
        Starting ospd-openvas service
        Waiting for ospd-openvas service
        OK: ospd-openvas service is active.
        Starting gvmd service
        Waiting for gvmd service
        OK: gvmd service is active.
        Starting greenbone-security-assistant service
        Waiting for greenbone-security-assistant service
        OK: greenbone-security-assistant service is active.
Step 8: Checking few other requirements...
        OK: nmap is present in version 21.4.1~dev1.
        OK: ssh-keygen found, LSC credential generation for GNU/Linux targets is likely to work.
        WARNING: Could not find makensis binary, LSC credential package generation for Microsoft Windows targets will not work.
        SUGGEST: Install nsis.
        OK: xsltproc found.
        WARNING: Your password policy is empty.
        SUGGEST: Edit the /etc/gvm/pwpolicy.conf file to set a password policy.

It seems like your GVM-21.4.1 installation is OK.

___(root__docker-desktop)-[~]
__# systemctl status ospd-openvas
ospd-openvas.service - OpenVAS Wrapper of the Greenbone Vulnerability Management (ospd-openvas)
    Loaded: loaded (/usr/lib/systemd/system/ospd-openvas.service, disabled)
    Active: active (running)

当我尝试启动该服务时,如何实际解决该服务未启动的原因?我已经用 跟踪了整个/var/log/gvm/*文件夹tail -f,并且那里似乎没有生成任何内容。其中也没有任何内容,journalctl -xe因为它说“--没有条目--”。

在此输入图像描述

相关内容