I am unable to start ospd-service.WARNING: (ospd_openvas.openvas) Could not gather openvas settings. Reason Command '['openvas', '-s']' returned non-zero exit status 127

I am unable to start ospd-service. Below are certain details i am able to gather
please help me in troubleshooting the issue . Any other information i need to provide
, i will provide.

I have searched the internet for same issue but not able to resolve issue by myself.

sudo systemctl start ospd-openvas
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.

cat /var/log/gvm/ospd-openvas.log

OSPD[3228] : WARNING: (ospd_openvas.openvas)
Could not gather openvas settings. Reason Command ‘[‘openvas’, ‘-s’]’ returned non-zero exit status 127.

ospd-openvas.service
Loaded: loaded (/etc/systemd/system/ospd-openvas.service; disabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since ; 37s a>
Process: 3502 ExecStart=/usr/local/bin/ospd-openvas

–unix-socket /run/ospd/ospd-openvas.sock --pid-file /run/ospd/ospd-openvas.pid

–log-file /var/log/gvm/ospd-openvas.log

–lock-file-dir /var/lib/openvas --socket-mode 0o770

–mqtt-broker-port 1883 --notus-feed-dir /var/lib/notus/advisories (code=exited, status=1/FAILURE

CPU: 384ms

Building 22.4 from Source

Debian GNU/Linux 11 (bullseye)

please help me

thank you
warm regards

Hi,

you should take a look at /var/lib/gvm/openvas.log too to get a hint why openvas isn’t starting.

Thank You Sir for your valuable reply.

but unfortunately there is no openvas.log file in /var/lib/gvm

debianuser@debianhostname:~$ sudo find / -type f -name openvas.log
[sudo] password for debianuser:
find: ‘/run/user/1000/gvfs’: Permission denied
find: ‘/run/user/115/gvfs’: Permission denied
/var/log/gvm/openvas.log

openvas.log file is only present in the location /var/log/gvm/openvas.log

Is there any other suggestion you can provide for troubleshooting this issue.

I can provide you with further details which ever you require.

looking for your reply

Thank you
Warm regards

Oh sorry, of course the path to all log files on your system must be /var/log on no log file should be in /var/lib! Therefore please take a look at /var/log/gvm/openvas.log.

Sir,

I take a look at the specified location and in the concerned file below is the entry in the log file

OSPD[3228] : WARNING: (ospd_openvas.openvas)
Could not gather openvas settings. Reason Command ‘[‘openvas’, ‘-s’]’ returned non-zero exit status 127.
[/quote]

requesting you to help me regarding where i get the solution.

thank you
warm regards

Sorry that’s the content of the /var/log/gvm/ospd-openvas.log file. We need the content of the /var/log/gvm/openvas.log file. If that file doesn’t exist you can also try running openvas -s and check if an error occurs.

Sir,

Logs in /var/log/gvm/openvas.log

cat /var/log/gvm/openvas.log

/var/lib/openvas/plugins/plugin_feed_info.inc: Not able to open nor to locate it in include paths
lib nasl

/var/lib/openvas/plugins/plugin_feed_info.inc: Not able to open nor to locate it in include paths
libgvm util

now i run the below command

cat /var/lib/openvas/plugins/plugin_feed_info.inc

Copyright (C) 2023 Greenbone Networks GmbH

SPDX-License-Identifier: GPL-2.0-or-later

This program is free software; you can redistribute it and/or

modify it under the terms of the GNU General Public License

as published by the Free Software Foundation; either version 2

of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

GNU General Public License for more details.

You should have received a copy of the GNU General Public License

along with this program; if not, write to the Free Software

Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

PLUGIN_SET = “202301051013”;
PLUGIN_FEED = “Greenbone Community Feed”;
FEED_VENDOR = “Greenbone Networks GmbH”;
FEED_HOME = “https://www.greenbone.net/en/feed-comparison/”;
FEED_NAME = “GCF”;

the above file can be located and open

now i check the permission of the above file

ls -l /var/lib/openvas/plugins/plugin_feed_info.inc

-rw-rwSr-- 1 gvm gvm 986 Jan 5 15:43 /var/lib/openvas/plugins/plugin_feed_info.inc

or i have to set the path “/var/lib/openvas/plugins/plugin_feed_info.inc”
in some configuration file???

now should i change the permission of the above file to “-rw-rwSr–” ???

Sir,

Logs in /var/log/gvm/openvas.log

cat /var/log/gvm/openvas.log

/var/lib/openvas/plugins/plugin_feed_info.inc: Not able to open nor to locate it in include paths
lib nasl

/var/lib/openvas/plugins/plugin_feed_info.inc: Not able to open nor to locate it in include paths
libgvm util

now i run the below command

cat /var/lib/openvas/plugins/plugin_feed_info.inc

Copyright (C) 2023 Greenbone Networks GmbH
SPDX-License-Identifier: GPL-2.0-or-later
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
PLUGIN_SET = “202301051013”;
PLUGIN_FEED = “Greenbone Community Feed”;
FEED_VENDOR = “Greenbone Networks GmbH”;
FEED_HOME = “https://www.greenbone.net/en/feed-comparison/”;
FEED_NAME = “GCF”;

the above file can be located and open

now i check the permission of the above file

ls -l /var/lib/openvas/plugins/plugin_feed_info.inc

-rw-rwSr-- 1 gvm gvm 986 Jan 5 15:43 /var/lib/openvas/plugins/plugin_feed_info.inc

or i have to set the path “/var/lib/openvas/plugins/plugin_feed_info.inc”
in some configuration file???

now should i change the permission of the above file to “-rw-rwSr–” ???

Hi,

IMHO your feed sync isn’t completed or did break. Try to remove the /var/lib/openvas/plugins/ directory and re-run sudo -u gvm greenbone-nvt-sync.

1 Like