Actions
Bug #18814
closedError log about duplicates entries when saving node compliance levels
Status:
Released
Priority:
N/A
Assignee:
Category:
Web - Compliance & node report
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
Description
We still have these logs when they are not in english :(
[2021-01-07 00:16:53+0100] ERROR report - SystemError: Error when saving node compliances:; cause was: java.sql.BatchUpdateException: Batch entry 0 insert into nodecompliancelevels (nodeid,runtimestamp,ruleid,directiveid,pending,success,r... [2021-01-07 00:16:53+0100] ERROR scheduled.job - Error when executing [Store Agent Run Times] scheduler task started at 2021-01-07T00:16:53+01:00, ended at 2021-01-07T00:16:53+01:00. <- SystemError: Error when saving node compliances:; cause was: java.sql.BatchUpdateException: Batch entry 0 insert into nodecompliancelevels (nodeid,runtimestamp,ruleid,directiveid,pending,success,repaired,error,unexpected,missing,noanswer,notapplicable,reportsdisabled,compliant,auditnotapplicable,noncompliant,auditerror,badpolicymode) values ( '1d2dc3f1-fa85-4550-b7dc-504458c3bfd8','2021-01-07 00:01:26+01','aee341b1-97fe-4db0-a48f-4afeef1da629','39c89820-2145-4dcc-bcf9-89d90557f3be',0,4,0,0,0,0,0,4,0,0,0,0,0,0 ) was aborted: ERREUR: la valeur d'une clé dupliquée rompt la contrainte unique « nodecompliancelevels_pkey » Detail: La clé « (nodeid, runtimestamp, ruleid, directiveid)=(1d2dc3f1-fa85-4550-b7dc-504458c3bfd8, 2021-01-07 00:01:26+01, aee341b1-97fe-4db0-a48f-4afeef1da629, 39c89820-2145-4dcc-bcf9-89d90557f3be) » existe déjà. Call getNextException to see other errors in the batch. -> [2021-01-07 00:16:58+0100] ERROR report - SystemError: Error when saving node compliances:; cause was: java.sql.BatchUpdateException: Batch entry 123 insert into nodecompliancelevels (nodeid,runtimestamp,ruleid,directiveid,pending,success...
Actions