Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f6dbf-0005PK-Ab for pgsql-general@arkaria.postgresql.org; Thu, 12 Apr 2018 14:53:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f6dbe-0004Fs-C4 for pgsql-general@arkaria.postgresql.org; Thu, 12 Apr 2018 14:53:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f6dZF-0006vE-Tr for pgsql-general@lists.postgresql.org; Thu, 12 Apr 2018 14:51:18 +0000 Received: from mail-it0-x244.google.com ([2607:f8b0:4001:c0b::244]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f6dZC-00024O-NF for pgsql-general@postgresql.org; Thu, 12 Apr 2018 14:51:16 +0000 Received: by mail-it0-x244.google.com with SMTP id 71-v6so7389824ith.2 for ; Thu, 12 Apr 2018 07:51:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8ZTjmnnMPEVVz7Rq4Tynjz+6fCQBLl47grsJS7sMpZU=; b=Oj9PkxI5ozHkVElNfjSzQ2uTLsduuc0DUeGykqm50c1Ta6xj1/8pCqIPwsVgfo5ARi /USVeYpRs+wzlHoqk0GkjjHIikPG7NvcQc8mgdzwFcpAtMlzitgf7uMXShMAIVp4hmqj WoCzuRtZLUq5xI+8GL+oz0HDsty36ALZ6U39SibAAe5EWPsSvkFg5TWc36zARVNME0FA 8hkX1l//wHCemeYQMOP07Kad2Zn6PMNyqZiASm02aS7fYQ4GZnUy9NZAls2xmCnIiqmG To4MDRGV/Bk5KTGyem7RnWD9o0XQREeEBbsZgCP3gGZk9eZ+NDpUU4XYCXCFFgmmq2mA y8wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8ZTjmnnMPEVVz7Rq4Tynjz+6fCQBLl47grsJS7sMpZU=; b=HRSC8U3dmn5G3JeAN1iWsbmJhKPppH7BKdZGT/Evp+VCz+szD2/4rcf0hY/BNoeA/X G1HjTG423hcujrZnNuPi86YQgx/x8rtI11sHt+mFp8cSs4nU8LfoyIT4GJEH8Mj2Lf9L 69E80hjGjjg6M1G2lvX7Xj0YV6SHbScp+bNrLlS4ZKOy4njiPFDrFnOe27cCvosl+m/T J4viH6jZFhUPUy5dVUgVvKLgeYntCwwj8NhS86s2N5Oy+kywn9xuoef7Dq8cJBwn1nrG RQVTHCd2FS1qGFl33VUHo6bAMa475xdksb8hHuY8BzTCCcmvkSG+Vw8nhdZOe48tZBas fR+A== X-Gm-Message-State: ALQs6tBIwVlJJ8IObIZa6rRq+i4wbZWoUXKu7OYUCgMFYsGI8sP5jiQH dtJ4lVXODoif0OlWef7IQCA9S0rz X-Google-Smtp-Source: AIpwx4/ytcWLrnzH2HRXYQzv3xo4cOP+h9YuV0GasBVglWMDh05Sgw3PnJ9HTD17SpQ85zgm9HSyOA== X-Received: by 2002:a24:3042:: with SMTP id q63-v6mr1418472itq.48.1523544673524; Thu, 12 Apr 2018 07:51:13 -0700 (PDT) Received: from ?IPv6:2605:a601:2062:d00:7c8d:b85d:253a:ab93? ([2605:a601:2062:d00:7c8d:b85d:253a:ab93]) by smtp.gmail.com with ESMTPSA id e9sm1727358ioj.47.2018.04.12.07.51.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Apr 2018 07:51:12 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: authentication failure From: armand pirvu In-Reply-To: <745881b7-5dfb-edba-1700-a58e1ddd270f@aklaver.com> Date: Thu, 12 Apr 2018 09:50:35 -0500 Cc: "pgsql-general@postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <792F77F3-6CA4-484E-BD6C-5267BED69648@gmail.com> References: <365D2700-44D4-4849-A434-E78BF6F526C3@gmail.com> <2496e0fb-bb23-ae29-b0d8-1b96456de56d@aklaver.com> <56528F6F-A2FF-4748-BA3B-15E57855F285@gmail.com> <0DAF9812-45BC-42F9-8C69-C3EDF6B5E66D@gmail.com> <6E90358D-6986-4222-9059-374D7F205F58@gmail.com> <4CF15AC7-6D2B-43B8-8838-0F429240905E@gmail.com> <745881b7-5dfb-edba-1700-a58e1ddd270f@aklaver.com> To: Adrian Klaver X-Mailer: Apple Mail (2.3273) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Apr 12, 2018, at 9:48 AM, Adrian Klaver = wrote: >=20 > On 04/12/2018 07:37 AM, armand pirvu wrote: >>> On Apr 12, 2018, at 9:28 AM, Adrian Klaver = wrote: >>>=20 >>> On 04/12/2018 07:15 AM, armand pirvu wrote: >>>=20 >>>>>=20 >>>>>=20 >>>> Sorry for the double posting but could it be from >>>> #authentication_timeout =3D 1min# 1s-600s >>>=20 >>> =46rom you previous post: >>>=20 >>> "It is almost like the authnetication stops working for whatever = reason" >>>=20 >>> So to be clear the initial connections in the process go through, = but at some point they start failing. Is that correct? >>>=20 >>> The timeout could be an issue. It would helpful to also see what = max_connections setting is. >>>=20 >>>> So if the server gets a bit oveloaded this could play a role ? >>>=20 >>>=20 >>> --=20 >>> Adrian Klaver >>> adrian.klaver@aklaver.com >> Yes correct initially they go through but at some point they start = failing >> Max_connections is set to 200 on the postgres server, but I did not = notice any message about being maxed out connections wise >> As a workaround for this very specific set of processes, until things = get back in line so to speak, do you think from the devweb2004 (where = processing is done) to devdb2004 (where the postgres database resides), = should I just go from md5 to trusted ? >=20 > I would be inclined to raise the authentication_timeout first before = setting the auth method to trust. >=20 > I would also set the below.: >=20 > = https://www.postgresql.org/docs/10/static/runtime-config-logging.html#RUNT= IME-CONFIG-LOGGING-WHAT >=20 > log_connections (boolean) > Causes each attempted connection to the server to be logged, as well = as successful completion of client authentication. Only superusers can = change this parameter at session start, and it cannot be changed at all = within a session. The default is off. >=20 > log_disconnections (boolean) >=20 > That will give you a better idea of what is going on connection wise. >=20 >=20 >=20 > --=20 > Adrian Klaver > adrian.klaver@aklaver.com Will do so and report back=20 Many thanks Armand