Hi I am trying to install OpenVAS for the first time following this guide https://www.ceos3c.com/security/install-openvas-kali-linux/ I have been following along fine, I ran a sudo gvm-check-setup.
vm-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 22.7.9.
OK: Notus Scanner is present in version 22.6.2.
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 88343 NVTs.
OK: The notus directory /var/lib/notus/products contains 456 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.6.2.
Step 2: Checking GVMD Manager β¦
OK: GVM Manager (gvmd) is present in version 23.1.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.
psql: error: 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?
ERROR: The Postgresql DB does not exist.
FIX: Run βsudo runuser -u postgres β /usr/share/gvm/create-postgresql-databaseβ
ERROR: Your GVM-23.11.0 installation is not yet complete!
Please follow the instructions marked with FIX above and run this
script again.
I then ran the fix it suggested but got these errors.
sudo runuser -u postgres β /usr/share/gvm/create-postgresql-database
psql: error: 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?
[*] Creating database user
createuser: error: 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?
psql: error: 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?
[*] Creating database
createdb: error: 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?
psql: error: 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?
[*] Creating permissions
psql: error: 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?
[*] Applying permissions
psql: error: 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?
psql: error: 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?
[*] Creating extension uuid-ossp
psql: error: 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?
psql: error: 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?
[*] Creating extension pgcrypto
psql: error: 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?
psql: error: 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?
[*] Creating extension pg-gvm
psql: error: 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?
Can anyone help please? Itβs my first time installing OpenVAS and also have 0 experience with postgres. Thanks.