admirito / gvm-containers

Greenbone Vulnerability Management Containers
87 stars 58 forks source link

Can't create Tasks 'Failed to find config 'daba56c8-73ec-11df-a475-002264764cea' and no Scan Configs #60

Open y0y04 opened 2 years ago

y0y04 commented 2 years ago

Hi! I just set up my environment with docke-compose. Docker containers are all up, but when I want to create a new Task it throws the following error: 'Failed to find config 'daba56c8-73ec-11df-a475-002264764cea'. Then I realized there is no default Scan Config (Full and Fast, Host Discovering... etc.) Is there a way I can update or any site where I can download this?

Saying that, I'm sharing a few screenshots of the current state:

image

image

Any response would be nice for me, thank you in advance!

QuaiGoner commented 2 years ago

Same issue here, and docker-compose up shows this image

meetri commented 2 years ago

This helped me. The ospd-openvas.sock is misconfigured in the helm chart's ./templates/gvmd-deployment.yaml file. Applying the following patch should solve the problem.

diff --git a/chart/gvm/templates/gvmd-deployment.yaml b/chart/gvm/templates/gvmd-deployment.yaml
index 7e54794..a36737d 100644
--- a/chart/gvm/templates/gvmd-deployment.yaml
+++ b/chart/gvm/templates/gvmd-deployment.yaml
@@ -95,7 +95,7 @@ spec:
         - name: {{ .Chart.Name }}-openvas-connector
           image: "{{ tpl .Values.image.socat.registry . }}/{{ tpl .Values.image.socat.repository . }}:{{ tpl .Values.image.socat.tag . }}"
           imagePullPolicy: {{ tpl .Values.image.socat.pullPolicy . }}
-          args: ["-d", "-d", "UNIX-LISTEN:/run/ospd/ospd.sock,fork", "TCP4-CONNECT:{{ include "gvm.fullname" . }}-openvas:9391"]
+          args: ["-d", "-d", "UNIX-LISTEN:/run/ospd/ospd-openvas.sock,fork", "TCP4-CONNECT:{{ include "gvm.fullname" . }}-openvas:9391"]
           volumeMounts:
             - name: run-dir
               mountPath: /run
QuaiGoner commented 2 years ago

Unfortunately issue persists after changine osdp.sock to ospd-openvas.sock

harshalgithub commented 2 years ago

Hi @admirito

Getting below error, could you please guide here,

All containers are UP:

image

gvm-containers-admirito-gvmd-1 | md manage:WARNING:2022-05-25 12h00.13 UTC:1294: osp_scanner_feed_version: failed to connect to /run/ospd/ospd-openvas.sock

image

PostgresQL connection refused

image

fadjar340 commented 2 years ago

Hi...

I think the problem is the sock file. There is no /run/ospd/ospd-openvas.sock, there is only /run/ospd/ospd.sock , so the scanner can not fire-up because wrong file.

It should be check in the /usr/lib/systemd/system/gvmd.service image

I saw in the /run/ospd only have ospd.sock.

Regards, Fadjar Tandabawana

fadjar340 commented 2 years ago

This helped me. The ospd-openvas.sock is misconfigured in the helm chart's ./templates/gvmd-deployment.yaml file. Applying the following patch should solve the problem.

diff --git a/chart/gvm/templates/gvmd-deployment.yaml b/chart/gvm/templates/gvmd-deployment.yaml
index 7e54794..a36737d 100644
--- a/chart/gvm/templates/gvmd-deployment.yaml
+++ b/chart/gvm/templates/gvmd-deployment.yaml
@@ -95,7 +95,7 @@ spec:
         - name: {{ .Chart.Name }}-openvas-connector
           image: "{{ tpl .Values.image.socat.registry . }}/{{ tpl .Values.image.socat.repository . }}:{{ tpl .Values.image.socat.tag . }}"
           imagePullPolicy: {{ tpl .Values.image.socat.pullPolicy . }}
-          args: ["-d", "-d", "UNIX-LISTEN:/run/ospd/ospd.sock,fork", "TCP4-CONNECT:{{ include "gvm.fullname" . }}-openvas:9391"]
+          args: ["-d", "-d", "UNIX-LISTEN:/run/ospd/ospd-openvas.sock,fork", "TCP4-CONNECT:{{ include "gvm.fullname" . }}-openvas:9391"]
           volumeMounts:
             - name: run-dir
               mountPath: /run

It should be the solution, but no new push code for this..

Regards, Fadjar Tandabawana