You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the docker-compose.yml the openvasd service definition is missing the OSPD socket to connect to.
The error is shown here:
root@tpg-scanner:/opt/container/prod/greenbone# docker logs greenbone-community-edition-openvasd-1
2025-02-12T01:01:21.788661Z INFO openvasd: Configuring storage devices mode=ServiceNotus storage_type=InMemory
2025-02-12T01:01:21.789603Z INFO openvasd: Using in-memory storage. No sensitive data will be stored on disk.
2025-02-12T01:01:21.803006Z WARN openvasd: OSPD socket /var/run/ospd/ospd-openvas.sock does not exist. Some commands will not work until the socket is created!
2025-02-12T01:01:21.805083Z WARN openvasd: enable_get_scans=false
2025-02-12T01:01:21.815617Z WARN openvasd::controller::context: Neither mTLS nor an API key are set. /scans endpoint is unsecured.
This causes scans to be completed very quick.
Adding - ospd_openvas_socket_vol:/var/run/ospd to the volumes definition of the service and restarting, while giving the error means that the OSPD can execute the plugins.
The error can probably be resolved by adding a dependency for startup.
the line 2025-02-12T01:01:21.803006Z WARN openvasd: OSPD socket /var/run/ospd/ospd-openvas.sock does not exist. Some commands will not work until the socket is created! seems to be an output bug as openvasd does not need a ospd socket when running in mode=ServiceNotus.
I have put the additional line in as per my previous comment. Without it, I found that a scan would complete in approx 1 minute. With the additional volume line in, it scanned for ~10 minutes on the one machine.
Activity
ArnoStiefvater commentedon Feb 13, 2025
Hey @gooseleggs
the line
2025-02-12T01:01:21.803006Z WARN openvasd: OSPD socket /var/run/ospd/ospd-openvas.sock does not exist. Some commands will not work until the socket is created!seems to be an output bug as openvasd does not need a ospd socket when running inmode=ServiceNotus.For your other point, can you please provide the docker-compose.yml you used? Is it the current yml of the docs (https://github.com/greenbone/docs/blob/main/src/_static/docker-compose-22.4.yml)?
gooseleggs commentedon Feb 13, 2025
It appears that this issue is in the wrong repository! Sorry - should it be moved?
Anyway. Yes, I think I am using the 22.4 docker-compose.yml. I found a few around the place. This is the current one that I am using:
I have put the additional line in as per my previous comment. Without it, I found that a scan would complete in approx 1 minute. With the additional volume line in, it scanned for ~10 minutes on the one machine.
postleon commentedon Oct 9, 2025
gsa:
image: registry.community.greenbone.net/community/gsa:stable
restart: on-failure
ports:
- 9392:80
bjoernricks commentedon Oct 10, 2025
This has nothing to do with this issue.