Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMbPb-00040g-2F for pgsql-general@arkaria.postgresql.org; Wed, 17 Mar 2021 19:00:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lMbPZ-0003np-Sf for pgsql-general@arkaria.postgresql.org; Wed, 17 Mar 2021 19:00:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMbPZ-0003ni-Iq for pgsql-general@lists.postgresql.org; Wed, 17 Mar 2021 19:00:53 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lMbPX-0007Ow-IE for pgsql-general@lists.postgresql.org; Wed, 17 Mar 2021 19:00:53 +0000 Received: by mail-wm1-x334.google.com with SMTP id z6-20020a1c4c060000b029010f13694ba2so1930332wmf.5 for ; Wed, 17 Mar 2021 12:00:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=B2fyDX3mRMB8OedV0OLK033G4G1PwWQ1wF1NgTSs1lU=; b=dvsQy+wb9Do/xiuFsFfACEC8JGQiqwuxMlN/Dgn/oypzY5Ns9nWijqvWNs0adMsrv3 NFy41qRZ1k5V31ixzpycsCq/ayS7rzyhnrcn6n5kyhz/BafW+qGTjiomL5aQvIbMeGdZ VcWEhccLlVYX9kdiMuUZzoLAmYyS5Jjtcw0zsQHzj0uixixPeUxIZ4kmFol3Jx68H3Lk CLsFdyu2HDXXZ/ZCMXeW2gMXZluSUAhf3ZNxG7XisDl4P6tBE6ux5yFPe87gCmGvuD5A 02g2+jRDXEiec8KqKR67a6nFtTDk9R8ME0psR329jStQHtTnmTZKKTdFmy2U+xVE19NP NrOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=B2fyDX3mRMB8OedV0OLK033G4G1PwWQ1wF1NgTSs1lU=; b=K64bwtFfjATCWeP2y+bG2GHA3uy7rnx2lHLPFgmj+CJyQtpEmevpz/LM+GXVy9AtTM Ing664ueoi+Kb5XxHjgUxs1L2ldswX3zrLgJloT6IK9WAj3jm9BWa6/NZHAq9TijQxLM pt49S/l0nug6IrGNma091kg5UsqmlUYIjpiDAoGWDdDNsfhWXtiljrf1VRUZ7m/AGRYF vaDGDj8yF1iOWVQJPKNBg589lkSYDpQRdgSr075SN8JscuFSXvdpdr/X/H76YabvxNP4 D0cHrRp6WFbKBZIxkgmiWK73A1n24QzspVYRDmiKEzUZ7/E7QUUyWqQ/lc6MHGx8I6aY w20Q== X-Gm-Message-State: AOAM5308+Q0IzDKqzqE4sHcXXv/kLWS7PUuHW+yqayxyzWzekWNaCUaP 2TCioITidGer3Uhi2Z0w75+VfI1oKxinOQ== X-Google-Smtp-Source: ABdhPJz+L9fLJOwDJ3JtIytw/N+d3z1IT+7jjTRJaOVF5o4ZJUuGN25WWxz2ue+8Ny+5/X7rYB50UQ== X-Received: by 2002:a1c:1f4a:: with SMTP id f71mr69588wmf.101.1616007648494; Wed, 17 Mar 2021 12:00:48 -0700 (PDT) Received: from [192.168.1.52] (178.red-88-20-174.staticip.rima-tde.net. [88.20.174.178]) by smtp.gmail.com with ESMTPSA id b131sm3035802wmb.34.2021.03.17.12.00.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Mar 2021 12:00:48 -0700 (PDT) From: Marc Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: how to troubleshoot: FATAL: canceling authentication due to timeout Message-Id: Date: Wed, 17 Mar 2021 20:00:46 +0100 To: pgsql-general@lists.postgresql.org X-Mailer: Apple Mail (2.3608.120.23.2.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk hi all, We are facing a problem with a user login into database. It happens when = there is large load and only from time to time. Once we get this error, the user becomes unusable until database is = restarted. (That user is being used by multiple instances of the same = application, it also happens using dedicated users for each application, = resulting on one of those users being locked out, the rest keep working = fine) The errors is as follows: LOG: pam_authenticate failed: Authentication failure FATAL: canceling authentication due to timeout Our setup: 3 nodes cluster - Centos 7 - Streaming replication in place (async) - WAL shipped to an external location - pooling done at client side - Centos joined to an Active Directory domain - Authentication is using PAM module User is completely fine in AD side since i can use it to login to a = standby DB. I guess there must be a lock that prevents this user to do the first = authentication step, but no idea how to find it. I=E2=80=99ve tried = common queries to find locks but I can=E2=80=99t see anything relevant. I would appreciate if someone could point me to the right direction! Thanks a lot! Marc.