Unable to Login to Web Interface

I’m having issues getting into the scanner through (https://x.x.x.x:9392/login)

This was installed on Kali Linux.

At first I was getting an error saying that GSAD wasn’t installed, so I installed it. Now I’m getting the following results from gvm-check-setup. I run the command it tells me to run and it doesn’t provide an error, but it doesn’t help me progess with the gvm-check-setup command.

I recently changed the port number listed in
/etc/postgresql/13/main/postgresql.conf to 5434

and

/etc/postgresql/14/main/postgresql.conf to 5432

gvm-check-setup 21.4.2
Test completeness and readiness of GVM-21.4.2
Step 1: Checking OpenVAS (Scanner)…
OK: OpenVAS Scanner is present in version 21.4.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: redis-server is running and listening on socket: /var/run/redis-openvas/redis-server.sock.
OK: redis-server configuration is OK and redis-server is running.
OK: _gvm owns all files in /var/lib/openvas/plugins
OK: NVT collection in /var/lib/openvas/plugins contains 101351 NVTs.
Checking that the obsolete redis database has been removed
OK: No old Redis DB
OK: ospd-OpenVAS is present in version 21.4.4.
Step 2: Checking GVMD Manager …
OK: GVM Manager (gvmd) is present in version 21.4.5.
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 | en_US.UTF-8 | en_US.UTF-8 |
ERROR: No users found. You need to create at least one user to log in.
FIX: create a user by running ‘sudo runuser -u _gvm – gvmd --create-user= --password=’

ERROR: Your GVM-21.4.2 installation is not yet complete!

Please follow the instructions marked with FIX above and run this
script again.

┌──(root💀hbugadmin)-[/etc/postgresql/14/main]
└─# runuser -u _gvm – gvmd --create-user=admin --password=************* 1 ⨯

┌──(root💀hbugadmin)-[/etc/postgresql/14/main]
└─#

Please check the logs in /var/log/gvm/gvmd.log, so we get more information.

And please check this article:

I don’t seem to have any logs.

i ended up nuking that installation and set it back up using the Docker instructions found here.

https://greenbone.github.io/docs/latest/22.4/container/index.html

1 Like