Tim Ricablanca
11/07/2022, 10:09 PMalembic.util.exc.CommandError: Can't locate revision identified by '41e5ed9e1034'
i’ll post some details in a thread about what i tried before nuking the database and starting over, but 1) is there guidance on how i should be using prefect orion database stamp
or … revision
before upgrading orion from 2.6.4 -> 2.6.6 (or any other minor version) ? and 2) should i be running … downgrade
from the 2.6.6 package or 2.6.4 package if i wanted to go from 2.6.6->2.6.4?Tim Ricablanca
11/07/2022, 10:11 PMalembic
error.Tim Ricablanca
11/07/2022, 10:12 PMTim Ricablanca
11/07/2022, 10:12 PMprefect orion database downgrade
and then rolled the container back to 2.6.4 and then saw the following on startup:Tim Ricablanca
11/07/2022, 10:12 PMprefect-orion-1 | sqlalchemy.exc.ProgrammingError: (sqlalchemy.dialects.postgresql.asyncpg.ProgrammingError) <class 'asyncpg.exceptions.DuplicateTableError'>: relation "flow" already exists
prefect-orion-1 | [SQL:
prefect-orion-1 | CREATE TABLE flow (
prefect-orion-1 | id UUID DEFAULT (GEN_RANDOM_UUID()) NOT NULL,
prefect-orion-1 | created TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL,
prefect-orion-1 | updated TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL,
prefect-orion-1 | name VARCHAR NOT NULL,
prefect-orion-1 | tags JSONB DEFAULT '[]' NOT NULL,
prefect-orion-1 | CONSTRAINT pk_flow PRIMARY KEY (id),
prefect-orion-1 | CONSTRAINT uq_flow__name UNIQUE (name)
prefect-orion-1 | )
prefect-orion-1 |
prefect-orion-1 | ]
prefect-orion-1 | (Background on this error at: <https://sqlalche.me/e/14/f405>)
prefect-orion-1 |
prefect-orion-1 | ERROR: Application startup failed. Exiting.
Tim Ricablanca
11/07/2022, 10:14 PMdowngrade
and saw the same alembic
error and then in desperation removed the alembic
version and made it worse and saw the following.Zanie
Tim Ricablanca
11/07/2022, 10:14 PMTim Ricablanca
11/07/2022, 10:15 PMstamp
does? I couldn’t find a lot of docs except for the changelog on itTim Ricablanca
11/07/2022, 10:15 PMZanie
prefect orion database downgrade -r <commit>
Zanie
Zanie
prefect orion database downgrade -r 6d548701edef
then pip install prefect==2.6.4
Zanie
Tim Ricablanca
11/07/2022, 10:34 PMMason Menges
11/11/2022, 10:34 PMBring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by