Skip to content

During database crash, RedHat can't find pg_ident.conf #309

Description

@gclough

If the database crashes, then during crash recovery it looks for pg_ident.conf... and fails:

2018-03-20 15:07:25 UTC [11965]: [3-1] user=,db=,app=,client= LOG:  could not open usermap file "/etc/postgresql/9.6/data/pg_ident.conf": No such file or directory
2018-03-20 15:07:25 UTC [11967]: [1-1] user=,db=,app=,client= LOG:  database system was interrupted while in recovery at 2018-03-20 15:05:24 UTC
2018-03-20 15:07:25 UTC [11967]: [2-1] user=,db=,app=,client= HINT:  This probably means that some data is corrupted and you will have to use the last backup for recovery.

By default on RedHat/CentOS this should be in $PGDATA, but because of the "Ubuntu" layout this file is expected to be in /etc/postgresql/{{ postgresql_version }}/data:

ident_file = '/etc/postgresql/9.6/data/pg_ident.conf' # ident configuration file

... but it's currently in $PGDATA/pg_ident.conf

Personally I'd prefer to see this playbook configure more of a "RedHat" layout, which means putting everything into $PGDATA, and not scattering things into /etc/postgresql...

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions