Re: php connection failure

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: ourdiaspora <ourdiaspora(at)protonmail(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: php connection failure
Date: 2021-08-10 14:44:23
Message-ID: 5ae56ed6-ca48-b809-1e2d-85c36ca42f3e@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 8/10/21 1:59 AM, ourdiaspora wrote:
>
> On Sunday, August 8th, 2021 at 1:51 AM, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> wrote:
>
>> 1. Get rid of the first local line .
>> 2. Then for the remaining local line below change peer to trust and
>>
>> restart Postgres.
>
> Thank you, but repeat error occurred:
>
> sudo sudo service postgresql restart
> [ ok ] Restarting PostgreSQL 9.6 database server: main.
>
> psql -d cpacweb -U cpaca
> psql: FATAL: Peer authentication failed for user "cpaca"

Then either:

1) There is another local line with peer that you missed.

2) You changed the wrong pg_hba.conf file.
What was the path of the file you changed?

What is returned when you do?:

ps ax | grep postgres

What do you see in:

sudo vi /var/log/postgresql/postgresql-9.6-main.log

when you do a restart?

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christophe Pettus 2021-08-10 17:44:19 Re: archive_command / single user mode
Previous Message Tom Lane 2021-08-10 13:14:33 Re: php connection failure