Re: Postgres Service active with errors

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: nikhil raj <nikhilraj474(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Postgres Service active with errors
Date: 2024-05-23 23:48:45
Message-ID: CANzqJaCT_hze2FghJxnzFptqCn16WWQuHhY4hPqm6q7KgpqdRw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, May 23, 2024 at 6:52 PM nikhil raj <nikhilraj474(at)gmail(dot)com> wrote:

>
> Hi All,
>
> I can connect to Postgres, but when checking the status of the services, I
> am getting the following error:
>
>
> May 23 18:23:13 PG2433 systemd[1]: Starting PostgreSQL Cluster 13-main...*May 23 18:23:21 PG2433 postgresql(at)13-main[39428]: Warning: connection to the database failed, disabling startup checks:
> May 23 18:23:21 PG2433 postgresql(at)13-main[39428]: psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: fe_sendauth: no password supplied*May 23 18:23:21 PG2433 systemd[1]: Started PostgreSQL Cluster 13-main.
>
> When I set the database administrative login by Unix domain socket
> authentication to md5 or scram-sha-256, it gives the above error in
> status, but setting it to trust is a compliance issue.
>
> Here is the relevant configuration in the pg_hba.conf file:
>
> # Database administrative login by Unix domain socketlocal all all md5
>
> # TYPE DATABASE USER ADDRESS METHOD
>
> # "local" is for Unix domain socket connections onlylocal all all scram-sha-256
> # IPv4 local connections:
> hostssl all all 0.0.0.0/0 scram-sha-256
>
> local/sockets authentication is, by default, *peer* authentication. PG
knows the user is authenticated because Linux has already authenticated the
account.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Mukesh Tanuku 2024-05-24 05:16:50 Postgres/pgpool HA failover process
Previous Message David G. Johnston 2024-05-23 23:46:43 Re: Postgres Service active with errors