View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006619 | Kali Linux | Kali Package Bug | public | 2020-08-04 05:22 | 2020-08-07 15:57 |
Reporter | RoseDeSable | Assigned To | sbrun | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | kali-dev | ||||
Summary | 0006619: gvm: at start time ospd writes an error message in the log - it seems to exist difficulties with the redis-server | ||||
Description | Hi, Message from syslogd@<my-system> at Aug 4 06:30:35 ... Further I see, that some components for running gvm cannot open their own pid-files the redis-server: redis-server.service: Can't open PID file /run/redis/redis-server.pid the gvmd-service: gvmd.service: Can't open PID file /run/gvm/gvmd.pid (yet?) after s... In some discussions in the internet, I find the note, that the reason for the message "Traceback ..." seems to be an incompatibility of the versions of the components. Here are the versions and releases of my installation: ospd-openvas --version Copyright (C) 2014, 2015, 2018, 2019 Greenbone Networks GmbH Best Regards | ||||
I think you have issue with redis configuration. You mentioned this: But we are not using redis-server.service with openvas-scanner but [email protected] You must have this in the file /etc/openvas/openvas.conf: And where do you find the information that it "seems to be an incompatibility of the versions"? |
|
Hi, "raise response#012redis.exceptions.ResponseError: WRONGTYPE Operation against a key holding the wrong kind of value" As a further detail, I can say that the [email protected] cannot create the pid file but it seems that is only temporary. Aug 04 13:07:33 ovscan4 systemd[1]: [email protected]: Can't open PID file /run/redis-openvas/redis-server.pid (yet?) after start: Operation not permitted here is the output og gvm-check-setup: gvm-check-setup 1.0.0 It seems like your GVM-11 installation is OK. Everything seems fine here Best Regards |
|
Did you have openvas installed before or is it a fresh install of gvm ? |
|
I had a previous version of openvas installed, but I carefully folowed the guide. systemctl restart [email protected] |
|
UPDATE: Step 7: Checking if GVM services are up and running ...
The output of journalxctl -xe is: -- The job identifier is 649722. |
|
Ok, 1) openvas was allready installed on my system 2) db_address = /var/run/redis-openvas/redis-server.sock is in the /etc/openvas/openvas.conf 3) Now I installed the update of the openvas-scanner from today But I did not migrate the db ! The db must be a postgres-db or not ? |
|
OK. If you already removed the old redis DB, I don't know what caused this issue. |
|
Ok, Bye |
|
Ok, Bye |
|
@RoseDeSable my answer was for @fresnel The redis DB is a different thing. Even if you don't migrate your old sqlite database to postgresql, you will have to remove |
|
@RoseDeSable Sorry, I answered at the same time as you |
|
I think I'm already at the latest version gvm: ospd-openvas: and I removed again the redis DB but with no luck UPDATE: Tomorrow I will try to perform a fresh installation and I'll let you know |
|
Hi @sbrun, UPDATE: all works well but when I perform a scan it seems that user _gvm doesn't have permissions to execute nmap, in the scan results i have the following message: ERROR: You requested a Nmap scan type which requires root privileges but scanner is running under an unprivileged user. Start scanner as root or use a different portrange to get this scan working. I tried to add _gvm to the sudoers with this lines: Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/gvm/sbin" But with no luck _gvm ALL = NOPASSWD: /opt/gvm/sbin/gsad |
|
@fresnel You should not need to add _gvm to sudoers. It's already added if you have the ospd-openvas version 1.0.1-1kali2: you must have the file /etc/sudoers.d/ospd-openvas. |
|
@sbrun _gvm ALL = NOPASSWD: / usr / sbin / openvas This makes it even more difficult for me to understand what's going on ... |
|
I don't undestand either... You can try to check the log of openvas: |
|
Also check /var/log/gvm/ospd-openvas.log and try to run "sudo -u _gvm -n openvas -s" to test if the sudo setup is correct. |
|
Hi @sbrun and @kali-bugreport thanks for your help, groupadd pcap and I restarted the GVM services The bad one is that on another server (identical to the other) I still have the redis trackback issue. In this case an update wasn't enough, I repeatedly performed a flush of the redis DB with a restart but the issue persists. |
|
@kali-bugreport I don't have the ospd-openvas.log file, how can I enable it? |
|
@sbrun @kali-bugreport ... openvas: Reloaded 57600 of 61145 NVTs (94% / ETA: 00:02) ... 3943918 openvas: Reloaded 60050 of 61145 NVTs (98% / ETA: 00:00) But when it reaches the 100%, the redis trackback appears and the service shuts down, tries to restart itself and every time it does it (a minute or so) the trackback message appears again this is the ospd-openvas.service status: ospd-openvas.service - OSPD OpenVAS |
|
Another info: when i flush the server and ospd restarts, when it reaches 100% of NVTs reload I have the following error message: OSPD - openvas: ERROR: (ospd_openvas.daemon) OpenVAS Scanner failed to load NVTs. Command '['openvas', '--update-vt-info']' died with <Signals.SIGPIPE: 13>. I have to specify one thing: feed updates are made by root user, because I'm behind a proxy server and sudo doesn't pass the credentials, can it be a problem? |
|
Ok now it seems to work!! gvm-stop Please, leave this tk open until I check everything |
|
OK. Thanks for the update. |
|
Hi, |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2020-08-04 05:22 | RoseDeSable | New Issue | |
2020-08-04 08:06 | sbrun | Note Added: 0013178 | |
2020-08-04 11:55 | fresnel | Note Added: 0013180 | |
2020-08-04 12:30 | sbrun | Note Added: 0013181 | |
2020-08-04 12:41 | fresnel | Note Added: 0013183 | |
2020-08-04 12:53 | fresnel | Note Added: 0013184 | |
2020-08-04 13:27 | RoseDeSable | Note Added: 0013185 | |
2020-08-04 13:41 | sbrun | Note Added: 0013188 | |
2020-08-04 13:44 | RoseDeSable | Note Added: 0013189 | |
2020-08-04 13:55 | RoseDeSable | Note Added: 0013190 | |
2020-08-04 13:55 | sbrun | Note Added: 0013191 | |
2020-08-04 13:58 | sbrun | Note Added: 0013192 | |
2020-08-04 15:30 | fresnel | Note Added: 0013200 | |
2020-08-05 10:19 | sbrun | Assigned To | => sbrun |
2020-08-05 10:19 | sbrun | Status | new => assigned |
2020-08-06 11:13 | fresnel | Note Added: 0013212 | |
2020-08-06 12:40 | sbrun | Note Added: 0013213 | |
2020-08-06 13:08 | fresnel | Note Added: 0013215 | |
2020-08-06 14:11 | sbrun | Note Added: 0013216 | |
2020-08-06 20:26 | kali-bugreport | Note Added: 0013223 | |
2020-08-07 08:54 | fresnel | Note Added: 0013231 | |
2020-08-07 08:55 | fresnel | Note Added: 0013232 | |
2020-08-07 09:26 | fresnel | Note Added: 0013233 | |
2020-08-07 09:45 | fresnel | Note Added: 0013234 | |
2020-08-07 10:28 | fresnel | Note Added: 0013235 | |
2020-08-07 10:35 | sbrun | Note Added: 0013236 | |
2020-08-07 14:59 | fresnel | Note Added: 0013242 | |
2020-08-07 15:57 | sbrun | Status | assigned => resolved |
2020-08-07 15:57 | sbrun | Resolution | open => fixed |