Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jHYP2-0007RY-Bx for pgsql-general@arkaria.postgresql.org; Thu, 26 Mar 2020 19:42:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHYP1-0004Q5-5n for pgsql-general@arkaria.postgresql.org; Thu, 26 Mar 2020 19:42:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jHYMn-0003gH-5M for pgsql-general@lists.postgresql.org; Thu, 26 Mar 2020 19:40:37 +0000 Received: from box.rainexpected.com ([45.33.82.139]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jHYMj-0005g0-Q5 for pgsql-general@lists.postgresql.org; Thu, 26 Mar 2020 19:40:36 +0000 Received: from authenticated-user (box.rainexpected.com [45.33.82.139]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by box.rainexpected.com (Postfix) with ESMTPSA id 99FCC1FADD for ; Thu, 26 Mar 2020 15:40:32 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=theo.to; s=mail; t=1585251632; bh=L78egdtkanjMctaUXGpu7Kcbpv9cMKVM1OPWGUAOZGg=; h=Subject:To:References:From:Date:In-Reply-To:From; b=wP1g7Nm7yFvNEBQqoHrqSbwOSlUaO4GVKYlwN/hCFNYT+O4+2Cq/uNDDU3RG+PXqa UR/vQY/EaKqvC+KDwczER1B2tcLut76MmQxA2D/z38zlk8pNwA0WpLrfftXcrD3ciE wpwmSphAvLw0l5Te2cxYauU6ZWQroyTrn80oqnfaShC15SZx9U+ztY6u+lSuHiHSsh 5ajovFbbgKWmF4NCR5m1aSOLB/O5wP6oNlhglQTTST/qv0ZJhMqjLd3kmj65FO8ALL tZxe0/ff0Q5jBp3vLVw2riIUZN+2dlD2kHOFttqDIzWve0sXaEIaDEEYswhWPIE5sX /kYL9Lv5oM2Xg== Subject: Re: Ident authentication failed To: pgsql-general@lists.postgresql.org References: <39f295ba-2e91-6219-e802-26679e221862@gmail.com> From: Ted To Message-ID: <3d5c839c-3680-2dd5-01a6-94690e8a7907@theo.to> Date: Thu, 26 Mar 2020 15:40:32 -0400 MIME-Version: 1.0 In-Reply-To: <39f295ba-2e91-6219-e802-26679e221862@gmail.com> Content-Type: multipart/alternative; boundary="------------4DF0058859B270B2C575A5B2" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------4DF0058859B270B2C575A5B2 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Thank you -- I added two lines to the hba file to allow for ident authentication, restarted postgres and still the same errors. On 3/26/20 3:35 PM, Ron wrote: > You're only allowing "trust" authentication, not "ident" authentication. > > On 3/26/20 2:29 PM, Ted To wrote: >> >> Hi, >> >> I'm trying to configure miniflux and am struggling to figure out how >> to configure postgres for that purpose.  (The miniflux instructions >> are very terse.)  Regardless of whether I run the command as the >> postgres user or the miniflux user, I get similar errors.  I am >> running Centos 7 using the updated scl version of postgres (9.6.10). >> >> With the following, the postgres user "miniflux" along with the >> password are specified in /etc/miniflux.conf. >> >> $ miniflux -c /etc/miniflux.conf -migrate >> Current schema version: 0 >> Latest schema version: 26 >> Migrating to version: 1 >> [FATAL] [Migrate] pq: Ident authentication failed for user "miniflux" >> >> I have no problems logging into postgres as the miniflux user using >> the same password specified in /etc/miniflux.conf. >> >> Running the same command without specifying the configuration file >> uses the postgres user and also fails >> >> $ miniflux -migrate >> [INFO] The default value for DATABASE_URL is used >> Current schema version: 0 >> Latest schema version: 26 >> Migrating to version: 1 >> [FATAL] [Migrate] pq: Ident authentication failed for user "postgres" >> >> My /var/opt/rh/rh-postgresql96/lib/pgsql/data/pg_hba.conf file includes >> >> # TYPE  DATABASE        USER            ADDRESS METHOD >> >> local   miniflux   miniflux      trust >> local   miniflux   postgres      trust >> >> # "local" is for Unix domain socket connections only >> local   all             all peer >> # IPv4 local connections: >> host    all             all             127.0.0.1/32 trust >> >> I'm at a complete loss. >> >> Any suggestions? >> >> Thanks, >> >> Ted To >> > --------------4DF0058859B270B2C575A5B2 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Thank you -- I added two lines to the hba file to allow for ident authentication, restarted postgres and still the same errors.

On 3/26/20 3:35 PM, Ron wrote:
You're only allowing "trust" authentication, not "ident" authentication.

On 3/26/20 2:29 PM, Ted To wrote:

Hi,

I'm trying to configure miniflux and am struggling to figure out how to configure postgres for that purpose.  (The miniflux instructions are very terse.)  Regardless of whether I run the command as the postgres user or the miniflux user, I get similar errors.  I am running Centos 7 using the updated scl version of postgres (9.6.10).

With the following, the postgres user "miniflux" along with the password are specified in /etc/miniflux.conf.

$ miniflux -c /etc/miniflux.conf -migrate
Current schema version: 0
Latest schema version: 26
Migrating to version: 1
[FATAL] [Migrate] pq: Ident authentication failed for user "miniflux"

I have no problems logging into postgres as the miniflux user using the same password specified in /etc/miniflux.conf.

Running the same command without specifying the configuration file uses the postgres user and also fails

$ miniflux -migrate
[INFO] The default value for DATABASE_URL is used
Current schema version: 0
Latest schema version: 26
Migrating to version: 1
[FATAL] [Migrate] pq: Ident authentication failed for user "postgres"

My /var/opt/rh/rh-postgresql96/lib/pgsql/data/pg_hba.conf file includes

# TYPE  DATABASE        USER            ADDRESS METHOD

local   miniflux   miniflux      trust
local   miniflux   postgres      trust

# "local" is for Unix domain socket connections only
local   all             all peer
# IPv4 local connections:
host    all             all             127.0.0.1/32 trust

I'm at a complete loss.

Any suggestions?

Thanks,

Ted To


--------------4DF0058859B270B2C575A5B2--