https://prefect.io logo
Title
g

Greg Roche

01/08/2021, 11:33 AM
Hi folks, quick question about data persistence... we are running Prefect Server on an EC2 instance, and we just upgraded from
0.13.x
to
0.14.2
by running these commands:
pip install --upgrade prefect
prefect server stop
prefect server start --detach
Unfortunately, after the upgrade had finished all of the projects, registered flows, and flow run history have been lost. Is there any way to prevent this from happening after future upgrades?
p

Pedro Martins

01/08/2021, 12:22 PM
I'd like to learn this too. It would be great to have a backup routine of the flows.
j

Jeff Williams

01/08/2021, 2:46 PM
I would as well.
n

nicholas

01/08/2021, 3:34 PM
Hi folks, check out this section of the docs: Database persistence and migrations. It boils down to: you'll need to set a persistent volume that the Postgres container can use between versions and system restarts. I'd recommend you also take a look at the links for the alembic migrations, since between versions you'll often need to run those against your database to make sure the database is compatible with that version of the API.
👍 1
r

Rajashekar Makam

01/18/2021, 6:25 PM
Even I experience this issue.