Openvas executable not available

I have upgraded my OpenVAS installation from source. Now I am getting the following error:
osp_scanner_feed_version: failed to connect to /run/ospd/ospd-openvas.sock

ERROR: (ospd_openvas.db) openvas executable not available. Please install openvas into your PATH

These are the versions I am using:


uname -a:
Linux debian 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux

Any suggestions?

I have not encountered this particular issue before, but the first thing I would try is to reinstall openvas-scanner according to the most Source Code build instructions. The error is reporting that the openvas -V command has failed.

Thanks for the reply, I will try rebuilding the openvas-scanner. But, when I have encountered the error for the first time, I have rebuilt and reinstalled the system from scratch. Anyway, I will follow your advise and get back with the feedback.

Just followed your instructions, still same error.

It seems that this problem came with the introduction of openvasd. Maybe this could be a clue.

Yes, seems that the documentation removed the installation of mosquitto and enabling the service. You should try:

sudo apt install mosquitto
sudo systemctl start mosquitto
sudo systemctl enable mosquitto

I already had mosuitto installed. So that would not fix the prolblem.

I have starting rebuilding from scratch. When building openvasd, I have noticed at the end of the script output:

sudo cp -v …/target/release/openvasd $INSTALL_DIR/usr/local/bin/
sudo cp -v …/target/release/scannerctl $INSTALL_DIR/usr/local/bin/
sudo cp -rv $INSTALL_DIR/openvasd/* /β€˜β€¦/target/release/openvasd’ β†’ β€˜/home/user/install/usr/local/bin/’
cp: cannot create regular file β€˜/home/user/install/usr/local/bin/’: No such file or directory

When examining

Some it is not copying all the files to proper directories. Could this be an issue?

Please see this post regarding how to correct the build path until the documentation has been corrected! Thanks :smiley:

1 Like