-
Notifications
You must be signed in to change notification settings - Fork 70
Upgrading to Postgres 18: possible loss of data #550
Copy link
Copy link
Open
Labels
(mostly) back-endPrimarily involves the back-end (e.g. post-processors, scheduler or crawlers).Primarily involves the back-end (e.g. post-processors, scheduler or crawlers).deploymentRelated to installation/deployment of 4CAT rather than 4CAT properRelated to installation/deployment of 4CAT rather than 4CAT properdocker issueIssue that only occurs when using 4CAT via DockerIssue that only occurs when using 4CAT via Docker
Metadata
Metadata
Assignees
Labels
(mostly) back-endPrimarily involves the back-end (e.g. post-processors, scheduler or crawlers).Primarily involves the back-end (e.g. post-processors, scheduler or crawlers).deploymentRelated to installation/deployment of 4CAT rather than 4CAT properRelated to installation/deployment of 4CAT rather than 4CAT properdocker issueIssue that only occurs when using 4CAT via DockerIssue that only occurs when using 4CAT via Docker
Hi!
This is not exactly a bug report but more of a notice about a breaking change in Postgres 18. The side-effect that I got:
My user data and all datasets are lost. Luckily, I got this on a testing instance :)
I should add: you lose data not because of updating containers but due to fixing the
compose.ymlto accommodate Postgres 18. 4cat will just not work with Postgres 18, and this is good.To avoid it:
.envhasPOSTGRES_TAG=latestI see that you also noticed this in 93bb522
What I figured out:
Starting version 18 Postgress no longer works with
- 4cat_db:/var/lib/postgresql/dataas all 4cat documentation suggest. Because of this:docker-library/postgres#1259
To make it work:
PGDATA=/var/lib/postgresql/dataintoenvironmentsubsection of thedbcontainerHere is an example of the
dbsection that will enable you to use 4cat with Postgres 18:Unfortunately, this will give you a fresh and empty 4cat instance without your data. I plan to look into if its possible to recover. And I do not know yet of a way of how move my data between the versions.