Cant start openvas

Hello there

i just installed and gvm-setup this amazing tool but i cant start it:
Job for ospd-openvas.service failed because the control process exited with error code.
See “systemctl status ospd-openvas.service” and “journalctl -xe” for details.

==> systemctl status ospd-openvas.service start

Unit start.service could not be found.
● ospd-openvas.service - OpenVAS Wrapper of the Greenbone Vulnerability Management (ospd-openvas)
Loaded: loaded (/lib/systemd/system/ospd-openvas.service; disabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2021-07-22 23:34:38 EDT; 33s ago
Docs: man:ospd-openvas(8)
man:openvas(8)
Process: 11581 ExecStart=/usr/bin/ospd-openvas --unix-socket /run/ospd/ospd.sock --pid-file /run/ospd/ospd-openvas.pid --log-file /var/log/gvm/ospd-openvas.log --lock-file-dir /var/lib/openvas (code=exited, status=1/FAILURE)
CPU: 304ms

==> journalctl -xe

Jul 22 23:28:31 kali openvas[11124]: init_openvas: Can not open or create log file or directory. Please check permissions of log files listed in /etc/openvas/openvas_log.conf.
Jul 22 23:28:36 kali openvas[11125]: init_openvas: Can not open or create log file or directory. Please check permissions of log files listed in /etc/openvas/openvas_log.conf.
Jul 22 23:28:41 kali openvas[11135]: init_openvas: Can not open or create log file or directory. Please check permissions of log files listed in /etc/openvas/openvas_log.conf.
Jul 22 23:28:46 kali openvas[11137]: init_openvas: Can not open or create log file or directory. Please check permissions of log files listed in /etc/openvas/openvas_log.conf.
Jul 22 23:28:51 kali openvas[11148]: init_openvas: Can not open or create log file or directory. Please check permissions of log files listed in /etc/openvas/openvas_log.conf.

GVM versions

gsad: Greenbone Security Assistant 21.4.1~dev1
gvmd: Greenbone Vulnerability Manager 21.4.2
openvas-scanner: OpenVAS 21.4.1
gvm-libs: gvm-libs 21.4.1

Environment

Operating system: Kali Linux
Kernel: Linux kali 5.10.0-kali9-amd64 #1 SMP Debian 5.10.46-1kali1 (2021-06-25) x86_64 GNU/Linux
Installation method / source: apt-get install openvas

1 Like

Did you check which log files are listed in this config? Did you check if the directories in this config file are writable by the user running ospd-openvas? The user should be listed in the systemd service file.

1 Like

I had the same issue, but as my user supposedly had the rights to write (at least as far as I could understand) to make things simple I did a

sudo chmod 666 /var/log/gvm/openvas.log

And it solved my issue, it started then

3 Likes

altu, eres el mejor! Gracias por ayudarme. Si, me funcionó.

Hola @Kritzis Kritzis y bienvenido al foro :slight_smile:

Estoy usando un traductor así que por favor perdona cualquier error. Me alegro de que la solución de altu te haya funcionado y gracias por el seguimiento.

Hello Kritzis and welcome to the forum :slight_smile:
I am using a translator so please forgive any errors. I’m glad altu’s solution worked for you and thank you for following up.

1 Like