Hi,
One of my scans fails when trying to insert the results into the postgres database. This is after an upgrade from 22.4 to 23 (I did run the “gvmd --migrate” command). The error only seems to occur when I run a scan that logs into the target system using ssh.
The problematic insert seems to be ‘None’ into the severity column.
OpenVAS 23.0.1
gvm-libs 22.8.0
Greenbone Vulnerability Manager 23.2.0
Manager DB revision 255
Any help would be appreciated.
d manage:WARNING:2024-05-29 12h36.45 UTC:302956: sql_exec_internal: PQexec failed: ERROR: invalid input syntax for type real: "None"
LINE 1: ....3.6.1.4.1.25623.1.1.12.2024.6708.1', '', 'None', 'A...
^
(7)
md manage:WARNING:2024-05-29 12h36.45 UTC:302956: sql_exec_internal: SQL: INSERT into results (owner, date, task, host, hostname, port, nvt, nvt_version, severity, type, qod, qod_type, description, path, uuid, result_nvt, hash_value) VALUES (NULL, m_now(), 50, '192.168.35.89', '', 'package', '1.3.6.1.4.1.25623.1.1.12.2024.6708.1', '', 'None', 'Alarm', 75, '', '
Vulnerable package: graphviz
Installed version: 2.42.2-6
Fixed version: >=2.42.2-6ubuntu0.1~esm1
', '', make_uuid (), (SELECT id FROM result_nvts WHERE nvt = '1.3.6.1.4.1.25623.1.1.12.2024.6708.1'), '1ffd7ec43e3356a644a9536a52160e75');
md manage:WARNING:2024-05-29 12h36.45 UTC:302956: sqlv: sql_exec_internal failed
md manage:WARNING:2024-05-29 12h36.45 UTC:302956: manage_cleanup_process_error: Error exit, setting running task to Interrupted
md manage:WARNING:2024-05-29 12h36.45 UTC:302956: sql_exec_internal: PQexec failed: ERROR: current transaction is aborted, commands ignored until end of transaction block
(7)
md manage:WARNING:2024-05-29 12h36.45 UTC:302956: sql_exec_internal: SQL: UPDATE reports SET scan_run_status = 13 WHERE id = 144;
md manage:WARNING:2024-05-29 12h36.45 UTC:302956: sqlv: sql_exec_internal failed