Unable to start Open Scanner Protocol daemon

GVM versions

gsa: v9.0.1
gvm: v9.0.1
openvas-scanner: v7.0.1
gvm-libs: v11.0.1

Environment

**Operating system: docker:ubuntu18.04 **
Kernel: Linux af9a6d586536 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Installation method / source: Built from source to docker image

Hello, I have built everything from source except gvm-tools and python-gvm (installed with pip3).

When I try to launch ospd-openvas, it gives me these errors:

File “/usr/local/bin/ospd-openvas”, line 11, in
load_entry_point(‘ospd-openvas==1.0.1’, ‘console_scripts’, ‘ospd-openvas’)()
File “/usr/local/lib/python3.6/dist-packages/ospd_openvas-1.0.1-py3.6.egg/ospd_openvas/daemon.py”, line 1670, in main
File “/usr/local/lib/python3.6/dist-packages/ospd-2.0.1-py3.6.egg/ospd/main.py”, line 123, in main
File “/usr/local/lib/python3.6/dist-packages/ospd-2.0.1-py3.6.egg/ospd/main.py”, line 104, in init_logging
FileNotFoundError: [Errno 2] No such file or directory

Haven’t been able to detect the issue: what file is not found?
All guidance/help would be greatly appreciated.

Thanks in advance,
mark0w

Take a look at

where the error occurs. ospd tries to open /dev/log for logging to syslog. I guess because you are using a docker image this device isn’t available. In that case please specify a log file or run ospd-openvas in the foreground.

2 Likes

Thank you for such a quick reply! Will try it out and see what happens :slight_smile: