I installed gvm on Kali. check-setup looks ok. worked on no ports listed today. Now I’m stuck with interrupted at 0% when scanning. error tab shows could not connect to scanners.
──(teacher㉿Host70)-[/var/log/gvm]
└─$ sudo gvm-check-setup
gvm-check-setup 23.11.0
Test completeness and readiness of GVM-23.11.0
Step 1: Checking OpenVAS (Scanner)...
OK: OpenVAS Scanner is present in version 23.13.1.
OK: Notus Scanner is present in version 22.6.4.
OK: Server CA Certificate is present as /var/lib/gvm/CA/servercert.pem.
Checking permissions of /var/lib/openvas/gnupg/*
OK: _gvm owns all files in /var/lib/openvas/gnupg
OK: redis-server is present.
OK: scanner (db_address setting) is configured properly using the redis-server socket: /var/run/redis-openvas/redis-server.sock
OK: the mqtt_server_uri is defined in /etc/openvas/openvas.conf
OK: _gvm owns all files in /var/lib/openvas/plugins
OK: NVT collection in /var/lib/openvas/plugins contains 93417 NVTs.
OK: The notus directory /var/lib/notus/products contains 482 NVTs.
Checking that the obsolete redis database has been removed
OK: No old Redis DB
OK: ospd-openvas service is active.
OK: ospd-OpenVAS is present in version 22.7.1.
Step 2: Checking GVMD Manager ...
OK: GVM Manager (gvmd) is present in version 24.0.0.
Step 3: Checking Certificates ...
OK: GVM client certificate is valid and present as /var/lib/gvm/CA/clientcert.pem.
OK: Your GVM certificate infrastructure passed validation.
Step 4: Checking data ...
OK: SCAP data found in /var/lib/gvm/scap-data.
OK: CERT data found in /var/lib/gvm/cert-data.
Step 5: Checking Postgresql DB and user ...
OK: Postgresql version and default port are OK.
gvmd | _gvm | UTF8 | libc | en_US.UTF-8 | en_US.UTF-8 | | |
16436|pg-gvm|10|2200|f|22.6||
OK: At least one user exists.
Step 6: Checking Greenbone Security Assistant (GSA) ...
OK: Greenbone Security Assistant is present in version 24.0.0~git.
Step 7: Checking if GVM services are up and running ...
OK: gvmd service is active.
OK: gsad service is active.
Step 8: Checking few other requirements...
OK: nmap is present.
OK: ssh-keygen found, LSC credential generation for GNU/Linux targets is likely to work.
OK: nsis found, LSC credential package generation for Microsoft Windows targets is likely to work.
OK: xsltproc found.
WARNING: Your password policy is empty.
SUGGEST: Edit the /etc/gvm/pwpolicy.conf file to set a password policy.
Step 9: Checking greenbone-security-assistant...
OK: greenbone-security-assistant is installed
It seems like your GVM-23.11.0 installation is OK.
┌──(teacher㉿Host70)-[/var/log/gvm]
└─$ sudo gvmd --get-scanners
┌──(teacher㉿Host70)-[/var/log/gvm]
└─$ sudo tail -20 /var/log/gvm/ospd-openvas.log
OSPD[173363] 2025-02-21 20:28:14,470: INFO: (ospd_openvas.messaging.mqtt) Successfully connected to MQTT broker
OSPD[173363] 2025-02-21 20:28:24,470: INFO: (ospd_openvas.daemon) Loading VTs. Scans will be [requested|queued] until VTs are loaded. This may take a few minutes, please wait...
OSPD[173363] 2025-02-21 20:28:43,282: INFO: (ospd_openvas.daemon) VTs were up to date. Feed version is 202502200953.
OSPD[173363] 2025-02-21 20:29:20,436: INFO: (ospd.main) Shutting-down server ...
OSPD[174125] 2025-02-21 20:29:23,982: INFO: (ospd.main) Starting OSPd OpenVAS version 22.7.1.
OSPD[174125] 2025-02-21 20:29:24,019: INFO: (ospd_openvas.messaging.mqtt) Successfully connected to MQTT broker
OSPD[174125] 2025-02-21 20:29:34,019: INFO: (ospd_openvas.daemon) Loading VTs. Scans will be [requested|queued] until VTs are loaded. This may take a few minutes, please wait...
OSPD[174125] 2025-02-21 20:29:52,944: INFO: (ospd_openvas.daemon) VTs were up to date. Feed version is 202502200953.
OSPD[174125] 2025-02-21 20:41:57,819: INFO: (ospd.main) Shutting-down server ...
OSPD[4531] 2025-02-21 21:11:53,318: INFO: (ospd.main) Starting OSPd OpenVAS version 22.7.1.
OSPD[4531] 2025-02-21 21:11:53,355: INFO: (ospd_openvas.messaging.mqtt) Successfully connected to MQTT broker
OSPD[4531] 2025-02-21 21:12:03,354: INFO: (ospd_openvas.daemon) Loading VTs. Scans will be [requested|queued] until VTs are loaded. This may take a few minutes, please wait...
OSPD[4531] 2025-02-21 21:12:26,906: INFO: (ospd_openvas.daemon) Finished loading VTs. The VT cache has been updated from version 0 to 202502200953.
OSPD[4531] 2025-02-21 21:30:59,344: INFO: (ospd.main) Shutting-down server ...
OSPD[15837] 2025-02-21 21:31:07,045: INFO: (ospd.main) Starting OSPd OpenVAS version 22.7.1.
OSPD[15837] 2025-02-21 21:31:07,082: INFO: (ospd_openvas.messaging.mqtt) Successfully connected to MQTT broker
OSPD[15837] 2025-02-21 21:31:17,081: INFO: (ospd_openvas.daemon) Loading VTs. Scans will be [requested|queued] until VTs are loaded. This may take a few minutes, please wait...
OSPD[15837] 2025-02-21 21:31:36,586: INFO: (ospd_openvas.daemon) VTs were up to date. Feed version is 202502200953.
OSPD[15837] 2025-02-21 22:04:07,282: INFO: (ospd_openvas.daemon) Loading VTs. Scans will be [requested|queued] until VTs are loaded. This may take a few minutes, please wait...
OSPD[15837] 2025-02-21 22:04:37,214: INFO: (ospd_openvas.daemon) Finished loading VTs. The VT cache has been updated from version 202502200953 to 202502211643.
┌──(teacher㉿Host70)-[/var/log/gvm]
└─$ sudo tail -20 /var/log/gvm/gvmd.log
md manage:WARNING:2025-02-22 00h17.42 utc:107089: sql_open: PQerrorMessage (conn): connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: role "root" does not exist
md manage:WARNING:2025-02-22 00h17.42 utc:107089: init_manage_open_db: sql_open failed
md main:MESSAGE:2025-02-22 00h19.37 utc:108153: Greenbone Vulnerability Manager version 24.0.0 (DB revision 256)
md manage: INFO:2025-02-22 00h19.37 utc:108153: Getting users.
md main:MESSAGE:2025-02-22 00h19.40 utc:108187: Greenbone Vulnerability Manager version 24.0.0 (DB revision 256)
md manage: INFO:2025-02-22 00h19.40 utc:108187: Getting users.
md main:MESSAGE:2025-02-22 00h19.57 utc:108356: Greenbone Vulnerability Manager version 24.0.0 (DB revision 256)
md manage: INFO:2025-02-22 00h19.57 utc:108356: Getting scanners.
md manage:WARNING:2025-02-22 00h19.57 utc:108356: sql_open: PQconnectPoll failed
md manage:WARNING:2025-02-22 00h19.57 utc:108356: sql_open: PQerrorMessage (conn): connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: role "root" does not exist
md manage:WARNING:2025-02-22 00h19.57 utc:108356: init_manage_open_db: sql_open failed
md main:MESSAGE:2025-02-22 00h25.24 utc:111360: Greenbone Vulnerability Manager version 24.0.0 (DB revision 256)
md manage: INFO:2025-02-22 00h25.24 utc:111360: Getting users.
md main:MESSAGE:2025-02-22 00h25.28 utc:111397: Greenbone Vulnerability Manager version 24.0.0 (DB revision 256)
md manage: INFO:2025-02-22 00h25.28 utc:111397: Getting users.
md main:MESSAGE:2025-02-22 00h25.39 utc:111515: Greenbone Vulnerability Manager version 24.0.0 (DB revision 256)
md manage: INFO:2025-02-22 00h25.39 utc:111515: Getting scanners.
md manage:WARNING:2025-02-22 00h25.39 utc:111515: sql_open: PQconnectPoll failed
md manage:WARNING:2025-02-22 00h25.39 utc:111515: sql_open: PQerrorMessage (conn): connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: role "root" does not exist
md manage:WARNING:2025-02-22 00h25.39 utc:111515: init_manage_open_db: sql_open failed
Please help I need to fix this for a class.
Thanks in advance!