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 1jHZ2z-0008Rx-7N for pgsql-general@arkaria.postgresql.org; Thu, 26 Mar 2020 20:24:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHZ2x-0005ic-Ue for pgsql-general@arkaria.postgresql.org; Thu, 26 Mar 2020 20:24:11 +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 1jHZ2w-0005iU-NU for pgsql-general@lists.postgresql.org; Thu, 26 Mar 2020 20:24:11 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jHZ2u-00066a-6L for pgsql-general@lists.postgresql.org; Thu, 26 Mar 2020 20:24:09 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 55D135C02AC; Thu, 26 Mar 2020 16:24:07 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 26 Mar 2020 16:24:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=F ZnJe9NLqAGBbJ/b9Pszj/wtN1cAozq5KcT/tNpQRs4=; b=eLf90CfNQJ75l2fEw t/tTDLF3WjXoryvLqj7J+Y2EZYKJdNNEc3QZcvVu9vpjVH+9Let3NfrpMSSLn7z4 hWWwW2PEfjXwt2oI0OqaNftCeDgCfg7BjmZn9tMC48ereGcOM7nnJQUsDJrYezBO u+RhV9IMB+1Wv0ueH+XJFvYP7TrMzirmDAc1Xpv3Bg3iY2eSDuSLTSlQPvF4wXAh vykeVOhvLTk1tk8m95FaYpQQvTL/0JWrZSCGJgmySzodUV68yCX2aoyenIYVcHak TBTRr3flWSnz/6DKeQDq2vTh7oXUqFrOivaGju5iT62fDyuBfOZnE+qgnemI2W+l FtLyA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=FZnJe9NLqAGBbJ/b9Pszj/wtN1cAozq5KcT/tNpQR s4=; b=OWjyl0e9bmM+MamCu+J8heUi2ek3fRggIXob4h5+0vPd3F8Y60z/EnrZQ MN7oW0Ue7CdhgtILjimA1Xsn78R91Vvv+U8KkNq8+sGUwLjGYI6DMeKZGbOHvEe+ kTjvFRP8bvf3XUbeunDx7QuaO5sN3Sq+7ZFtOSftRIU2Dt634dEufgMP8i3FRrm8 SQjZN5ToHYH9tHFg3xZM8anHJjKtJ15Q0x/YuZtvSiDRFYEDN22X7c0g4IFci/UW rvW5ro/PEmze9PBAfyjyO9Ably2a41Ueh1QTtFf/zpHu2tjfQWIpR6jTvPdwihVg RzHm6OPvFa7lsVEFENiYiG3QfF5AA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudehjedgjedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuffhomhgrihhnpehmihhnihhflhhugi drrghpphdpghhoughotgdrohhrghenucfkphepjeehrddujedvrdeltddrledvnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrd hklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.10] (75-172-90-92.tukw.qwest.net [75.172.90.92]) by mail.messagingengine.com (Postfix) with ESMTPA id 586A1306A34F; Thu, 26 Mar 2020 16:24:06 -0400 (EDT) Subject: Re: Ident authentication failed To: Ted To , pgsql-general@lists.postgresql.org References: <39f295ba-2e91-6219-e802-26679e221862@gmail.com> <3d5c839c-3680-2dd5-01a6-94690e8a7907@theo.to> From: Adrian Klaver Message-ID: Date: Thu, 26 Mar 2020 13:24:05 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <3d5c839c-3680-2dd5-01a6-94690e8a7907@theo.to> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/26/20 12:40 PM, Ted To wrote: > Thank you -- I added two lines to the hba file to allow for ident > authentication, restarted postgres and still the same errors. Alright from here: https://miniflux.app/docs/configuration.html The Golang Postgres client pq is being used and: "The default value for DATABASE_URL is user=postgres password=postgres dbname=miniflux2 sslmode=disable." From here: https://godoc.org/github.com/lib/pq#hdr-Connection_String_Parameters "host - The host to connect to. Values that start with / are for unix domain sockets. (default is localhost)" So unless you have specified a host in the conf file you need to be paying attention to the lines in pg_hba.conf that start with host. Where the two lines you added above for host? You can check what is happening on the server end by looking in the Postgres logs. That will also show you the connection string. Do you have more then one instance of Postgres on the machine? > > 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 >>> >> -- Adrian Klaver adrian.klaver@aklaver.com