-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to migrate sql with 1.5.0-beta.5 with postgres ident #1892
Comments
This is an underlying driver issue (pgx supports this but pg doesn't afaik) so I don't think this will be fixed, especially because the workaround is pretty straight forward (not use the shorthand version). |
On Thu, Jun 04, 2020 at 11:21:57PM -0700, hackerman wrote:
This is an underlying driver issue (pgx supports this but pg doesn't afaik) so I don't think this will be fixed, especially because the workaround is pretty straight forward (not use the shorthand version).
What would be the non-shorthand version? It appears that the issue is
that it is trying to use password authentication instead of ident
authentication (I guess I should have been clear about that in the
issue).
|
|
postgres://hydra@/hydra doesn't work with the same error and
postgres://hydra@localhost/hydra doesn't connect via a unix socket.
Perhaps the problem is that it no longer supports unix socket
connections?
|
PostgreSQL DSNs typically support unix socket connections (though you are correct, without the host should work since PostgreSQL 9.2): https://stackoverflow.com/questions/27037990/connecting-to-postgres-via-database-url-and-unix-socket-in-rails Seems like you can set the socket path like this:
I have created an issue upstream to address this by switching from lib/pq to pgx: gobuffalo/pop#559 |
Took a bit of time but I've been working with the gobuffalo team on bringing pgx to pop: gobuffalo/pop#562 :) |
Thanks! Have you tested if postgres ident auth works with the new
pop?
|
Yes, I was able to confirm that it was an underlying driver issue. The PR still needs to be merged but given that maintainers already gave feedback it shouldn't be too long. |
All that is left is to update |
We also need gobuffalo/fizz#94 this merged before |
Describe the bug
hydra migrate sql postgres:///hydra
on a clean installation fails with1.5.0-beta.5
Reproducing the bug
Steps to reproduce the behavior:
hydra
usersudo -u hydra hydra migrate sql postgres:///hydra
Server logs
Expected behavior
Migration to be successful
Environment
Additional context
It works with v1.4.10.
The text was updated successfully, but these errors were encountered: