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
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
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’