Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sv4Gk-00CFGC-EL for pgsql-general@arkaria.postgresql.org; Mon, 30 Sep 2024 00:28:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sv4Gj-00A13i-6M for pgsql-general@arkaria.postgresql.org; Mon, 30 Sep 2024 00:28:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sv4Gi-00A0xt-Pn for pgsql-general@lists.postgresql.org; Mon, 30 Sep 2024 00:28:04 +0000 Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sv4Gg-001hhZ-7D for pgsql-general@lists.postgresql.org; Mon, 30 Sep 2024 00:28:03 +0000 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-277e4327c99so2132226fac.0 for ; Sun, 29 Sep 2024 17:28:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727656081; x=1728260881; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=jyoWdtrqAqQocydpxS2nIpz/Cf3oVbiqOnKqrX4kkkc=; b=DcHixQjyxr4LyUuQrNRsMurAnLO0dfTI4JXHI8UxI7PpRmNbdf6JPkBd1VqzcG90LK BxLT+q3zbK5E4CYWJiYky3Tl5I/1npU5LzjGOTINb+9zUVTkqK7/P1hhoPiEUypaCwMn vk6FPVecbUrDqMvCnwfSD30wLbinlTZ5M4397TIHdK0bBMcSGAsuYUJ+YNvdoEmaCCiQ 5FldPD99DIa5YOO795iTuYtvABD5Ay0kGroUijBYFW9tZToL/SFiYEixBCdTOtuFLcAU Fl2fcENBUGMoo6+em4UePOynHb0Z2Sev892d9VY4sk7sxOLX1JNSa+4ik1Umb6EIB0fL IbRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727656081; x=1728260881; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jyoWdtrqAqQocydpxS2nIpz/Cf3oVbiqOnKqrX4kkkc=; b=YhPvrg9Q8ANKtjBVVPla8ht0orz7UCiokATYqhhZneGghaGH5cdEf/+A7gT0lkgguM AHRvQnW5ETOSDPVLCCqarX/b1BRbTgwKjcJWlifIaVap591gYIZqgmlaOhQXC65W94Kn oGllWMYCgNuXCM9Dy56JVFl6Rcu51ATwcHwMvXW5J3Rtk1N6/YXCzdfMRfl/HxX7jVAW f+oOp2Pz/19mFNQRc4vKNxboIGR5c6FptVH3UK/C7BkRfpnUVG8+XZ7KOAVy5Mfr84tF zmaYqda6S56cY57KdG4Tc2lt/ugwpRvRus0m4TVUc0+TzjZVc5uVJimoQvDN00veKgO/ UTcw== X-Gm-Message-State: AOJu0YyPtdhWORLgq8QfK7orbeaElxYuqIiPtj0kFuTtz7TM4P45pBrM McnASZUH2MokPj1aQjET/fimO3r4Vbkji60LCzKdpMwqgV+zaVefNaaezYNpK7pVvxbiFtpu3Cx 3HkkU18x8eqKSNqCqgieLgGTk+P1VHnS5 X-Google-Smtp-Source: AGHT+IGkyrXxs70p+UsVjPFeOezzE1iE/G0ezObqgZhgHOenVJcWfxZoZBkerdI683bdZgY98W/xvzNM94nF+DbqlLI= X-Received: by 2002:a05:6870:fba7:b0:254:b337:eebc with SMTP id 586e51a60fabf-28710bb0cc8mr6391086fac.35.1727656081217; Sun, 29 Sep 2024 17:28:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ron Johnson Date: Sun, 29 Sep 2024 20:27:50 -0400 Message-ID: Subject: Re: Failing GSSAPI TCP when connecting to server To: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="00000000000003e1c306234b4729" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000003e1c306234b4729 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Sep 29, 2024 at 2:00=E2=80=AFPM Peter = wrote: > My application is trying to connect the database server, and meanwhile > tries to talk to the KDC server for a service ticket. > Earlier these TCP connections did run like this, and were successful: > > [snip] > > A configuration problem on the machine(s) can be ruled out, Famous last words. > because both > old (working) and new (failing) application are installed on the same > machine at the same time, using the same network, same hardware, same > OS, same libgssapi and same postgres client software connecting to the > same database. > > There are no errors logged on the KDC server, it appears to have > orderly processed the requests (at least at first, it starts to > complain later when the stale sockets get too many). > > The error message on the postgres server is > FATAL: GSSAPI authentication failed for user "pmc" > Is there a way to test pmc authentication via some other tool, like psql? > The OS is FreeBSD Release 13.4-p1 > The postgres client library libpq.so.5 is Release 15.7 > The application postgres interface is rubyGem pq Release 1.5.4 > The application is Discourse 2.2.0 (working) and 2.3.1 (failing) > > What is going on there? > If *only *the application changed, then by definition it can't be a database problem. *Something* in the application changed; you just haven't found it. Specifically, I'd read the Discourse 2.3.0 and 2.3.1 release notes. --=20 Death to , and butter sauce. Don't boil me, I'm still alive. crustacean! --00000000000003e1c306234b4729 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, Sep 29, 2024 at 2:00=E2=80=AFPM P= eter <pmc@citylink.dinoex= .sub.org> wrote:
My application is trying to connect the = database server, and meanwhile
tries to talk to the KDC server for a service ticket.
Earlier these TCP connections did run like this, and were successful:

[snip]=C2=A0

A configuration problem on the machine(s) can be ruled out,

Famous last words.
=C2=A0
because both
old (working) and new (failing) application are installed on the same
machine at the same time, using the same network, same hardware, same
OS, same libgssapi and same postgres client software connecting to the
same database.

There are no errors logged on the KDC server, it appears to have
orderly processed the requests (at least at first, it starts to
complain later when the stale sockets get too many).

The error message on the postgres server is
FATAL:=C2=A0 GSSAPI authentication failed for user "pmc"

Is there a way to test pmc authentication via s= ome other tool, like psql?
=C2=A0
The OS is FreeBSD Release 13.4-p1
The postgres client library libpq.so.5 is Release 15.7
The application postgres interface is rubyGem pq Release 1.5.4
The application is Discourse 2.2.0 (working) and 2.3.1 (failing)

What is going on there?

If only = the application changed, then by definition it can't be a database prob= lem.=C2=A0 Something=C2=A0in the application changed; you just haven= 't found it.
=C2=A0
Specifically, I'd read = the Discourse 2.3.0 and 2.3.1 release notes.

--
Death to <Redacted>, and butter sau= ce.
Don't boil me, I'm still alive.
<Redacted&g= t; crustacean!
--00000000000003e1c306234b4729--