Comments (6)
I discovered this issue after this error msg:
msg: unable to connect to database: FATAL: Peer authentication failed for user "postgres"
After checking my pg_hba configuration and seeing nothing was wrong with that i started to suspect the ansible role parameters. I've done the process manually and noticed the service is never really restarted.
This is the root cause for a lot of users who have Peer authentication error for default user postgres even after setting postgres user as "trust" (in the pg_hba file). Since the role cannot restart the database the pg_hba settings file is never applied - this can cause other major problems as well !
To workaround this issue simply set the following vars:
vars:
postgresql_version: "9.6"
postgresql_daemon: "postgresql@{{ postgresql_version }}-main"
I hope this post can help others
from ansible-role-postgresql.
This also applies to Debian Jessie with Postgres9.4.
On the few times we had reboots the postgres server did not come back.
Can't reboot right now but I enabled the @9.4 service with:
sudo systemctl enable [email protected]
from ansible-role-postgresql.
Tomorrow i check this issue and PR with fix. Thx
from ansible-role-postgresql.
I done fix for this in PR #47
from ansible-role-postgresql.
Testing a fix locally for Debian 8/9.
from ansible-role-postgresql.
THANK YOU SO MUCH!! Having this issue with postgresql-11 in ubuntu 18
from ansible-role-postgresql.
Related Issues (20)
- Installs version specified by default postgres_version variable on AlmaLinux 8.6 HOT 4
- pg_ident.conf support HOT 3
- Ansible pipeline can't find or access the Ubuntu-20.yml file HOT 1
- Ensure PostgreSQL users are present [Failed] HOT 6
- I am not able to create users and databases HOT 5
- Can't use standard playbook with single user and database
- Is there any build in backup system? HOT 3
- Fedora 37 HOT 5
- postgresql_users roles member predefined HOT 5
- Documentation for priv attribute of postgresql_users parameter HOT 3
- Would support for namimg / multiple instances be accepted? HOT 2
- On Ubuntu 22 default version of postgresql package is 15 HOT 3
- Please consider using Ansible FQCN HOT 2
- Role fails when used with AWX (Ansible Tower) without FQCN HOT 2
- RedHat 9 - wrong version number HOT 2
- postgresql_user priv is deprecated, needs to be migrated to postgresql_privs HOT 3
- Postgresql 11 is EOL since 2023-01-05 HOT 3
- Prerequisite collection 'community.postgresql' now needed? HOT 3
- versionned packages in vars HOT 1
- default `postgresql_hba_entries` are outdated for postgresql-15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-postgresql.