Hello. I just installed an application called openvas. When I tried to run a script called gvm-setup to set everything up, I get the following output[>] Starting PostgreSQL service
[>] Creating GVM’s certificate files
[>] Creating PostgreSQL database
[i] User _gvm already exists in PostgreSQL
[*] Creating database
createdb: error: database creation failed: ERROR: template database “template1” has a collation version mismatch
DETAIL: The template database was created using collation version 2.40, but the operating system provides version 2.41.
HINT: Rebuild all objects in the template database that use the default collation and run ALTER DATABASE template1 REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
[*] Creating permissions
psql: error: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL: database “gvmd” does not exist
[*] Applying permissions
psql: error: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL: database “gvmd” does not exist
psql: error: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL: database “gvmd” does not exist
[*] Creating extension uuid-ossp
psql: error: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL: database “gvmd” does not exist
psql: error: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL: database “gvmd” does not exist
[*] Creating extension pgcrypto
psql: error: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL: database “gvmd” does not exist
psql: error: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL: database “gvmd” does not exist
[*] Creating extension pg-gvm
psql: error: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL: database “gvmd” does not exist
[>] Migrating database
(gvmd:8659): md manage-WARNING **: 12:54:05.359: sql_open: PQconnectPoll failed
(gvmd:8659): md manage-WARNING **: 12:54:05.359: sql_open: PQerrorMessage (conn): connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL: database “gvmd” does not exist
(gvmd:8659): md manage-WARNING **: 12:54:05.359: init_manage_open_db: sql_open failed
[>] Checking for GVM admin user
md main:MESSAGE:2025-04-25 16h54.05 utc:8664: Greenbone Vulnerability Manager version 25.2.1 (DB revision 259)
md manage: INFO:2025-04-25 16h54.05 utc:8664: Getting users.
md manage:WARNING:2025-04-25 16h54.05 utc:8664: sql_open: PQconnectPoll failed
md manage:WARNING:2025-04-25 16h54.05 utc:8664: sql_open: PQerrorMessage (conn): connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL: database “gvmd” does not exist
md manage:WARNING:2025-04-25 16h54.05 utc:8664: init_manage_open_db: sql_open failed
[] Creating user admin for gvm
md main:MESSAGE:2025-04-25 16h54.05 utc:8667: Greenbone Vulnerability Manager version 25.2.1 (DB revision 259)
md manage: INFO:2025-04-25 16h54.05 utc:8667: Creating user.
md manage:WARNING:2025-04-25 16h54.05 utc:8667: sql_open: PQconnectPoll failed
md manage:WARNING:2025-04-25 16h54.05 utc:8667: sql_open: PQerrorMessage (conn): connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL: database “gvmd” does not exist
md manage:WARNING:2025-04-25 16h54.05 utc:8667: init_manage_open_db: sql_open failed
[] Please note the generated admin password
[]
[] Configure Feed Import Owner
psql: error: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL: database “gvmd” does not exist
[*] Define Feed Import Owner
md main:MESSAGE:2025-04-25 16h54.05 utc:8675: Greenbone Vulnerability Manager version 25.2.1 (DB revision 259)
md manage: INFO:2025-04-25 16h54.05 utc:8675: Getting users.
md manage:WARNING:2025-04-25 16h54.05 utc:8675: sql_open: PQconnectPoll failed
md manage:WARNING:2025-04-25 16h54.05 utc:8675: sql_open: PQerrorMessage (conn): connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL: database “gvmd” does not exist
md manage:WARNING:2025-04-25 16h54.05 utc:8675: init_manage_open_db: sql_open failed
(gvmd:8678): md main-CRITICAL **: 12:54:05.604: gvmd: g_option_context_parse: Missing argument for --value
[*] Update GVM feeds
Running as root. Switching to user ‘_gvm’ and group ‘_gvm’.
Trying to acquire lock on /var/lib/openvas/feed-update.lock
Acquired lock on /var/lib/openvas/feed-update.lock
⠇ Downloading Notus files from rsync://feed.community.greenbone.net/community/vulnerability-feed/24.10/vt-data/notus/ to /var/lib/notus
⠼ Downloading NASL files from rsync://feed.community.greenbone.net/community/vulnerability-feed/24.10/vt-data/nasl/ to /var/lib/openvas/plugins
Releasing lock on /var/lib/openvas/feed-update.lock
Trying to acquire lock on /var/lib/gvm/feed-update.lock
Acquired lock on /var/lib/gvm/feed-update.lock
⠏ Downloading SCAP data from rsync://feed.community.greenbone.net/community/vulnerability-feed/24.10/scap-data/ to /var/lib/gvm/scap-data
⠋ Downloading CERT-Bund data from rsync://feed.community.greenbone.net/community/vulnerability-feed/24.10/cert-data/ to /var/lib/gvm/cert-data
⠏ Downloading gvmd data from rsync://feed.community.greenbone.net/community/data-feed/24.10/ to /var/lib/gvm/data-objects/gvmd
Releasing lock on /var/lib/gvm/feed-update.lock
[] Checking Default scanner
md main:MESSAGE:2025-04-25 16h55.26 utc:9355: Greenbone Vulnerability Manager version 25.2.1 (DB revision 259)
md manage: INFO:2025-04-25 16h55.26 utc:9355: Getting scanners.
md manage:WARNING:2025-04-25 16h55.26 utc:9355: sql_open: PQconnectPoll failed
md manage:WARNING:2025-04-25 16h55.26 utc:9355: sql_open: PQerrorMessage (conn): connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL: database “gvmd” does not exist
md manage:WARNING:2025-04-25 16h55.26 utc:9355: init_manage_open_db: sql_open failed
[] Modifying Default Scanner
md main:MESSAGE:2025-04-25 16h55.26 utc:9358: Greenbone Vulnerability Manager version 25.2.1 (DB revision 259)
md manage: INFO:2025-04-25 16h55.26 utc:9358: Modifying scanner.
md manage:WARNING:2025-04-25 16h55.26 utc:9358: sql_open: PQconnectPoll failed
md manage:WARNING:2025-04-25 16h55.26 utc:9358: sql_open: PQerrorMessage (conn): connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL: database “gvmd” does not exist
md manage:WARNING:2025-04-25 16h55.26 utc:9358: init_manage_open_db: sql_open failed
[+] Done
[i] Admin user already exists for GVM
[i] If you have forgotten it, you can change it. See gvmd manpage for more information
[>] You can now run gvm-check-setup to make sure everything is correctly configured