Can't connect to Greenbone interface

Hi there,
I’m new to Greenbone tools, and just installed OpenVas 21.4.4 on Kali Linux 2022-3 on a Virtual Box VM.
The process finished, I changed the password of admin using the command :
gvmd --user=admin --newpassword=<the_new_pass>.
When launching gvm-start, no way to connect through the web interface (that uses the default port ie : 127.0.0.1:9392. Switching it off, I checked ma config with gvm-check-setup, and it appears that I had a problem of inactive service or no listening on socket redis-openvas/redis-server.sock.
Executing systemctl enable redis-server@openvas.service doesn’t change anything. Can I check or try something else ?
Can anybody help me find what’s going wrong there ? Thx
Z

Edit : My logs files

gvmd.log

md main:MESSAGE:2022-10-22 16h19.26 utc:7848: Greenbone Vulnerability Manager version 21.4.5 (DB revision 242)
md manage: INFO:2022-10-22 16h19.27 UTC:7874: osp_scanner_feed_version: failed to get scanner_feed_version. OSPd OpenV>
md manage: INFO:2022-10-22 16h19.37 UTC:7954: osp_scanner_feed_version: failed to get scanner_feed_version. OSPd OpenV>
md manage: INFO:2022-10-22 16h19.47 UTC:8340: osp_scanner_feed_version: failed to get scanner_feed_version. OSPd OpenV>
md manage: INFO:2022-10-22 16h19.57 UTC:8431: osp_scanner_feed_version: failed to get scanner_feed_version. OSPd OpenV>
md manage: INFO:2022-10-22 16h20.08 UTC:8495: osp_scanner_feed_version: failed to get scanner_feed_version. OSPd OpenV>
md gmp:WARNING:2022-10-22 16h20.09 utc:8504: Authentication failure for ‘admin’ from unix_socket
md manage: INFO:2022-10-22 16h20.19 UTC:8568: osp_scanner_feed_version: failed to get scanner_feed_version. OSPd OpenV>
md manage: INFO:2022-10-22 16h20.29 UTC:8632: osp_scanner_feed_version: failed to get scanner_feed_version. OSPd OpenV>
md main:MESSAGE:2022-10-22 16h23.41 utc:9905: Greenbone Vulnerability Manager version 21.4.5 (DB revision 242)
md manage: INFO:2022-10-22 16h23.41 utc:9905: Modifying user password.
md manage:WARNING:2022-10-22 16h23.41 utc:9905: sql_open: PQconnectPoll failed
md manage:WARNING:2022-10-22 16h23.41 utc:9905: sql_open: PQerrorMessage (conn): connection to server on socket "/var/ru>
md manage:WARNING:2022-10-22 16h23.41 utc:9905: init_manage_open_db: sql_open failed
md main:MESSAGE:2022-10-22 16h23.45 utc:9943: Greenbone Vulnerability Manager version 21.4.5 (DB revision 242)
md manage: INFO:2022-10-22 16h23.45 UTC:9970: osp_scanner_feed_version: failed to get scanner_feed_version. OSPd OpenV>
md manage: INFO:2022-10-22 16h23.55 UTC:10049: osp_scanner_feed_version: failed to get scanner_feed_version. OSPd Open>
md manage: INFO:2022-10-22 16h24.05 UTC:10345: osp_scanner_feed_version: failed to get scanner_feed_version. OSPd Open>
md gmp:WARNING:2022-10-22 16h24.11 utc:10378: Authentication failure for ‘admin’ from unix_socket
md manage: INFO:2022-10-22 16h24.21 UTC:10441: osp_scanner_feed_version: failed to get scanner_feed_version. OSPd Open>
md gmp:WARNING:2022-10-22 16h56.41 utc:23408: Authentication failure for ‘admin’ from unix_socket

gsad.log

gsad main:MESSAGE:2022-10-22 16h19.32 utc:7910: Starting GSAD version 21.4.4
gsad gmp:WARNING:2022-10-22 16h20.09 utc:7911: Authentication failure for ‘admin’ from 127.0.0.1. Status was 2.
gsad main:MESSAGE:2022-10-22 16h23.50 utc:10005: Starting GSAD version 21.4.4
gsad gmp:WARNING:2022-10-22 16h24.11 utc:10006: Authentication failure for ‘admin’ from 127.0.0.1. Status was 2.
gsad gmp:WARNING:2022-10-22 16h56.41 utc:10006: Authentication failure for ‘admin’ from 127.0.0.1. Status was 2.

gvmd --user=admin --newpassword=<the_new_pass> won’t work on Kali. You would need to use sudo -u _gvm gvmd --user=admin --newpassword=<the_new_pass>. It is required to run this command with the permissions of the _gvm user on Kali.

1 Like

Hi bricks, Thank you for this command.
Here’s the message I get when I try it :

(gvmd:9755): md main-CRITICAL **: 12:50:57.630: gvmd: g_option_context_parse: Unknown option --newpassword=

Does it mean that I don’t have the permissions of the _gvm user on kali, and how should I grant my user for that ? ThanX

No. Just a typo in the command. sudo -u _gvm gvmd --user=admin --new-password=<the_new_pass>.

1 Like

Oups, yes, it’s working now.
Thank you for your help !

1 Like