Hello y’all.
I’m having trouble getting the GVM to start properly. I’ve refrained from posting here as I’ve read many times that if you’re not experienced with building from source - which I’m not - it’s advised to rather use the GSM Trial or similar.
Since I’ve put a lot of research and work into this already and feel like I’m almost there, I really want to finish it though, so if you could push me in the right direction, I’d be very grateful.
I have written a setup script for this service which downloads the release .tar.gz archives, extracts them and builds the Software. The versions I use are listed below.
I installed everything in /opt/gvm.
PostgreSQL and Redis-Server as well as GVMD and GSAD are running fine.
When I try to start ospd-openvas.service, it fails though.
I don’t know if I completely borked something, but I feel I’m just missing some detail somewhere. Logs (see below) say No such file or directory: 'openvas': 'openvas'
.
My guess is, that it has to do with the config-files that exist as examples in $SOURCE_DIR/ospd-openvas-21.4.3/config
but I thought I had those covered with the start options in my service file.
Can anyone please help me?
cat /etc/systemd/system/ospd-openvas.service
[Unit]
Description=Open Scanner Protocol daemon for OpenVAS
After=network.target redis-server@openvas.service
Wants=redis-server@openvas.service
[Service]
Type=forking
User=gvm
Group=gvm
WorkingDirectory=/opt/gvm
PIDFile=/opt/gvm/run/gvm/ospd-openvas.pid
ExecStart=/opt/gvm/bin/ospd-scanner/bin/python /opt/gvm/bin/ospd-scanner/bin/ospd-openvas --pid-file /opt/gvm/run/gvm/ospd-openvas.pid --unix-socket=/opt/gvm/run/gvm/ospd.sock --log-file /opt/gvm/var/log/gvm/ospd-scanner.log --lock-file-dir /opt/gvm/run/gvm/ospd
Restart=on-failure
RestartSec=2min
KillMode=process
KillSignal=SIGINT
GuessMainPID=no
PrivateTmp=true
[Install]
WantedBy=multi-user.target
cat /opt/gvm/var/log/gvm/ospd-scanner.log:
...
OSPD[1097] 2021-12-01 21:12:46,202: WARNING: (ospd_openvas.openvas) Could not gather openvas settings. Reason [Errno 2] No such file or directory: 'openvas': 'openvas'
OSPD[1097] 2021-12-01 21:12:51,210: WARNING: (ospd_openvas.openvas) Could not gather openvas settings. Reason [Errno 2] No such file or directory: 'openvas': 'openvas'
OSPD[1097] 2021-12-01 21:12:56,218: WARNING: (ospd_openvas.openvas) Could not gather openvas settings. Reason [Errno 2] No such file or directory: 'openvas': 'openvas'
OSPD[1097] 2021-12-01 21:13:01,225: WARNING: (ospd_openvas.openvas) Could not gather openvas settings. Reason [Errno 2] No such file or directory: 'openvas': 'openvas'
OSPD[1097] 2021-12-01 21:13:06,232: WARNING: (ospd_openvas.openvas) Could not gather openvas settings. Reason [Errno 2] No such file or directory: 'openvas': 'openvas'
OSPD[1097] 2021-12-01 21:13:11,237: ERROR: (ospd_openvas.db) Redis Error: Not possible to connect to the kb.
OSPD[1137] 2021-12-01 21:15:11,453: WARNING: (ospd_openvas.openvas) Could not gather openvas settings. Reason [Errno 2] No such file or directory: 'openvas': 'openvas'
OSPD[1137] 2021-12-01 21:15:16,461: WARNING: (ospd_openvas.openvas) Could not gather openvas settings. Reason [Errno 2] No such file or directory: 'openvas': 'openvas'
OSPD[1137] 2021-12-01 21:15:21,468: WARNING: (ospd_openvas.openvas) Could not gather openvas settings. Reason [Errno 2] No such file or directory: 'openvas': 'openvas'
OSPD[1137] 2021-12-01 21:15:26,475: WARNING: (ospd_openvas.openvas) Could not gather openvas settings. Reason [Errno 2] No such file or directory: 'openvas': 'openvas'
OSPD[1137] 2021-12-01 21:15:31,482: WARNING: (ospd_openvas.openvas) Could not gather openvas settings. Reason [Errno 2] No such file or directory: 'openvas': 'openvas'
OSPD[1137] 2021-12-01 21:15:36,488: ERROR: (ospd_openvas.db) Redis Error: Not possible to connect to the kb.
echo $PATH
/home/my-user/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/gvm/sbin:/opt/gvm/bin
GVM versions
gsad: 21.4.3
gvmd: 21.4.4
openvas-scanner: 21.4.3
gvm-libs: 21.4.3
Environment
Operating system: Debian 10 / Buster
Kernel: Linux 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64 GNU/Linux
Installation method / source: Built from source via shell script