i have installed the OpenVAS 22.7.9 on the latest version of Kali 2024.1, the setup check was successful, but in Firefox i can’t login. I have created a second user, the second user can’t login neither.
I am available for any log or any further information.
As with troubleshooting most issues, you should check the log output first. You can sudo tail -100 /var/log/gvm/gvmd.log to see any related error messages.
This is the end of the log, there is nothing different in the first part of it.
md manage: INFO:2024-03-20 08h31.42 UTC:175031: update_scap: Updating data from feed
md manage:WARNING:2024-03-20 08h31.42 UTC:175031: update_scap_cpes: No CPE dictionary found at /var/lib/gvm/scap-data/official-cpe-dictionary_v2.2.xml
md manage:WARNING:2024-03-20 08h33.02 UTC:175708: update_scap: No SCAP db present, rebuilding SCAP db from scratch
md manage: INFO:2024-03-20 08h33.02 UTC:175708: update_scap: Updating data from feed
md manage:WARNING:2024-03-20 08h33.02 UTC:175708: update_scap_cpes: No CPE dictionary found at /var/lib/gvm/scap-data/official-cpe-dictionary_v2.2.xml
md manage:WARNING:2024-03-20 08h33.12 UTC:175808: update_scap: No SCAP db present, rebuilding SCAP db from scratch
md manage: INFO:2024-03-20 08h33.12 UTC:175808: update_scap: Updating data from feed
md manage:WARNING:2024-03-20 08h33.12 UTC:175808: update_scap_cpes: No CPE dictionary found at /var/lib/gvm/scap-data/official-cpe-dictionary_v2.2.xml
md main:MESSAGE:2024-03-20 08h33.21 utc:175962: Greenbone Vulnerability Manager version 23.3.0 (DB revision 255)
md manage: INFO:2024-03-20 08h33.21 utc:175962: Getting users.
md manage:MESSAGE:2024-03-20 08h33.21 utc:175962: No SCAP database found
md manage:WARNING:2024-03-20 08h33.23 UTC:175978: update_scap: No SCAP db present, rebuilding SCAP db from scratch
md manage: INFO:2024-03-20 08h33.23 UTC:175978: update_scap: Updating data from feed
md manage:WARNING:2024-03-20 08h33.23 UTC:175978: update_scap_cpes: No CPE dictionary found at /var/lib/gvm/scap-data/official-cpe-dictionary_v2.2.xml
md main:MESSAGE:2024-03-20 08h33.24 utc:175995: Greenbone Vulnerability Manager version 23.3.0 (DB revision 255)
md manage: INFO:2024-03-20 08h33.24 utc:175995: Getting users.
md manage:MESSAGE:2024-03-20 08h33.24 utc:175995: No SCAP database found
md manage:WARNING:2024-03-20 08h33.33 UTC:176092: update_scap: No SCAP db present, rebuilding SCAP db from scratch
md manage: INFO:2024-03-20 08h33.33 UTC:176092: update_scap: Updating data from feed
md manage:WARNING:2024-03-20 08h33.33 UTC:176092: update_scap_cpes: No CPE dictionary found at /var/lib/gvm/scap-data/official-cpe-dictionary_v2.2.xml
md manage:WARNING:2024-03-20 08h33.43 UTC:176183: update_scap: No SCAP db present, rebuilding SCAP db from scratch
md manage: INFO:2024-03-20 08h33.43 UTC:176183: update_scap: Updating data from feed
md manage:WARNING:2024-03-20 08h33.43 UTC:176183: update_scap_cpes: No CPE dictionary found at /var/lib/gvm/scap-data/official-cpe-dictionary_v2.2.xml
The setup check is okay, there is only the warning that the password policy is empty.
When i download the scap db, i receive always an error:
rsync: read error: Connection reset by peer (104)
rsync error: error in socket IO (code 10) at io.c(806)
rsync: connection unexpectedly closed (666 bytes received so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(231)
md manage:WARNING:2024-03-20 09h29.42 utc:204380: sql_open: PQconnectStart to 'gvmd' failed: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?
md manage:WARNING:2024-03-20 09h29.42 utc:204380: init_manage_open_db: sql_open failed
md main:MESSAGE:2024-03-20 09h29.43 utc:204382: Greenbone Vulnerability Manager version 23.3.0 (DB revision 255)
md manage:WARNING:2024-03-20 09h29.43 utc:204383: sql_open: PQconnectStart to 'gvmd' failed: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?
md manage:WARNING:2024-03-20 09h29.43 utc:204383: init_manage_open_db: sql_open failed
md main:MESSAGE:2024-03-20 09h31.13 utc:205114: Greenbone Vulnerability Manager vermd main:MESSAGE:2024-03-20 09h41.48 utc:210339: Greenbone Vulnerability Manager version 23.3.0 (DB revision 255)
md manage:WARNING:2024-03-20 09h41.48 utc:210340: sql_open: PQconnectStart to 'gvmd' failed: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?
md manage:WARNING:2024-03-20 09h41.48 utc:210340: init_manage_open_db: sql_open failed
md main:MESSAGE:2024-03-20 09h42.01 utc:210451: Greenbone Vulnerability Manager version 23.3.0 (DB revision 255)
md manage: INFO:2024-03-20 09h42.01 utc:210451: Modifying user password.
md manage:WARNING:2024-03-20 09h42.01 utc:210451: sql_open: PQconnectStart to 'gvmd' failed: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?
md manage:WARNING:2024-03-20 09h42.01 utc:210451: init_manage_open_db: sql_open failed
md main:MESSAGE:2024-03-20 09h43.47 utc:211405: Greenbone Vulnerability Manager version 23.3.0 (DB revision 255)
md manage:WARNING:2024-03-20 09h43.47 utc:211409: sql_open: PQconnectStart to 'gvmd' failed: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?
md manage:WARNING:2024-03-20 09h43.47 utc:211409: init_manage_open_db: sql_open failed
md main:MESSAGE:2024-03-20 09h45.17 utc:212143: Greenbone Vulnerability Manager version 23.3.0 (DB revision 255)
md manage:WARNING:2024-03-20 09h45.17 utc:212146: sql_open: PQconnectStart to 'gvmd' failed: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?
md manage:WARNING:2024-03-20 09h45.17 utc:212146: init_manage_open_db: sql_open failed
md main:MESSAGE:2024-03-20 09h45.18 utc:212148: Greenbone Vulnerability Manager version 23.3.0 (DB revision 255)
md manage:WARNING:2024-03-20 09h45.18 utc:212149: sql_open: PQconnectStart to 'gvmd' failed: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?
md manage:WARNING:2024-03-20 09h45.18 utc:212149: init_manage_open_db: sql_open failed
md main:MESSAGE:2024-03-20 09h45.18 utc:212151: Greenbone Vulnerability Manager version 23.3.0 (DB revision 255)
md manage:WARNING:2024-03-20 09h45.18 utc:212152: sql_open: PQconnectStart to 'gvmd' failed: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?
md manage:WARNING:2024-03-20 09h45.18 utc:212152: init_manage_open_db: sql_open failed
md main:MESSAGE:2024-03-20 09h46.48 utc:212884: Greenbone Vulnerability Manager version 23.3.0 (DB revision 255)
md manage:WARNING:2024-03-20 09h46.48 utc:212885: sql_open: PQconnectStart to 'gvmd' failed: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?
md manage:WARNING:2024-03-20 09h46.48 utc:212885: init_manage_open_db: sql_open failed
md main:MESSAGE:2024-03-20 09h46.49 utc:212887: Greenbone Vulnerability Manager version 23.3.0 (DB revision 255)
md manage:WARNING:2024-03-20 09h46.49 utc:212888: sql_open: PQconnectStart to 'gvmd' failed: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?
md manage:WARNING:2024-03-20 09h46.49 utc:212888: init_manage_open_db: sql_open failed
md main:MESSAGE:2024-03-20 09h46.49 utc:212890: Greenbone Vulnerability Manager version 23.3.0 (DB revision 255)
md manage:WARNING:2024-03-20 09h46.49 utc:212891: sql_open: PQconnectStart to 'gvmd' failed: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?
md manage:WARNING:2024-03-20 09h46.49 utc:212891: init_manage_open_db: sql_open failed
md main:MESSAGE:2024-03-20 09h48.58 utc:1816: Greenbone Vulnerability Manager version 23.3.0 (DB revision 255)
md manage:MESSAGE:2024-03-20 09h48.58 utc:1817: No SCAP database found
md main:WARNING:2024-03-20 09h49.02 utc:1817: The gvmd data feed directory /var/lib/gvm/data-objects/gvmd/22.04 or one of its subdirectories does not exist.
md manage: INFO:2024-03-20 09h49.02 UTC:1865: osp_scanner_feed_version: No feed version available yet. OSPd OpenVAS is still starting
md manage:WARNING:2024-03-20 09h49.02 UTC:1864: update_scap: No SCAP db present, rebuilding SCAP db from scratch
md manage: INFO:2024-03-20 09h49.02 UTC:1864: update_scap: Updating data from feed
md manage: INFO:2024-03-20 09h49.02 UTC:1864: Updating CPEs
md manage:WARNING:2024-03-20 09h49.53 UTC:1864: split_xml_file: system failed with ret 65280, 1 (255), xml_split -s40Mb split.xml && head -n 2 split-00.xml > head.xml && echo '</cpe-list>' > tail.xml && for F in split-*.xml; do awk 'NR>3 {print last} {last=$0}' $F > body.xml && cat head.xml body.xml tail.xml > $F; done
md manage:WARNING:2024-03-20 09h49.53 UTC:1864: update_scap_cpes: Failed to split CPEs, attempting with full file
md manage:WARNING:2024-03-20 09h49.57 UTC:1864: update_scap_cpes_from_file: Failed to parse element
md gmp:WARNING:2024-03-20 09h49.58 utc:2707: Authentication failure for 'admin' from unix_socket
md gmp:WARNING:2024-03-20 09h50.02 utc:2734: Authentication failure for 'admin' from unix_socket
md manage:WARNING:2024-03-20 09h50.02 UTC:2740: update_scap: No SCAP db present, rebuilding SCAP db from scratch
md manage: INFO:2024-03-20 09h50.02 UTC:2743: osp_scanner_feed_version: No feed version available yet. OSPd OpenVAS is still starting
md manage: INFO:2024-03-20 09h50.02 UTC:2740: update_scap: Updating data from feed
md manage: INFO:2024-03-20 09h50.02 UTC:2740: Updating CPEs
md gmp:WARNING:2024-03-20 09h50.04 utc:2765: Authentication failure for 'admin' from unix_socket
md manage:WARNING:2024-03-20 09h50.34 UTC:2740: split_xml_file: system failed with ret 65280, 1 (255), xml_split -s40Mb split.xml && head -n 2 split-00.xml > head.xml && echo '</cpe-list>' > tail.xml && for F in split-*.xml; do awk 'NR>3 {print last} {last=$0}' $F > body.xml && cat head.xml body.xml tail.xml > $F; done
md manage:WARNING:2024-03-20 09h50.34 UTC:2740: update_scap_cpes: Failed to split CPEs, attempting with full file
md manage:WARNING:2024-03-20 09h50.38 UTC:2740: update_scap_cpes_from_file: Failed to parse element
md manage: INFO:2024-03-20 09h50.44 UTC:3104: osp_scanner_feed_version: No feed version available yet. OSPd OpenVAS is still starting
md manage:WARNING:2024-03-20 09h50.44 UTC:3103: update_scap: No SCAP db present, rebuilding SCAP db from scratch
md manage: INFO:2024-03-20 09h50.44 UTC:3103: update_scap: Updating data from feed
md manage: INFO:2024-03-20 09h50.44 UTC:3103: Updating CPEs
md manage:WARNING:2024-03-20 09h51.14 UTC:3103: split_xml_file: system failed with ret 65280, 1 (255), xml_split -s40Mb split.xml && head -n 2 split-00.xml > head.xml && echo '</cpe-list>' > tail.xml && for F in split-*.xml; do awk 'NR>3 {print last} {last=$0}' $F > body.xml && cat head.xml body.xml tail.xml > $F; done
md manage:WARNING:2024-03-20 09h51.14 UTC:3103: update_scap_cpes: Failed to split CPEs, attempting with full file
md manage:WARNING:2024-03-20 09h51.17 UTC:3103: update_scap_cpes_from_file: Failed to parse element
md manage: INFO:2024-03-20 09h51.26 UTC:3393: osp_scanner_feed_version: No feed version available yet. OSPd OpenVAS is still starting
md manage:WARNING:2024-03-20 09h51.26 UTC:3392: update_scap: No SCAP db present, rebuilding SCAP db from scratch
md manage: INFO:2024-03-20 09h51.26 UTC:3392: update_scap: Updating data from feed
md manage: INFO:2024-03-20 09h51.26 UTC:3392: Updating CPEs
md main:MESSAGE:2024-03-20 09h51.31 utc:3428: Greenbone Vulnerability Manager version 23.3.0 (DB revision 255)
md manage: INFO:2024-03-20 09h51.31 utc:3428: Modifying user password.
md manage:WARNING:2024-03-20 09h51.31 utc:3428: sql_open: PQconnectPoll failed
md manage:WARNING:2024-03-20 09h51.31 utc:3428: 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:2024-03-20 09h51.31 utc:3428: init_manage_open_db: sql_open failed
md gmp:WARNING:2024-03-20 09h51.50 utc:3587: Authentication failure for 'admin' from unix_socket
md gmp:WARNING:2024-03-20 09h51.51 utc:3607: Authentication failure for 'admin' from unix_socket
md gmp:WARNING:2024-03-20 09h51.52 utc:3610: Authentication failure for 'admin' from unix_socket
md gmp:WARNING:2024-03-20 09h51.52 utc:3621: Authentication failure for 'admin' from unix_socket
md gmp:WARNING:2024-03-20 09h51.52 utc:3624: Authentication failure for 'admin' from unix_socket
md gmp:WARNING:2024-03-20 09h51.52 utc:3627: Authentication failure for 'admin' from unix_socket
md gmp:WARNING:2024-03-20 09h51.53 utc:3630: Authentication failure for 'admin' from unix_socket
md gmp:WARNING:2024-03-20 09h51.53 utc:3633: Authentication failure for 'admin' from unix_socket
md gmp:WARNING:2024-03-20 09h51.53 utc:3636: Authentication failure for 'admin' from unix_socket
md gmp:WARNING:2024-03-20 09h51.53 utc:3647: Authentication failure for 'admin' from unix_socket
md gmp:WARNING:2024-03-20 09h51.53 utc:3650: Authentication failure for 'admin' from unix_socket
md gmp:WARNING:2024-03-20 09h51.53 utc:3653: Authentication failure for 'admin' from unix_socket
md gmp:WARNING:2024-03-20 09h51.54 utc:3656: Authentication failure for 'admin' from unix_socket
md gmp:WARNING:2024-03-20 09h51.54 utc:3659: Authentication failure for 'admin' from unix_socket
md manage:WARNING:2024-03-20 09h51.55 UTC:3392: split_xml_file: system failed with ret 65280, 1 (255), xml_split -s40Mb split.xml && head -n 2 split-00.xml > head.xml && echo '</cpe-list>' > tail.xml && for F in split-*.xml; do awk 'NR>3 {print last} {last=$0}' $F > body.xml && cat head.xml body.xml tail.xml > $F; done
md manage:WARNING:2024-03-20 09h51.55 UTC:3392: update_scap_cpes: Failed to split CPEs, attempting with full file
md manage:WARNING:2024-03-20 09h52.00 UTC:3392: update_scap_cpes_from_file: Failed to parse element
md manage:WARNING:2024-03-20 09h52.04 UTC:3752: update_scap: No SCAP db present, rebuilding SCAP db from scratch
md manage: INFO:2024-03-20 09h52.04 UTC:3752: update_scap: Updating data from feed
md manage: INFO:2024-03-20 09h52.04 UTC:3752: Updating CPEs
I have changed the password, but only the log has changed. In the browser i still see “login failed. Invalid username or password”
Looks like the PostgreSQL database service is not running on port 5432. You should check the PostgreSQL service status with sudo systemctl status postgresql.
It’s either not running or not running on port 5432.
Some of the command have been also tried as root instead of the correct user in Kali (which is IIRC _gvm):
Usage of the root user for any maintenance work (be it e.g. feed syncing, starting services or similar) might break permissions on the system leaving it in an undefined state.
Here are the official instructions for installing Greenbone on Kali Linux. I suggest removing your current installation and starting from scratch by following these instructions carefully.