При запуске сканирования возникает ошибка ERROR: (ospd.ospd) While handling client command..
При этом в журнале /var/log/gvm/ospd-scanner.log
присутствует следующая запись
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | OSPD[4043130] 2022-09-09 03:57:54,623: ERROR: (ospd.ospd) While handling client command: Traceback (most recent call last): File "/opt/atomicorp/lib/python3.8/site-packages/ospd/ospd.py", line 484, in handle_client_stream self.handle_command(data, stream) File "/opt/atomicorp/lib/python3.8/site-packages/ospd/ospd.py", line 1223, in handle_command response = command.handle_xml(tree) File "/opt/atomicorp/lib/python3.8/site-packages/ospd/command/command.py", line 576, in handle_xml scan_id = self._daemon.create_scan( File "/opt/atomicorp/lib/python3.8/site-packages/ospd/ospd.py", line 1402, in create_scan return self.scan_collection.create_scan( File "/opt/atomicorp/lib/python3.8/site-packages/ospd/scan.py", line 323, in create_scan scan_info = self.data_manager.dict() # type: Dict File "/usr/lib64/python3.8/multiprocessing/managers.py", line 740, in temp token, exp = self._create(typeid, *args, **kwds) File "/usr/lib64/python3.8/multiprocessing/managers.py", line 623, in _create conn = self._Client(self._address, authkey=self._authkey) File "/usr/lib64/python3.8/multiprocessing/connection.py", line 506, in Client c = SocketClient(address) File "/usr/lib64/python3.8/multiprocessing/connection.py", line 634, in SocketClient s.connect(address) FileNotFoundError: [Errno 2] No such file or directory |
Решение проблемы тривиальное, необходимо изменить версию python3 по умолчанию, командой ниже
1 | alternatives --set python3 /usr/bin/python3.8 |
перезапуск сервиса не требуется, OpenVAS сам подхватит изменения.