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
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.
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.
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.
/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–” ???