pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marc <marc.feeds@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: how to troubleshoot: FATAL: canceling authentication due to timeout
Date: Wed, 17 Mar 2021 20:00:46 +0100
Message-ID: <F22B3915-627D-4CB8-AC42-84A9B8038448@gmail.com> (raw)

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’ve tried common queries to find locks but I can’t see anything relevant.

I would appreciate if someone could point me to the right direction!

Thanks a lot!
Marc.






view thread (3+ messages)  latest in thread

Message-ID: <F22B3915-627D-4CB8-AC42-84A9B8038448@gmail.com>
Permalink:  ../F22B3915-627D-4CB8-AC42-84A9B8038448@gmail.com/
Also on:    postgresql.org/message-id/F22B3915-627D-4CB8-AC42-84A9B8038448@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: marc.feeds@gmail.com
  Subject: Re: how to troubleshoot: FATAL: canceling authentication due to timeout
  In-Reply-To: <F22B3915-627D-4CB8-AC42-84A9B8038448@gmail.com>
  References: <F22B3915-627D-4CB8-AC42-84A9B8038448@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox