You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 18, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 18, 2021. It is now read-only.
This is possibly more of a documentation issue rather than a feature request in case it is already implemented:
As many hosting providers require SSL to connect to production databases, the migration tool should support SSL connections. Currently 'aqueduct db upgrade --connect ...' does not seem to be configurable to establish a SSL connection. Is this correct? Could this be implemented?
Yes exactly. When i enter aqueduct db upgrade --use-ssl --connect postgres://...
The command takes a little longer to execute than without the --use-ssl-Flag but ultimately also fails: *** There was an error connecting to the database....
The exact same connection data works with the aqueduct PostgreSQLPersistentStore though, but only when i specify
Thank you for opening this issue! I've been struggling with getting SSL mode to work for db migration on a hosted db instance. I didn't even know that --use-ssl was an option for the upgrade as I spent ages looking for it.
Using --use-ssl now results in the same error as above "There was an error.."
I tried this with a different hosted postgres instance (was previously using AWS). With digitalocean, I was able to make it a little deeper before it failed again:
-- Aqueduct CLI Version: 3.2.1 -- Aqueduct project version: 3.2.1 SELECT versionNumber, dateOfUpgrade FROM _aqueduct_version_pgsql ORDER BY dateOfUpgrade ASC HERE -- Updating to version 1 on new database... PostgreSQL connecting, <my db>. *** There was an error connecting to the database '<my db>'. Reason: unable to connect to database.
Activity
Reductions commentedon Apr 13, 2020
You mean when you used
aqueduct db upgrade --use-ssl --connection ...it doesn't work?timosettels commentedon Apr 13, 2020
Yes exactly. When i enter
aqueduct db upgrade --use-ssl --connect postgres://...The command takes a little longer to execute than without the
--use-ssl-Flag but ultimately also fails:*** There was an error connecting to the database....The exact same connection data works with the aqueduct
PostgreSQLPersistentStorethough, but only when i specifyPostgreSQLPersistentStore.fromConnectionInfo( ... useSSL: true, );Thats why i assumed it is a SSL issue.
Aldo111 commentedon Apr 14, 2020
Thank you for opening this issue! I've been struggling with getting SSL mode to work for db migration on a hosted db instance. I didn't even know that --use-ssl was an option for the upgrade as I spent ages looking for it.
Using --use-ssl now results in the same error as above "There was an error.."
Aldo111 commentedon Apr 14, 2020
I tried this with a different hosted postgres instance (was previously using AWS). With digitalocean, I was able to make it a little deeper before it failed again:
-- Aqueduct CLI Version: 3.2.1 -- Aqueduct project version: 3.2.1 SELECT versionNumber, dateOfUpgrade FROM _aqueduct_version_pgsql ORDER BY dateOfUpgrade ASC HERE -- Updating to version 1 on new database... PostgreSQL connecting, <my db>. *** There was an error connecting to the database '<my db>'. Reason: unable to connect to database.Aldo111 commentedon Apr 15, 2020
I pulled a stacktrace: https://pastebin.com/8puLt9Uu
itsjoeconway commentedon Apr 15, 2020
Thanks for everyone's input. There is a bug in this command where the
--use-sslflag does not actually toggle whether the connection is SSL:aqueduct/aqueduct/lib/src/cli/scripts/run_upgrade.dart
Line 43 in 16fc395
NayanJD commentedon Sep 11, 2020
I am also facing the same with Standard Heroku Postgres instance.
lee-40square commentedon Oct 2, 2020
Looks like we have a PR fixing this issue. Sweet!