i try atm to upgrade gvm10 to gvm11 in the Source Edition from Github. That i dont loose my tasks i migratet the sqlite to postresql and than i installed the gvm11 source files over the old files… at the moment are all services are running, so gvm, gsad, ospd-openvas and redis.
The problem is now, that when i wanna see the taks i get the follow error:
i have restored now a Snapshot and tried to rebuild the situation … Now i see the tasks, but every time when i try to Scan the Scan starts with 1 % and after few seconds its jump to 100% and finish with an empty report… The problem is… I doesnt find an alert… Not in the syslog, not in the gvmd/gsad/ospd-openvas logs…
I have now installed ospd-2.0 with sudo -H pip3 install ospd successfully, but now i have in the ospd-openvas.log the follow error:
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
2019-10-31 09:02:00,031 OSPD - openvas: ERROR: (ospd.ospd) While handling client command:
Traceback (most recent call last):
File “/home/gvm/.local/lib/python3.6/site-packages/ospd/ospd.py”, line 762, in handle_client_stream
response = self.handle_command(data)
File “/home/gvm/.local/lib/python3.6/site-packages/ospd/ospd.py”, line 1624, in handle_command
File “/home/gvm/.local/lib/python3.6/site-packages/ospd/ospd.py”, line 1011, in handle_get_vts_command
vts_xml = self.get_vts_xml(vt_id, filtered_vts)
File “/home/gvm/.local/lib/python3.6/site-packages/ospd/ospd.py”, line 1545, in get_vts_xml
File “/home/gvm/.local/lib/python3.6/site-packages/ospd/ospd.py”, line 1487, in get_vt_xml
File “/home/gvm/.local/lib/python3.6/site-packages/ospd_openvas/daemon.py”, line 684, in get_affected_vt_as_xml_str
_affected.text = affected
File “src/lxml/etree.pyx”, line 1023, in lxml.etree._Element.text.set
File “src/lxml/apihelpers.pxi”, line 734, in lxml.etree._setNodeText
File “src/lxml/apihelpers.pxi”, line 722, in lxml.etree._createTextNode
File “src/lxml/apihelpers.pxi”, line 1527, in lxml.etree._utf8
Btw. can someone explain me why the installation with sudo -H works, but w.o sudo its make the error with core dumped?
Every Linux Distribution and personal settings might be different, sometimes it´s the terminal encoding, messed up libraries or a bad combination of settings and/or permissions. I am very sorry but with this amount of information no one can debug your issues via this forum. You need to learn how to use tools like GDB and STRACE to be able to debug your own issues.
This message was caused by a single VT added to the feed recently which had a special control char in the “affected” tag. This special char has already been removed and the updated VT should be included in one of the next feed updates, in addition the ospd-openvas is getting improved to handle such special chars more gracefully: