pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedhow to troubleshoot: FATAL: canceling authentication due to timeout
3+ messages / 2 participants
[nested] [flat]
* how to troubleshoot: FATAL: canceling authentication due to timeout
@ 2021-03-17 19:00 Marc <marc.feeds@gmail.com>
2021-03-17 21:32 ` Re: how to troubleshoot: FATAL: canceling authentication due to timeout Diego <mrstephenamell@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Marc @ 2021-03-17 19:00 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: how to troubleshoot: FATAL: canceling authentication due to timeout
2021-03-17 19:00 how to troubleshoot: FATAL: canceling authentication due to timeout Marc <marc.feeds@gmail.com>
@ 2021-03-17 21:32 ` Diego <mrstephenamell@gmail.com>
2021-03-18 00:49 ` Re: how to troubleshoot: FATAL: canceling authentication due to timeout Marc <marc.feeds@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Diego @ 2021-03-17 21:32 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
hi!
What you see in the log files of CentOS ( /var/log ) ?
i
On 17/03/2021 16:00, Marc wrote:
> 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.
>
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: how to troubleshoot: FATAL: canceling authentication due to timeout
2021-03-17 19:00 how to troubleshoot: FATAL: canceling authentication due to timeout Marc <marc.feeds@gmail.com>
2021-03-17 21:32 ` Re: how to troubleshoot: FATAL: canceling authentication due to timeout Diego <mrstephenamell@gmail.com>
@ 2021-03-18 00:49 ` Marc <marc.feeds@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Marc @ 2021-03-18 00:49 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Hi,
Not much, we don't see any failed login.
We have added debug login into sssd service since we just found out that
restarting sssd released the user and it became usable again.
So there must be something wrong between postgres and sssd/pam modules...
Waiting now for fresh logs if it happens again.
Thanks!
On Wed, 17 Mar 2021, 22:32 Diego, <mrstephenamell@gmail.com> wrote:
> hi!
>
> What you see in the log files of CentOS ( /var/log ) ?
> i
>
>
> On 17/03/2021 16:00, Marc wrote:
>
> 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.
>
>
>
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2021-03-18 00:49 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-03-17 19:00 how to troubleshoot: FATAL: canceling authentication due to timeout Marc <marc.feeds@gmail.com>
2021-03-17 21:32 ` Diego <mrstephenamell@gmail.com>
2021-03-18 00:49 ` Marc <marc.feeds@gmail.com>
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