# 21.4.3:Could not connect to Scanner

**URL:** <https://forum.greenbone.net/t/21-4-3-could-not-connect-to-scanner/11103>\
**Category:** Greenbone Community Edition\
**Created:** [December 27, 2021, 10:43am UTC](https://forum.greenbone.net/t/21-4-3-could-not-connect-to-scanner/11103 "2021-12-27T10:43:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![coco](https://forum.greenbone.net/letter_avatar/coco/32/6_449c533f586939b6e5f246632a46421f.png) [@coco](https://forum.greenbone.net/u/coco)\
**Post date:** [December 27, 2021, 10:43am UTC](https://forum.greenbone.net/t/21-4-3-could-not-connect-to-scanner/11103/1 "2021-12-27T10:43:32Z")

</div>

![image](https://community.greenbone.net/uploads/default/original/2X/a/a19f726ddd36ce25bc40e676a6639bb29fba7ff8.png)

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

---

<div class="post-metadata">

**Author:** ![DeeAnn](https://forum.greenbone.net/user_avatar/forum.greenbone.net/deeann/32/2239_2.png) [@DeeAnn](https://forum.greenbone.net/u/DeeAnn)\
**Post date:** [December 27, 2021, 11:11am UTC](https://forum.greenbone.net/t/21-4-3-could-not-connect-to-scanner/11103/2 "2021-12-27T11:11:06Z")

</div>

Hi @coco,

This thread has some things to try: [First scan failed](https://community.greenbone.net/t/first-scan-failed/4044)

---

<div class="post-metadata">

**Author:** ![coco](https://forum.greenbone.net/letter_avatar/coco/32/6_449c533f586939b6e5f246632a46421f.png) [@coco](https://forum.greenbone.net/u/coco)\
**Post date:** [December 28, 2021, 12:35am UTC](https://forum.greenbone.net/t/21-4-3-could-not-connect-to-scanner/11103/3 "2021-12-28T00:35:08Z")

</div>

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

 ![image](https://community.greenbone.net/uploads/default/original/2X/9/90efb9b481229a64fc58c80b010dd3f53381860e.png)

2、后台查看如下图

 ![image](https://community.greenbone.net/uploads/default/original/2X/c/c188a4dc0a21a5e3c5b3e63554cc780b60012e3f.png)

---

<div class="post-metadata">

**Author:** ![DeeAnn](https://forum.greenbone.net/user_avatar/forum.greenbone.net/deeann/32/2239_2.png) [@DeeAnn](https://forum.greenbone.net/u/DeeAnn)\
**Post date:** [December 28, 2021, 10:33am UTC](https://forum.greenbone.net/t/21-4-3-could-not-connect-to-scanner/11103/4 "2021-12-28T10:33:20Z")

</div>

Thanks @coco,

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

---

<div class="post-metadata">

**Author:** ![coco](https://forum.greenbone.net/letter_avatar/coco/32/6_449c533f586939b6e5f246632a46421f.png) [@coco](https://forum.greenbone.net/u/coco)\
**Post date:** [December 28, 2021, 11:16am UTC](https://forum.greenbone.net/t/21-4-3-could-not-connect-to-scanner/11103/5 "2021-12-28T11:16:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![DeeAnn](https://forum.greenbone.net/user_avatar/forum.greenbone.net/deeann/32/2239_2.png) [@DeeAnn](https://forum.greenbone.net/u/DeeAnn)\
**Post date:** [December 28, 2021, 12:20pm UTC](https://forum.greenbone.net/t/21-4-3-could-not-connect-to-scanner/11103/6 "2021-12-28T12:20:22Z")

</div>

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

> **[Ospd-openvas doesn't start if I run it manually, but it starts with...](https://forum.greenbone.net/t/ospd-openvas-doesnt-start-if-i-run-it-manually-but-it-starts-with-gvm-check-setup/9580/2)**
>
> Solved. Need to run this from the root folder (/) First screenshot shows me running gvm-start from the / folder, which works perfectly fine. Second screenshot shows me running the same command from the home folder of the root account, which...

> **[How exactly do you start GSA? gvm-start doesn't work, but gvm-check-setup does](https://forum.greenbone.net/t/how-exactly-do-you-start-gsa-gvm-start-doesnt-work-but-gvm-check-setup-does/9514)**
>
> I am experiencing some weird issues when it comes to launching GSA. Sometimes the service starts, sometimes it doesn’t. I have a very simply installation process so I’m not quite sure why it’s inconsistent. I simply instlal openvas using apt...

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.

---

<div class="post-metadata">

**Author:** ![coco](https://forum.greenbone.net/letter_avatar/coco/32/6_449c533f586939b6e5f246632a46421f.png) [@coco](https://forum.greenbone.net/u/coco)\
**Post date:** [December 29, 2021, 12:36am UTC](https://forum.greenbone.net/t/21-4-3-could-not-connect-to-scanner/11103/7 "2021-12-29T00:36:54Z")

</div>

不管根目录还是 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](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](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](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

---

<div class="post-metadata">

**Author:** ![system](https://forum.greenbone.net/uploads/default/original/2X/4/4660e797edfaea797a8c9965246072ea26732804.png) [@system](https://forum.greenbone.net/u/system)\
**Post date:** [April 7, 2025, 10:13am UTC](https://forum.greenbone.net/t/21-4-3-could-not-connect-to-scanner/11103/8 "2025-04-07T10:13:25Z")

</div>

Closed on April 7, 2025, 10:13am UTC


