R
Railway14mo ago
sangle69

How to disable postgres SSL for windmill.dev deployment?

Hey everyone, I'm trying to deploy windmill.dev on railway but I'm getting an error related to postgres database SSL. Does anyone know how to turn off SSL for postgres on railway cli or creating a custom postgres template without ssl? I appreciate any help or guidance. Thanks!
26 Replies
Percy
Percy14mo ago
Project ID: N/A
Brody
Brody14mo ago
what ssl errors are you getting
sangle69
sangle69OP14mo ago
I deployed a postgres database on railway and copied the connect link to the windmill .env file prior to windmill deployment, but I still get an error. I think it's because postgres on railway has ssl enabled by default, and windmill doesn't support that. The error message is: Error: Bad config: DATABASE_URL env var is missing This is the windmill repo I'm using: https://github.com/windmill-labs/windmill
GitHub
GitHub - windmill-labs/windmill: Open-source developer platform to ...
Open-source developer platform to turn scripts into workflows and UIs. Open-source alternative to Airplane and Retool. - GitHub - windmill-labs/windmill: Open-source developer platform to turn scri...
Brody
Brody14mo ago
that error has nothing to do with ssl?
sangle69
sangle69OP14mo ago
I think because of ssl on that's why windmill can't connect with postgres ? Please advise!
Brody
Brody14mo ago
do you have a DATABASE_URL service variable? https://docs.railway.app/develop/variables#defining-variables
sangle69
sangle69OP14mo ago
Thanks for poiting that out. I totally forgot that. I did and I got this error. Error: Migrating database: while executing migrations: error returned from database: syntax error at or near "TRIGGER" Caused by: 0: while executing migrations: error returned from database: syntax error at or near "TRIGGER" 1: error returned from database: syntax error at or near "TRIGGER" 2: syntax error at or near "TRIGGER" However, when I switched to supabase database, it works beautifully
Brody
Brody14mo ago
what version of postgres does windmill need?
sangle69
sangle69OP14mo ago
postgres 14 I believe
Brody
Brody14mo ago
what version of postgres does railway use
sangle69
sangle69OP14mo ago
postgres 16 I think ?
Brody
Brody14mo ago
check please
sangle69
sangle69OP14mo ago
Just check again. Postgres latest in railway dockerfile so I believe it should be 16
Brody
Brody14mo ago
you are deploying postgres from a dockerfile?
sangle69
sangle69OP14mo ago
from the railway template, not dockerfile
Brody
Brody14mo ago
deploy the plugin version of postgres, i think that uses postgres 14
sangle69
sangle69OP14mo ago
Could you please give me more details on how to get it down as I am not quite fimilar with Dockerfile
Brody
Brody14mo ago
has nothing to do with a dockerfile just deploy the plugin version of postgres, not the template, use the + New button
jr
jr14mo ago
V1 plugins will soon be going away so please don't rely on it too much. Does windmill just not support the latest version?
sangle69
sangle69OP14mo ago
Could you please show me know how to deploy a postgres 14 version on Railway?
jr
jr14mo ago
You can deploy the postgres:14 docker image and attach a volume to it. If you have the latest postgres deployed, you can remove the source image from the service settings and change it to postgres:14
sangle69
sangle69OP14mo ago
I am quite new to railway abd docker. could you please elaborate with me more on this ? Thank you
Brody
Brody14mo ago
deploy the postgres template instantly cancel the deployment remove the source image add this image ghcr.io/railwayapp-templates/postgres-ssl:14 to the service
sangle69
sangle69OP14mo ago
Sorry. I tried but I couldn't make it work somehow.
jr
jr14mo ago
we will add a postgres 14 template soon, which will be a lot easier to use
sangle69
sangle69OP14mo ago
Thank you so much. I tried to deploy the postgres in railway template (the latest version separated from windmill) and I got this error when I tried to connect to windmill. I believe this is the error related to ssl ?? Error: Connecting to database: error communicating with database: invalid peer certificate: Other(UnsupportedCertVersion)
Want results from more Discord servers?
Add your server