You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The column hash_value is added to the results and report_host_details tables when the gvmd DB is migrated from the version 251 to version 252 and from the version 252 to version 253 accordingly, but is not created when the tables are newly created. This makes gvmd failed to save scan results, as shown in the following logs:
md manage:WARNING:2023-05-22 09h05.01 UTC:986: sql_exec_internal: PQexec failed: ERROR: column "hash_value" does not exist
LINE 1: ...ISTS (SELECT * FROM results WHERE report = 1 and hash_value...
^
(7)
md manage:WARNING:2023-05-22 09h05.01 UTC:986: sql_exec_internal: SQL: SELECT EXISTS (SELECT * FROM results WHERE report = 1 and
hash_value = '...');
md manage:WARNING:2023-05-22 09h05.01 UTC:986: sql_x: sql_exec_internal failed
md manage:WARNING:2023-05-22 09h05.01 UTC:986: manage_cleanup_process_error: Error exit, setting running task to Interrupted
md manage:WARNING:2023-05-22 09h05.01 UTC:986: sql_exec_internal: PQexec failed: ERROR: current transaction is aborted, commands
ignored until end of transaction block
(7)
md manage:WARNING:2023-05-22 09h05.01 UTC:986: sql_exec_internal: SQL: UPDATE reports SET scan_run_status = 13 WHERE id = 1;
md manage:WARNING:2023-05-22 09h05.01 UTC:986: sqlv: sql_exec_internal failed
LINE 1: ...OM report_host_details WHERE report_host = 9 and hash_value...
^
(7)
md manage:WARNING:2023-05-22 10h10.14 UTC:6511: sql_exec_internal: SQL: SELECT EXISTS (SELECT * FROM report_host_details WHERE report_host = 9 and hash_value = '...');
md manage:WARNING:2023-05-22 10h10.14 UTC:6511: sql_x: sql_exec_internal failed
md manage:WARNING:2023-05-22 10h10.14 UTC:6511: manage_cleanup_process_error: Error exit, setting running task to Interrupted
md manage:WARNING:2023-05-22 10h10.14 UTC:6511: sql_exec_internal: PQexec failed: ERROR: current transaction is aborted, commands ignored until end of transaction block
(7)
md manage:WARNING:2023-05-22 10h10.14 UTC:6511: sql_exec_internal: SQL: UPDATE reports SET scan_run_status = 13 WHERE id = 3;
md manage:WARNING:2023-05-22 10h10.14 UTC:6511: sqlv: sql_exec_internal failed
Steps to reproduce
Install a new gvmd version using the latest main/stable source.
Launch a scan.
Observer the error in the log file.
The text was updated successfully, but these errors were encountered:
Expected behavior
gvmd
properly save scan results.Actual behavior
The column
hash_value
is added to theresults
andreport_host_details
tables when the gvmd DB is migrated from the version 251 to version 252 and from the version 252 to version 253 accordingly, but is not created when the tables are newly created. This makesgvmd
failed to save scan results, as shown in the following logs:Steps to reproduce
gvmd
version using the latest main/stable source.The text was updated successfully, but these errors were encountered: