Project

General

Profile

Actions

Enhancement #9752

closed

Document stopping process before Postgres restore maintenance to avoid primary key constrain get corrupted

Added by Nicolas CHARLES almost 8 years ago. Updated 7 months ago.

Status:
Released
Priority:
1 (highest)
Category:
Web - Compliance & node report
Target version:
UX impact:
Suggestion strength:
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Very Small
Name check:
Fix check:
Checked
Regression:
No

Description

After some time, we understood that the problem seems to be that some primary key constraints get dropped during upgrade. So we can have a totally wrong schema!

Logs contains following error:

"[2016-11-30 13:59:04] ERROR com.normation.rudder.batch.AutomaticReportLogger$LAAutomaticReportLogger - could not fetch last id, don't log anything, wait next run, cause is Error when parsing property 'reportLoggerLastId'" 

and indeed, entry is duplicated in database:

select value from rudderproperties where name='reportLoggerLastId';
value
-----------
153729188
153729188

It occured during an upgrade, with the upgrade script that failed due to invalid db name used

Actions

Also available in: Atom PDF