[22.4 - Docker] Ospd-Openvas shut down

Hello, I installed GSE 22.4 via Docker compose but Ospd-Openvas does not work and just restarts.
In the logs it shows me:

FileNotFoundError: [Errno 2] No such file or directory: ‘/var/lib/notus/advisories/sha256sums’
OSPD[1] 2022-07-26 14:27:05,040: INFO: (ospd.main) Shutting-down server …

It’s normal that this file is not present since I can’t do the update since it only restarts

1 Like

Hey ElChercheur!

We can confirm this issue and are working on a solution! Thank you for reporting!

2 Likes

There seems to be a small issue with ospd-openvas. Can you stop the ospd-openvas container and do a sync without having a running ospd-openvas? If you are following our guide the commands are

docker-compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition stop ospd-openvas
docker-compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition run --rm ospd-openvas greenbone-nvt-sync
docker-compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition up -d
3 Likes

Hello, your solution works thank you

2 Likes

If it helps, the full error is

Traceback (most recent call last):
File “/usr/local/bin/ospd-openvas”, line 8, in
sys.exit(main())
File “/usr/local/lib/python3.9/dist-packages/ospd_openvas/daemon.py”, line 1255, in main
daemon_main(‘OSPD - openvas’, OSPDopenvas, NotusParser())
File “/usr/local/lib/python3.9/dist-packages/ospd/main.py”, line 161, in main
daemon.init(server)
File “/usr/local/lib/python3.9/dist-packages/ospd_openvas/daemon.py”, line 563, in init
self.update_vts()
File “/usr/local/lib/python3.9/dist-packages/ospd_openvas/daemon.py”, line 688, in update_vts
self.nvti.notus.reload_cache()
File “/usr/local/lib/python3.9/dist-packages/ospd_openvas/notus.py”, line 84, in reload_cache
if self._verifier(f):
File “/usr/local/lib/python3.9/dist-packages/ospd_openvas/gpg_sha_verifier.py”, line 116, in verify
assumed_name = sha256sums().get(hash_sum)
File “/usr/local/lib/python3.9/dist-packages/ospd_openvas/gpg_sha_verifier.py”, line 53, in internal_reload
fingerprint = create_hash(config.hash_file)
File “/usr/local/lib/python3.9/dist-packages/ospd_openvas/gpg_sha_verifier.py”, line 47, in create_hash
with file.open(mode=“rb”) as f:
File “/usr/lib/python3.9/pathlib.py”, line 1241, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File “/usr/lib/python3.9/pathlib.py”, line 1109, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: ‘/var/lib/notus/advisories/sha256sums’

1 Like

Thank you. Since I have reproduced your error, I also got the full Traceback of the error. :slight_smile:

2 Likes