Scan failed with "Interrupted", but openvas scan look fine

After updating to 20.8.0 some scan’s failed with the state of Interrupted.
As far I can see in log file, the openvas scan itself will run complete fine.
openvas log:

sd main:MESSAGE:2020-09-03 08h42.35 utc:6365: Vulnerability scan 690a3bc2-8dc5-4b26-97da-2b0419ddb01b finished for host XXX in 984.58 seconds
sd main:MESSAGE:2020-09-03 08h42.35 utc:6324: Vulnerability scan 690a3bc2-8dc5-4b26-97da-2b0419ddb01b finished in 990 seconds: 1 hosts

gvmd.log

event task:MESSAGE:2020-09-03 10h42.37 CEST:5922: Status of task XXX (cc39df54-fc68-4d40-ab59-f5613c1305a6) has changed to Interrupted

Set log_whole_attack = yes for openvas will not shown an error at the end.

How can I debug it?

Thanks for any ideas.

i have the exact same problem since i installed version 20.08

Thanks

After some debugging it looks like an problem with the python part(ospd-openvas/ospd) or the openvas scanner itself. So the gvmd is not the source of the problem. I have open an bug report for it. When you have more information, please add it to it. Here the link of it:

1 Like

Ah, thank you! I thought it was just mine! Same issue here. The task says “interrupted”, but the log file just says “finished” with no real suggestion of an error. Looks like it’s still an open issue on GitHub?

We are currently not able to reproduce this issue. Therefore it will take some time until it will get fixed.

2 Likes

got the same issue, maybe you should provide more detailed log for troubleshooting instead of this very general error msg:
image

Same problem here also. Tested with gvmd 20.08.0~git-c3857ab7d-gvmd-20.08 (latest 20.08 release build, as of today) and ospd-openvas:

OSP Server for openvas: 20.8.0
OSP: 20.8.2.dev1
OSPd OpenVAS: 20.8.2.dev1

GVMD put the task in interrupted state, while ospd-openvas says the task has finished properly.

Same issue, here is my log
OpenvasDB.remove_list_item(self.ctx, key, value)
File “/usr/lib/python3/dist-packages/ospd_openvas/db.py”, line 230, in remove_list_item
ctx.lrem(key, count=LIST_ALL, value=value)
TypeError: lrem() got an unexpected keyword argument ‘count’
OSPD[384939] 2021-06-03 20:15:53,426: INFO: (ospd.ospd) d1418a5e-a35f-4507-8d8b-a1300b3c894c: Host scan finished. Progress: 0, Status: RUNNING
OSPD[384939] 2021-06-03 20:15:53,427: INFO: (ospd.ospd) d1418a5e-a35f-4507-8d8b-a1300b3c894c: Scan interrupted.
OSPD[384939] 2021-06-03 20:15:53,878: INFO: (ospd.ospd) d1418a5e-a35f-4507-8d8b-a1300b3c894c: Scan process is dead and its progress is 0
OSPD[384939] 2021-06-03 20:15:53,879: INFO: (ospd.ospd) d1418a5e-a35f-4507-8d8b-a1300b3c894c: Scan interrupted.
OSPD[384939] 2021-06-03 20:15:54,112: INFO: (ospd.ospd) d1418a5e-a35f-4507-8d8b-a1300b3c894c: Scan process is dead and its progress is 0
OSPD[384939] 2021-06-03 20:15:54,112: INFO: (ospd.ospd) d1418a5e-a35f-4507-8d8b-a1300b3c894c: Scan interrupted.

It seems some outdated python3 packages broke the ospd/db.py which causes the issue.
Currently I have able to fix the issue by simply updating the outdated python packages.
try this:
pip3 list --outdated --format=freeze | grep -v ‘^-e’ | cut -d = -f 1 | xargs -n1 sudo pip3 install -U

But i don’t know if it will work for you or not.

This is my log under /var/log/gvm/ospd-openvas.log

OSPD[9871] 2021-06-04 09:16:47,171: INFO: (ospd.main) Starting OSPd OpenVAS version 20.8.2.
OSPD[9871] 2021-06-04 09:19:45,146: INFO: (ospd.command.command) Scan 1156f12f-9ad8-4f42-9de6-1dca12a7304f added to the queue in position 1.
OSPD[9871] 2021-06-04 09:19:59,226: INFO: (ospd.ospd) Currently 1 queued scans.
OSPD[9871] 2021-06-04 09:19:59,427: INFO: (ospd.ospd) Starting scan 1156f12f-9ad8-4f42-9de6-1dca12a7304f.

1 Like