Closed r2omm-kevin closed 3 years ago
Just got this one as well
Postgrex.Protocol (#PID<0.139.0>) failed to connect
Are you able to connect to the database using the same credentials outside of Accent?
Postgrex.Protocol (#PID<0.139.0>) failed to connect
Are you able to connect to the database using the same credentials outside of Accent?
I was able to, yes.
This seems to be the issue https://devcenter.heroku.com/changelog-items/2035, "All Heroku Postgres client connections require SSL"
I think you’re right.
@simonprev I don’t think Accent supports the DATABASE_SSL
environment variables like we do in our boilerplate project, does it?
For the time being, you might be able to add ?ssl=true
to your DATABASE_URL
to force Ecto to use SSL when connecting to the Heroku PostgreSQL database.
Just tried that, unfortunately I get this error now:
SSL connection can not be established because
:sslapplication is not started
Yeah, we have to enable start_apps_before_migration: [:ssl]
in the repo configuration.
Let me try to whip up a quick pull request for that 😄
@drj17 @r2omm-kevin mirego/accent:1.7.2
should not have this problem anymore! 🎉
I got this when I run accent after deployment.