Actions
Bug #18188
closedError log about duplicates entries when saving node compliance levels
Status:
Released
Priority:
N/A
Assignee:
Category:
Web - Config management
Target version:
Pull Request:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Checked
Regression:
Description
[2020-09-09 14:14:02+0000] INFO policy.generation.timing - Policy generation succeeded in: 10 s [2020-09-09 14:14:02+0000] INFO policy.generation.manager - Flag file '/opt/rudder/etc/policy-update-running' successfully removed [2020-09-09 14:14:02+0000] INFO policy.generation.manager - Flag file '/opt/rudder/etc/trigger-policy-generation' successfully removed [2020-09-09 14:14:02+0000] INFO policy.generation.manager - Successful policy update '16' [started 2020-09-09 14:13:51 - ended 2020-09-09 14:14:02] [2020-09-09 14:14:12+0000] INFO compliance - [metrics] global compliance (number of components): 12 [p:0 s:1 r:1 e:0 u:0 m:4 nr:4 na:2 rd:0 c:0 ana:0 nc:0 ae:0 bpm:0] [2020-09-09 14:16:13+0000] 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... [2020-09-09 14:16:13+0000] ERROR application - Error when executing [Store Agent Run Times] scheduler task started at 2020-09-09T14:16:13Z, ended at 2020-09-09T14:16:13Z. <- 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 ( 'root','2020-09-09 14:05:30+00'::timestamp with time zone,'server-roles','server-roles-directive',0,24,0,0,0,0,0,1,0,0,0,0,0,0 ) was aborted: ERROR: duplicate key value violates unique constraint "nodecompliancelevels_pkey" Detail: Key (nodeid, runtimestamp, ruleid, directiveid)=(root, 2020-09-09 14:05:30+00, server-roles, server-roles-directive) already exists. Call getNextException to see other errors in the batch. -> [2020-09-09 14:16:13+0000] INFO inventory-processing - Watch new inventory file 'server-root.ocs' with signature available: process.
Actions