Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Back up validation fails due to PostGis Extension #763

Closed
rstens opened this issue Jul 30, 2020 · 4 comments
Closed

Back up validation fails due to PostGis Extension #763

rstens opened this issue Jul 30, 2020 · 4 comments
Assignees
Labels
Bug Something isn't working Ready This is ready to be pulled into a sprint

Comments

@rstens
Copy link
Member

rstens commented Jul 30, 2020

Describe the Bug
We have a PostgreSQL database with PostGIS installed.
The back up validation fails with:

[!!ERROR!!] - Backup verification failed; /backups/daily/2020-07-29/invasivesbc-api-postgresql-test-InvasivesBC_2020-07-29_16-50-15.sql.gz

The following issues were encountered during backup verification;
ERROR:  could not open extension control file "/opt/rh/rh-postgresql10/root/usr/share/pgsql/extension/postgis.control": No such file or directory

Elapsed time: 0h:0m:40s - Status Code: 3

Other psql extensions might suffer from this as well.

Expected Behaviour
The backup validation works

** Steps To Reproduce**
Steps to reproduce the behaviour:

  1. Open the back up pod (tested on test)
  2. run./backup.sh -v all
  3. See error
@rstens rstens added the Bug Something isn't working label Jul 30, 2020
@rstens
Copy link
Member Author

rstens commented Jul 30, 2020

Also reported at: BCDevOps/backup-container#58
Wade's comment is that this needs to be enhancement for the backup solution.

@ZoeSimon ZoeSimon added the Ready This is ready to be pulled into a sprint label Jul 30, 2020
@ZoeSimon ZoeSimon added this to the Sprint #2 - Babine Lake milestone Jul 30, 2020
@rstens
Copy link
Member Author

rstens commented Aug 4, 2020

Running into some issues related to combining two docker definitions and making it work in the same way. COntinuing

@rstens
Copy link
Member Author

rstens commented Aug 7, 2020

To run a restore:

Scale pods down:

  • Metabase (only in Prod)
  • API (remove autoscale first and then restore that afterwards)
  • Schema Spy
  • Prod Database (and then bring up again to sever all connections)
  • The app can be left, but users will see an error msg

In Backup pod run:
./backup.sh -r invasivesbc-api-postgresql-test/InvasivesBC
Check ./backup.sh -h for options if you want a specific file.

Verification of successful restore:

oc rsh <database pod>
pqsql
\c InvasivesBC
SET search_path = invasivesbc;
select * from watercraft_risk_assessment;

Check Count of entries

@rstens
Copy link
Member Author

rstens commented Aug 7, 2020

We will close the issue for now. We'll have a technical debt to figure out how to get the validate to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Ready This is ready to be pulled into a sprint
Projects
None yet
Development

No branches or pull requests

2 participants