Skip to content

Fixes issue where Ensure DB user check fails when the port value is changed#4

Open
grim-fendango wants to merge 1 commit into
ansible-city:masterfrom
grim-fendango:GITHUB-2-fix-port-change-failure
Open

Fixes issue where Ensure DB user check fails when the port value is changed#4
grim-fendango wants to merge 1 commit into
ansible-city:masterfrom
grim-fendango:GITHUB-2-fix-port-change-failure

Conversation

@grim-fendango
Copy link
Copy Markdown

@grim-fendango grim-fendango commented Sep 26, 2016

Fixes issue #3

When the postgresql.port value is changed you get the following error:

TASK [Ensure DB user] ******************************************** fatal: [default]: FAILED! => {"changed": false, "failed": true, "msg": "unable to connect to database: could not connect to server: No such file or directory\n\tIs the server running locally and accepting\n\tconnections on Unix domain socket \"/var/run/postgresql/.s.PGSQL.5432\"?\n"}

This occurs because the postgresql_user gradle core module does not inspect the postgresql configuration and instead opts to connect via the 5432 port as a default. See here .

@grim-fendango grim-fendango changed the title Ensure DB user check now doesn't fail when the port value is changed. Fix issue where Ensure DB user check fails when the port value is changed Sep 26, 2016
@grim-fendango grim-fendango changed the title Fix issue where Ensure DB user check fails when the port value is changed Fixes issue where Ensure DB user check fails when the port value is changed Sep 26, 2016
@robbyoconnor
Copy link
Copy Markdown

Following.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants