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 1jHYI3-0007IB-AN for pgsql-general@arkaria.postgresql.org; Thu, 26 Mar 2020 19:35:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHYI2-0003rG-5f for pgsql-general@arkaria.postgresql.org; Thu, 26 Mar 2020 19:35:42 +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 1jHYI0-0003r9-RO for pgsql-general@lists.postgresql.org; Thu, 26 Mar 2020 19:35:41 +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 1jHYHx-0005dS-NJ for pgsql-general@postgresql.org; Thu, 26 Mar 2020 19:35:39 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 757205C0247; Thu, 26 Mar 2020 15:35:36 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 26 Mar 2020 15:35:36 -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=j eM7ESnpar0ofLZN9dGDNkc+N17MYVAyM0LLdKUkyyo=; b=LXBPB0nu/AVxSd+1M gotjEWnGmJ2TL/faVPgP4WmiKqtNwj58AZQBnSE+uSotf2+y0I1J1PPbJ6fwD2/n PiizPZAUWXJXx4iHNcD2CwQItcVSshmPnfI/yB/Iy0KHU/4WmAMbCQjdDb5qeZLg hhG58lO58b8dIfcpIEIymFT90vx6Gs0PC2+cFv9WuJwdbAkei9sELMRCtQjPl7ja qukB6byHW+MJL+6TlhsZ9vaCgzCx1yxeUeSP4wwBZyiz9iICZpVZQsjnQwTKKIW0 8VuheRuPTh6VpxvzL/Iyeevp71DupRkzECGcCHA9EFHFrT3sEadeqfym9kAbTsBZ ShcZA== 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=jeM7ESnpar0ofLZN9dGDNkc+N17MYVAyM0LLdKUky yo=; b=hbMMYSZ7v3fhEzURD/2r/+1glOa8VC+HelBIlrJaYM54bYGt8tMUKDo9r xkz4061oVgdB04J3X2NBkumPwmu3Gmvbn4tDXimRwm6b6Xm67qAUqco7LDJpHPGH GPKjtHILfg/J724uv/Mhf4GoUw3CrLP1ULsr4sUSlWS3xhDtZWHkryWmXuPlgKl0 BxD03+C+UQXh9OzSqZT0q0PvtcA4+t0/8bp5BUy+nO5e9zBSs15z+ngX8itNW3Jd g5i2EvXcRpmREd14xzgcLJmqEK3viyN2K0WfzS+gA0A+j3DRmSMj2oS9WNxz+bmV dn4fiHsOOO1nZf4QYW/i4zRbICKbg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudehjedgieefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecukfhppeejhedrudejvddrledtrdelvd enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughr ihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm 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 3F9DF3069FD1; Thu, 26 Mar 2020 15:35:35 -0400 (EDT) Subject: Re: Ident authentication failed To: Ted To , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: <2e5c4966-6c09-7d89-c3cb-b6b991505339@aklaver.com> Date: Thu, 26 Mar 2020 12:35:34 -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: 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: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" Can you show the entire connection string used by miniflux? Did you reload/restart the server after making the changes below? > > 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