https://prefect.io logo
Title
h

Henry

08/27/2021, 2:10 AM
Hello. I'm upgrading to 0.15.4 and it seems that we're receiving an error message from Alembic when graphql tries to run migrations
Could not upgrade the database!
Error: Can't load plugin: sqlalchemy.dialects:postgres
k

Kevin Kho

08/27/2021, 2:12 AM
Hi @Henry, haven’t seen it before but do you think this what you’re running into ?
h

Henry

08/27/2021, 2:15 AM
hmmm, i'm running the dockerhub image for 0.15.4 tho?
respository: "prefecthq/server"
    tag: core-0.15.4
k

Kevin Kho

08/27/2021, 2:16 AM
Ok i’ll have to ask some more team members tomorrow
z

Zanie

08/27/2021, 3:28 PM
Hey Henry, are you setting any custom environment variables / config or connection urls?
h

Henry

08/27/2021, 3:32 PM
i don't believe so?
my mistake it looks like this stackoverflow issue was correct
the
sqlalchemy.dialects:postgres
is referenced by the
postgres://
URI
so using
postgresql:?/
fixes it
z

Zanie

08/27/2021, 3:35 PM
Yeah that is my suspicion as well
We should be setting that correctly in our images though..
h

Henry

08/27/2021, 3:36 PM
mind if i put in a PR to make this a little more headache free?
also i noticed that the kubernetes pip package wasn't being installed for us in the image
not sure if something changed?
z

Zanie

08/27/2021, 3:36 PM
PRs are definitely welcome
How are you starting your server? Helm? Prefect CLI?
h

Henry

08/27/2021, 3:39 PM
using helm
we have our stuff living in k8s so we just kick it off with a chart we wrote up
z

Zanie

08/27/2021, 3:42 PM
h

Henry

08/27/2021, 7:56 PM
that's great. i didn't know you guys had a helm chart now. is it more-or-less out of beta?
we'll def switch over if it's stablized
z

Zanie

08/27/2021, 8:03 PM
It's pretty stable, I haven't had to touch it in a while.