21.4.3:Could not connect to Scanner

版本21.4.3,将greenbone-security-assistant.service将127.0.0.1改成了0.0.0.0,其他配置默认,最后执行如图,可能什么原因

Hi @coco,

This thread has some things to try: First scan failed

1 Like

1、界面检查scanner中OpenVAS Default 状态为Service unavailable

2、后台查看如下图

Thanks @coco,

Which operating system are you using and how did you install openVAS/Greenbone?

1 Like

在linux中安装kali docker,然后使用命令安装GVM,使用gvm-start启动

A couple of more things to look at that might be similar:

The scripts gvm-start nor the gvm-check-setup are not developed by Greenbone but hopefully some of the info in those threads can help.

1 Like

不管根目录还是 root 帐户的主文件夹,启动gvm-start或者gvm-check-setup,问题现象依旧存在

──(root💀eccfb4b71dde)-[~]
└─# gvm-start
[>] Please wait for the GVM services to start.
[>]
[>] You might need to refresh your browser once it opens.
[>]
[>] Web UI (Greenbone Security Assistant): https://127.0.0.1:9392

● greenbone-security-assistant.service - Greenbone Security Assistant (gsad)
Loaded: loaded (/lib/systemd/system/greenbone-security-assistant.service; disabled; vendor preset: disabled)
Active: active (running) since Wed 2021-12-29 08:30:35 CST; 10ms ago
Docs: man:gsad(8)
https://www.greenbone.net
Process: 1189 ExecStart=/usr/sbin/gsad --listen=0.0.0.0 --port=9392 (code=exited, status=0/SUCCESS)
Main PID: 1190 (gsad)
Tasks: 3 (limit: 692)
Memory: 2.0M
CPU: 19ms
CGroup: /system.slice/greenbone-security-assistant.service
├─1190 /usr/sbin/gsad --listen=0.0.0.0 --port=9392
└─1191 /usr/sbin/gsad --listen=0.0.0.0 --port=9392

Dec 29 08:30:35 eccfb4b71dde systemd[1]: Starting Greenbone Security Assistant (gsad)…
Dec 29 08:30:35 eccfb4b71dde gsad[1189]: Oops, secure memory pool already initialized
Dec 29 08:30:35 eccfb4b71dde systemd[1]: Started Greenbone Security Assistant (gsad).

● gvmd.service - Greenbone Vulnerability Manager daemon (gvmd)
Loaded: loaded (/lib/systemd/system/gvmd.service; disabled; vendor preset: disabled)
Active: active (running) since Wed 2021-12-29 08:30:30 CST; 5s ago
Docs: man:gvmd(8)
Process: 1162 ExecStart=/usr/sbin/gvmd --osp-vt-update=/run/ospd/ospd.sock --listen-group=_gvm (code=exited, status=0/SUCCESS)
Main PID: 1164 (gvmd)
Tasks: 1 (limit: 692)
Memory: 100.4M
CPU: 249ms
CGroup: /system.slice/gvmd.service
└─1164 “gvmd: Waiting for incoming connections” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “”

Dec 29 08:30:29 eccfb4b71dde systemd[1]: Starting Greenbone Vulnerability Manager daemon (gvmd)…
Dec 29 08:30:29 eccfb4b71dde systemd[1]: gvmd.service: Can’t open PID file /run/gvm/gvmd.pid (yet?) after start: Operation not permitted
Dec 29 08:30:30 eccfb4b71dde systemd[1]: Started Greenbone Vulnerability Manager daemon (gvmd).

● ospd-openvas.service - OSPd Wrapper for the OpenVAS Scanner (ospd-openvas)
Loaded: loaded (/lib/systemd/system/ospd-openvas.service; disabled; vendor preset: disabled)
Active: active (running) since Wed 2021-12-29 08:30:29 CST; 5s ago
Docs: man:ospd-openvas(8)
man:openvas(8)
Process: 1154 ExecStart=/usr/bin/ospd-openvas --config /etc/gvm/ospd-openvas.conf --log-config /etc/gvm/ospd-logging.conf --unix-socket /run/ospd/ospd.sock --pid-file /run/ospd/ospd-openvas.pid --log-file /var/log/gvm/ospd-openvas.log --lock-file-dir /var/lib/openvas (code=exited, status=0/SUCCESS)
Main PID: 1156 (ospd-openvas)
Tasks: 4 (limit: 692)
Memory: 22.5M
CPU: 177ms
CGroup: /system.slice/ospd-openvas.service
├─1156 /usr/bin/python3 /usr/bin/ospd-openvas --config /etc/gvm/ospd-openvas.conf --log-config /etc/gvm/ospd-logging.conf --unix-socket /run/ospd/ospd.sock --pid-file /run/ospd/ospd-openvas.pid --log-file /var/log/gvm/ospd-openvas.log --lock-file-dir /var/lib/openvas
└─1158 /usr/bin/python3 /usr/bin/ospd-openvas --config /etc/gvm/ospd-openvas.conf --log-config /etc/gvm/ospd-logging.conf --unix-socket /run/ospd/ospd.sock --pid-file /run/ospd/ospd-openvas.pid --log-file /var/log/gvm/ospd-openvas.log --lock-file-dir /var/lib/openvas

Dec 29 08:30:29 eccfb4b71dde systemd[1]: Starting OSPd Wrapper for the OpenVAS Scanner (ospd-openvas)…
Dec 29 08:30:29 eccfb4b71dde systemd[1]: Started OSPd Wrapper for the OpenVAS Scanner (ospd-openvas).

[>] Opening Web UI (https://127.0.0.1:9392) in: 5… 4… 3… 2… 1…

┌──(root💀eccfb4b71dde)-[/]
└─# netstat -antp | grep -i listen
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1670/gsad
tcp 0 0 0.0.0.0:9392 0.0.0.0:* LISTEN 1669/gsad
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 384/postgres