greenbone / gvmd

Greenbone Vulnerability Manager - The database backend for the Greenbone Community Edition
GNU Affero General Public License v3.0
281 stars 153 forks source link

Scan exits after one second and no result ouput #2059

Closed iampilot closed 1 year ago

iampilot commented 1 year ago

Expected behavior

Start a scan task,befor the task done, output result while the host is alive

Actual behavior

Star a scan task, task become done quickly, maybe just spend no more than one minutes and no result ,but the target is alive. If I restart all the Greenbone Community Containers, the problem also can be solved. but sometime I restart the Greenbone Community Containers, the problem still exist

Steps to reproduce

1.Start Greenbone Community Containers and wait all the system server start

  1. create a task and start it
  2. Repeat the above steps several times

GVM versions

docker images version: gsa:stable gvmd:stable ospd-openvas:stable

Environment

redhat-7.9 + docker-compose-2.19.1

Logfiles

`sd main:MESSAGE:2023-08-10 10h02.06 utc:141: openvas 22.7.2 started

sd main:MESSAGE:2023-08-10 10h02.06 utc:141: attack_network_init: INIT MQTT: SUCCESS

sd main:MESSAGE:2023-08-10 10h02.11 utc:141: Vulnerability scan a2951b15-469b-4479-abd4-ad5b61f2be33 started: Target has 1 hosts: 192.168.50.28, with max_hosts = 20 and max_checks = 4

libgvm boreas:MESSAGE:2023-08-10 10h02.11 utc:141: Alive scan a2951b15-469b-4479-abd4-ad5b61f2be33 started: Target has 1 hosts

sd main:MESSAGE:2023-08-10 10h02.12 utc:156: Vulnerability scan a2951b15-469b-4479-abd4-ad5b61f2be33 started for host: 192.168.50.28

libgvm boreas:MESSAGE:2023-08-10 10h02.12 utc:141: Alive scan a2951b15-469b-4479-abd4-ad5b61f2be33 finished in 1 seconds: 1 alive hosts of 1.
`

cfi-gb commented 1 year ago

As the Manager / gvmd isn't executing the scans but just asking openvas-scanner to start and handle them this might need to be moved to:

https://github.com/greenbone/openvas-scanner/issues

cfi-gb commented 1 year ago

Follow-up in greenbone/openvas-scanner#1468