-
-
Notifications
You must be signed in to change notification settings - Fork 430
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
pgbouncer user doesn't exist error when trying to deploy from command line #795
Comments
Hi @biglolka Which version of postgresql_cluster are you using? Make sure that you have a pgbouncer user defined in the |
Hi @vitabaks, Thanks for the heads-up, you diverted my attention to the right direction: |
there should be no problem for automatic password generation if |
At the same time, did you have the if I understood correctly, the problem with the password for pgbouncer (lack of autogeneration) is possible if the password for I'll check it out. |
well I left the |
I can confirm that leaving the pgbouncer_auth_password value empty will produce previously mentioned "role does not exist" error with deploy_pgcluster.yml playbook (ie password autogeneration does not seem to work). That also applies to patroni_superuser_password and patroni_replication_password - if their values are left empty. |
Are you sure you're using version 2.0? |
@vitabaks you are correct - I was using latest master branch with newer commits beyond 2.0.0 tag: Btw - great work! |
I’m not yet sure how to reproduce your issue, as I’ve performed numerous cluster deployments without encountering such a problem. Additionally, daily tests confirm that passwords are successfully generated without any errors. If you could provide the full Ansible logs, it might help me identify the issue. Even better, sharing an archive of your postgresql_cluster directory would allow for a more thorough investigation. I also recommend trying to deploy via the Console (UI). |
@vitabaks could you please clarify "defined" meaning in this warning "If not defined, a password will be generated automatically during deployment"? Ie should password be autogenerated when password is left empty (pgbouncer_auth_password: "") or if pgbouncer_auth_password variable is commented out in vars/main.yml (as "not defined")? |
Deploy fails when passwords are not defined -
on current master |
Please attach your "automation" directory, I will try to solve the problem. |
Hello @vitabaks,
I'm trying to deploy the cluster with the ansible script, but I keep getting the following error:
Thanks in advance for your response!
The text was updated successfully, but these errors were encountered: