GVM installation was successful. After that “sudo gvm-check-setup” shows following.
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=<name> --password=<password>'
ERROR: Your GVM-21.4.3 installation is not yet complete!
Please follow the instructions marked with FIX above and run this
script again.
After this when I try to create new user, I get an error below.
$ sudo runuser -u _gvm -- gvmd --create-user=admin --password=admin
Failed to create user: Invalid characters in user name
I also tried following command to create new user. But that doesn’t work as well, because I don’t see any users created (as shown below).
sudo gvmd --create-user=admin --password=admin
┌──(kali㉿kali)-[~]
└─$ sudo gvmd --get-users
┌──(kali㉿kali)-[~]
└─$
I also checked var/log/gvm/gvmd.log but I couldn’t figure out issue based on this.
md manage: INFO:2022-09-18 06h14.15 utc:3483: Creating user.
md manage:WARNING:2022-09-18 06h14.17 utc:3483: Invalid characters in user name!
md main:MESSAGE:2022-09-18 06h32.39 utc:8394: Greenbone Vulnerability Manager version 21.4.5 (DB revision 242)
md manage: INFO:2022-09-18 06h32.39 utc:8394: Creating user.
md manage:WARNING:2022-09-18 06h32.39 utc:8394: sql_open: PQconnectPoll failed
md manage:WARNING:2022-09-18 06h32.39 utc:8394: 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:2022-09-18 06h32.39 utc:8394: init_manage_open_db: sql_open failed
md main:MESSAGE:2022-09-18 06h32.59 utc:8493: Greenbone Vulnerability Manager version 21.4.5 (DB revision 242)
md manage: INFO:2022-09-18 06h32.59 utc:8493: Getting users.
md manage:WARNING:2022-09-18 06h32.59 utc:8493: sql_open: PQconnectPoll failed
md manage:WARNING:2022-09-18 06h32.59 utc:8493: 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:2022-09-18 06h32.59 utc:8493: init_manage_open_db: sql_open failed
I think _ in _gvm seems to be causing this issue, but not sure how to correct this.
Due to this issue, I can’t login to greenbone via browser, it says “username or password invalid”.
I am novice to Kali Linux and GVM, so any help is appreciated.