-
Notifications
You must be signed in to change notification settings - Fork 19
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
Getting "Unable to check config: Unable to check superuser conditions: PG::ConnectionBad: FATAL: password authentication failed for user" in config_check #73
Comments
I am sorry to hear that! Thanks for opening the issue, we are gonna try and get this sorted. Can you share a few more details about the setup that will help me debug this better
|
I tried both users in the Using version 0.1.9 The replications are all v11 to v11 (for reasons) and the one which worked was with the standard |
all are self-hosted, forgot to mention! |
|
oh! very interesting indeed. Thank you for all the details, appreciate it. Two more Q's
Thanks |
Well, now that I'm poking around it seems to be failing at a check with the source db. I dropped a debugger into the gem code where I'm running it and found it's failing in |
aha!! I think I have found the discrepancy. the url passed into |
that's it! if the superuser names are different between target and source, it can cause a discrepancy checking for the superuser credential. I think you can close this other than maybe if you want to document that, thanks for the help! |
ahh! glad it sorted out. Nice debugging! I will keep it open and see if we can have it support different / contextual usernames, specific to the URL being passed in for each of the checks. Sounds like something that can be confused with. |
well now I'm getting |
oh interesting! Does either of the database has I wonder if this issue is related to the previous one, so will take a look tomorrow and get back |
I have pushed 0.1.10, if you wanna try that. Also two questions:
|
Update: v0.1.11 is now out, which I think should resolve the user error you were seeing, if you'd like to try that again. |
Much closer! I think there's still one lingering bug on an edge case: the source database has a dash in the name.
|
Thanks! I caught an issue with your report. Just pushed out |
After some local testing I am not able to replicate the issue with the latest fixed release. Thank you so much for your reports. I am closing the issue but feel free to reopen if it’s still persisting. |
Hi! I am attempting to use this tool on a replication setup. It has worked fine for one database, but another has been nothing but trouble. I have created new superusers on each side, I have confirmed that I can login with psql to each of the URL setups on the same system as the pg_easy_replicate install. But this particular configuration always returns:
Unable to check config: Unable to check superuser conditions: PG::ConnectionBad: FATAL: password authentication failed for user $USERNAME
Is there something I'm doing wrong in the setup? Thanks for your time.
The text was updated successfully, but these errors were encountered: