OpenVAS: error edition in the settings - what can i do?

Hello user,

I would like to use under Kali OpenVAS and installed Kali on USB, in VirtualBox and native on a computer. The result for all 3 installations is identical. I cannot make any changes in the “Settings”. There is always the same error when saving:

Given time_format was invalid

The edition of sudo gvm-check-setup does not result in anything striking:

gvm-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 23.13.1.
OK: Notus Scanner is present in version 22.6.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: 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 93023 NVTs.
OK: The notus directory /var/lib/notus/products contains 472 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.7.1.
Step 2: Checking GVMD Manager ...
OK: GVM Manager (gvmd) is present in version 24.0.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.
gvmd | _gvm | UTF8 | libc | en_US.UTF-8 | en_US.UTF-8 | | |
16436|pg-gvm|10|2200|f|22.6||
OK: At least one user exists.
Step 6: Checking Greenbone Security Assistant (GSA) ...
OK: Greenbone Security Assistant is present in version 24.0.0~git.
Step 7: Checking if GVM services are up and running ...
OK: gvmd service is active.
OK: gsad service is active.
Step 8: Checking few other requirements...
OK: nmap is present.
OK: ssh-keygen found, LSC credential generation for GNU/Linux targets is likely to work.
OK: nsis found, LSC credential package generation for Microsoft Windows targets is likely to work.
OK: xsltproc found.
WARNING: Your password policy is empty.
SUGGEST: Edit the /etc/gvm/pwpolicy.conf file to set a password policy.
Step 9: Checking greenbone-security-assistant...
OK: greenbone-security-assistant is installed

It seems like your GVM-23.11.0 installation is OK.

The scan in OpenVAS works. But I would like to set the time zone “Berlin” and use “German” as a browser language. Unfortunately, none of this works.

Does anyone have an idea where the problem is and how I can solve it?

Please info.

Thanks Thomas

I have performed the installation again on a separate device. I copied the basic settings for language, time zone etc. from Kali and did not change them. However, the subsequent installation of OpenVAS causes the same problem again:

Given time_format was invalid

I am no closer to a solution. Do you have any tips or ideas?

Thomas

OpenVAS relies on Postgresql as you probably noticed in your output.

This means you would probably need to change the timezone etc on the database before then changing it in openvas I would imagine (the error is because it can’t write your changes to the database directly)

  • a caveat here, having not tried this, it might ‘break’ the certs openvas is currently using, and so it might break the openvas install…

Thank you for the information. I will first try the change in the time zone on a test device.

Thomas

I’ve found that OpenVAS has been increasingly unreliable in terms of the base Kali install and have switched with good success to a docker based installation.

I followed the instructions at openvas | Containers for running the Greenbone Vulnerability Manager. Run as a single container with all services or separate single applications containers via docker-compose. , but here were my cliff notes:

#Setup docker in Kali. Install it, configure the service, groups, etc.
sudo apt update
sudo apt install docker.io -y
sudo systemctl enable docker --now
docker
sudo usermod -aG docker ${USER} #I have also seen $USER
#LOGOUT AND LOG BACK IN

#Start by downloading a test image from Docker Hub. Docker Hub is a public repository of images.
docker pull hello-world

#To run an container, using an image
docker run hello-world

#Pull the image we want for OpenVAS.
docker pull immauss/openvas

After you pull that image, follow the instructions at the immauss page :slight_smile: (I tried to paste them with my notes but for some reason the forum does not like that…)

Thanks for the tip about Docker. Maybe I will use this approach and install OpenVAS. At the same time, I need another system under Docker. That would also make sense.