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 1jHYCF-00075S-QB for pgsql-general@arkaria.postgresql.org; Thu, 26 Mar 2020 19:29:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHYCE-0003Wr-Aa for pgsql-general@arkaria.postgresql.org; Thu, 26 Mar 2020 19:29:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jHYCD-0003Wj-OZ for pgsql-general@lists.postgresql.org; Thu, 26 Mar 2020 19:29:42 +0000 Received: from box.rainexpected.com ([2600:3c03::f03c:91ff:fe18:3676]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jHYC9-0002NS-Tm for pgsql-general@postgresql.org; Thu, 26 Mar 2020 19:29:40 +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 0FA561F79B for ; Thu, 26 Mar 2020 15:29:34 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=theo.to; s=mail; t=1585250974; bh=uTYssIgSrcj2WFBrExoyZS6o+BRiSeSopC6qjcvdrR4=; h=To:From:Subject:Date:From; b=I1V+64dIj2nuMbyENv4moiQlzWw4ceAxsT892yfPP8CwPDAZkYTGnwnnesKF2OQJA VAp9EIBVpBYicgNTykdv6lR0dEo5YncT8x8KN5HTSE0X30ZZ16c3YM/UbZWN2j8Aei KgQNFqqvXt5fzs8skVRWR5BYXKcfFxowEkQOwAqeISmPe34kzehWxzTpY2IfUNUNog ZBk16HZUk3oqSbPolJWaMYPbtR0vmpAEYuqj2qt5Q1q/jlRokTcmO7tbWjrvd74FUq JSrQzpGldGPoc9b7aJRrdjT9yhxj8aaKt3HTj73pW7zXjlvUlDoPs3ahDf/n9+ef/l OSuj2MoKPs2zw== To: pgsql-general@postgresql.org From: Ted To Subject: Ident authentication failed Message-ID: Date: Thu, 26 Mar 2020 15:29:33 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------E19633DC50453C61B080FD82" 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. --------------E19633DC50453C61B080FD82 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------E19633DC50453C61B080FD82 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

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

--------------E19633DC50453C61B080FD82--