https://prefect.io logo
Title
d

Donnchadh McAuliffe

02/24/2022, 10:58 AM
Hey guys, I've upgraded from prefect orion
2.0a9
to
2.0a12
. When I try run the server
prefect orion start
it throws this error:
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) table flow already exists
how do I get around this?
a

Anna Geller

02/24/2022, 11:07 AM
Try:
prefect orion database reset
This page explains it more: https://orion-docs.prefect.io/getting-started/installation/#upgrading-the-database
d

Donnchadh McAuliffe

02/24/2022, 11:10 AM
"Resetting the database with the CLI command 
prefect orion database reset
 is not compatible a database from 2.0a9 or earlier. Instead, delete the database file 
~/.prefect/orion.db
" Deleting the database manually worked
👍 1
thanks again for your help