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 1jHYHg-0007HP-CC for pgsql-general@arkaria.postgresql.org; Thu, 26 Mar 2020 19:35:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHYHe-0000yy-Kf for pgsql-general@arkaria.postgresql.org; Thu, 26 Mar 2020 19:35:18 +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 1jHYHe-0000yr-4y for pgsql-general@lists.postgresql.org; Thu, 26 Mar 2020 19:35:18 +0000 Received: from mail-ot1-x343.google.com ([2607:f8b0:4864:20::343]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jHYHb-0005ck-I6 for pgsql-general@lists.postgresql.org; Thu, 26 Mar 2020 19:35:16 +0000 Received: by mail-ot1-x343.google.com with SMTP id c9so7183078otl.12 for ; Thu, 26 Mar 2020 12:35:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=UlVugUI3ee4VIoopn39JZRsemBheBu1jfK49soZVQF0=; b=hycJ66mhSMP7NJ3d2hQlpqnRzz8jRiaA0F/ceVf/AERK14LX2H8c2qwBJwbda6DVjn +Hq8XjP6KKFgmjIzEqZ2An9Vjo8NHtUA72+gSE8/D/efMGUJeH7FDdk+KUjLqzDHhSnv hhtbCVpk7OHQi9hhG18u3Pm5k/FG49bHPk6tg+x+mqaBFpmPZuTr+mGlDQodmKsh4J7y ks9ADd+H7xFCqYYZdnCG3M+VQ/x4lS+Wb4mJYGbxeXBSj4URHvKrTo4ZdHPMVc5AEzNi PhueaAfS8TR8DBSg1WYFMlZKAHchcFlTg4wNprqc5WHxeCkwmRvh+mxkSQ03cKYMzlQ5 VbZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=UlVugUI3ee4VIoopn39JZRsemBheBu1jfK49soZVQF0=; b=qSvkeVcaSblrAxoeYV3AhDZcBokMSvM7TUaRh+EVep8nThuoApsNQJh995+LqVhwSA Hlquheaa3XxU3vXpY+Wv0YU5WHEHE4E8st18kKSM1pVeAsLX69J0k/l9aecBBeqqD8+P XaeCWESV8k43bOo1GbTLqQFhG+ZUA0JC6h/l8vig4CVMxX1q1OsTJ6cGZw/rXQCSPPbk SBBH0rSS+BQ+HDvnldnEtqc3Zmb59+aS0N9ksCj4EFssRQ6DdAHG8kF9nSQPYBSOJ7Yb Rq4wEpBTIDQmi7Y7SFirG6F5wQ11T34HTLGVWKoMQAbRN4cYO/TWMvjTme1Ljnqwc5qt LFFg== X-Gm-Message-State: ANhLgQ1S3+2S3XE3SdZqMEoSVEwE9VRW5W490g+7ztopKNCWmELTlI0x YBjnW716HAH4tQxaj2xm86a0lpfB X-Google-Smtp-Source: ADFU+vuNTvaKwC0sO+gvPZr0qiLGADi/fGOd3ign77SjqIV8boGYMll8Y/qt4RRRjkDbdcGdcw2W7w== X-Received: by 2002:a05:6830:1f54:: with SMTP id u20mr7856493oth.322.1585251314378; Thu, 26 Mar 2020 12:35:14 -0700 (PDT) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id s27sm851042otg.38.2020.03.26.12.35.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Mar 2020 12:35:13 -0700 (PDT) Subject: Re: Ident authentication failed To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <39f295ba-2e91-6219-e802-26679e221862@gmail.com> Date: Thu, 26 Mar 2020 14:35:13 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 > -- Angular momentum makes the world go 'round.