Authentication issues #13482

Closed
opened 2026-07-30 17:03:57 +00:00 by kevin · 37 comments
Owner

Description of request

Our ipa cluster is fully reinstalled now, but there are still issues we need to sort out:

user facing/high priority:

  • https://accounts.fedoraproject.org is sometimes not allowing people to login. It gives a 'Unauthorized: bad credentials'. This seems sporadic and unclear how many people it effects.
  • fasjson is working, but slow to respond. This can result in things like matrix bots not responding to queries and the like.

internal/lower pri:

  • there are some replication schema errors on ipa01/ipa02 we should fix.
  • many openshift apps are hard coded to use ipa03. I think we can drop this to have them use dns
  • Other things are hard coded to one ipa server, we should try and switch to dns/the cluster
### Description of request Our ipa cluster is fully reinstalled now, but there are still issues we need to sort out: user facing/high priority: * https://accounts.fedoraproject.org is sometimes not allowing people to login. It gives a 'Unauthorized: bad credentials'. This seems sporadic and unclear how many people it effects. * fasjson is working, but slow to respond. This can result in things like matrix bots not responding to queries and the like. internal/lower pri: * there are some replication schema errors on ipa01/ipa02 we should fix. * many openshift apps are hard coded to use ipa03. I think we can drop this to have them use dns * Other things are hard coded to one ipa server, we should try and switch to dns/the cluster
kevin self-assigned this 2026-07-30 17:03:57 +00:00
Contributor

FYI: Retry your login

The FAS lockout threshold has been temporarily increased to allow people to retry their login until it works. The current threshold is 100 failed attempts in 10 minutes.

## FYI: Retry your login The FAS lockout threshold has been temporarily increased to allow people to retry their login until it works. The current threshold is 100 failed attempts in 10 minutes.
Author
Owner

I have also readded all the servers to internal dns and redeployed noggin, so accounts may work more reliably now.
We are still looking for the root cause.

I have also readded all the servers to internal dns and redeployed noggin, so accounts may work more reliably now. We are still looking for the root cause.
Owner

There is also IPA web UI authentication issue, do we want separate ticket for that or just add it to this one?

There is also IPA web UI authentication issue, do we want separate ticket for that or just add it to this one?
Owner

Oh, I was able to login now, not sure if I fixed that by #13486 or it is just a coincidence.

Oh, I was able to login now, not sure if I fixed that by https://forge.fedoraproject.org/infra/tickets/issues/13486 or it is just a coincidence.
Author
Owner

I have been able to login fine for a while, so I hope that issue is solved/gone.

I think everything is back to normal now... if anyone is seeing any problems, please let us know.

I have been able to login fine for a while, so I hope that issue is solved/gone. I think everything is back to normal now... if anyone is seeing any problems, please let us know.

So, I can login here, but accounts.fedoraproject.org still says "Unauthorized: bad credentials." I have 2FA enabled, if that makes a difference.

So, I can login here, but accounts.fedoraproject.org still says "Unauthorized: bad credentials." I have 2FA enabled, if that makes a difference.
Author
Owner

😢

@abompard any ideas? can we get more verbose logs out of noggin?

😢 @abompard any ideas? can we get more verbose logs out of noggin?

Hi, I'm getting lately 400 Bad request every time I try to log in the first time. As I've observed, the authentication is successful but something in between the flow when tries to redirect back to forge goes wrong, getting the 400 response. Next try always is a 401 and the third time I click sign in, just acts as it nothing happens and let me in.

I also have 2FA

Ive tried with both Firefox and Chrome (with and without extensions)

Hi, I'm getting lately 400 Bad request every time I try to log in the first time. As I've observed, the authentication is successful but something in between the flow when tries to redirect back to forge goes wrong, getting the 400 response. Next try always is a 401 and the third time I click sign in, just acts as it nothing happens and let me in. I also have 2FA Ive tried with both Firefox and Chrome (with and without extensions)

I'm seeing the same behavior as flrnd using Epiphany Tech Preview with WebKitGTK 2.53.4. Most recently, just now:

400 - Bad Request
Invalid transaction id

If the error persists and if you think this is an error, contact Fedora Infra to resolve the problem.

This has been ongoing for several months now.

I'm seeing the same behavior as flrnd using Epiphany Tech Preview with WebKitGTK 2.53.4. Most recently, just now: > 400 - Bad Request >Invalid transaction id > >If the error persists and if you think this is an error, contact Fedora Infra to resolve the problem. This has been ongoing for several months now.
Author
Owner

Hi @flrnd and @catanzaro The 400 issue is tracked in #13280

This is about accounts.fedoraproject.org login. Please lets keep issues in one place?

Hi @flrnd and @catanzaro The 400 issue is tracked in https://forge.fedoraproject.org/infra/tickets/issues/13280 This is about accounts.fedoraproject.org login. Please lets keep issues in one place?

@kevin sorry! missed that 🙏

@kevin sorry! missed that 🙏
Author
Owner

No problem at all... sorry if I came accross grumpy there... Hopefully we can fix this and that bug too.

No problem at all... sorry if I came accross grumpy there... Hopefully we can fix this and that bug too.

I observed two things that are not yet documented, so I add them for the record, although I assume both have limited value:

  1. while Firefox experienced the issue always, I could use accounts.fp.org in Falkon without issues. I tried in Firefox again while I was logged in with Falkon, but the issue remained in Firefox. It also remained after I logged out in Falkon.

  2. after I deleted the cached files of firefox ("temporary cached files and pages" -> I did NOT delete "cookies and site data"), the issue was gone. We'll see if it comes back.

I use a default Firefox from our repos, up to date as of today, 153.0 (64-bit). Security settings are strict (but with "fix major site issues" enabled as recommended) and I have uBlock enabled (I do NOT use noScript at the moment:). Accounts used to work fine in the past with these settings, but I didn't use it for several months I think.

Since I cleared my cache, I can no longer reproduce the issue, but If there is anything specific to test or to document when the issue comes back, let me know.

I observed two things that are not yet documented, so I add them for the record, although I assume both have limited value: 1) while Firefox experienced the issue always, I could use accounts.fp.org in Falkon without issues. I tried in Firefox again while I was logged in with Falkon, but the issue remained in Firefox. It also remained after I logged out in Falkon. 2) after I deleted the cached files of firefox ("temporary cached files and pages" -> I did NOT delete "cookies and site data"), the issue was gone. We'll see if it comes back. I use a default Firefox from our repos, up to date as of today, 153.0 (64-bit). Security settings are strict (but with "fix major site issues" enabled as recommended) and I have uBlock enabled (I do NOT use noScript at the moment:). Accounts used to work fine in the past with these settings, but I didn't use it for several months I think. Since I cleared my cache, I can no longer reproduce the issue, but If there is anything specific to test or to document when the issue comes back, let me know.
Owner

I think I fixed the auth issue with IPA web UI. It seems the password max failures was set to 0, and locked user immediately after one failure. I set it to six and it seems to work.

I think I fixed the auth issue with IPA web UI. It seems the password max failures was set to 0, and locked user immediately after one failure. I set it to six and it seems to work.
Author
Owner

Strange. I set that to 100 when we were having problems last week... unless it was a different setting, or somehow got reset?

Strange. I set that to 100 when we were having problems last week... unless it was a different setting, or somehow got reset?
Owner

It was set to 0, before I changed it.

It was set to 0, before I changed it.
Owner

Not sure if that IPA web UI issue is fixed. It's set to 100 again, but my account was locked when I tried to login and have to unlock it to be able to log in.

Not sure if that IPA web UI issue is fixed. It's set to 100 again, but my account was locked when I tried to login and have to unlock it to be able to log in.
Author
Owner

Yeah, so I don't think this is actually the problem. When people have said they cannot login I have run 'ipa user-status' on them and also 'ipa user-unlock' and it doesn't seem to matter.

Are folks still seeing this?

I think we need to either get noggin to log more about why it's saying unauthorized and/or match that up to a ipa dirserv log about the access. Would be nice to close this one out..

Yeah, so I don't think this is actually the problem. When people have said they cannot login I have run 'ipa user-status' on them and also 'ipa user-unlock' and it doesn't seem to matter. Are folks still seeing this? I think we need to either get noggin to log more about why it's saying unauthorized and/or match that up to a ipa dirserv log about the access. Would be nice to close this one out..

https://accounts.fedoraproject.org is sometimes not allowing people to login. It gives a 'Unauthorized: bad credentials'. This seems sporadic and unclear how many people it effects.

This is still happening. I tried today to log into Noggin and It wasn't working and then I waited a bit to try again and it worked and then I tried to log back in after my session timed out and couldn't again.

> https://accounts.fedoraproject.org is sometimes not allowing people to login. It gives a 'Unauthorized: bad credentials'. This seems sporadic and unclear how many people it effects. This is still happening. I tried today to log into Noggin and It wasn't working and then I waited a bit to try again and it worked and then I tried to log back in after my session timed out and couldn't again.
Owner

I think I found the problem on IPA.

This is what I can see in httpd error_log:

[Fri Aug 14 08:05:02.250703 2026] [:warn] [pid 1988634:tid 1988685] [client 10.16.163.124:41838] failed to set perms (3140) on file (/run/ipa/ccaches/noggin@FEDORAPROJECT.ORG-TuEOnc)!, referer: https://ipa03.rdu3.fedoraproject.org/ipa

There are a lot of errors like this

I think I found the problem on IPA. This is what I can see in httpd error_log: ``` [Fri Aug 14 08:05:02.250703 2026] [:warn] [pid 1988634:tid 1988685] [client 10.16.163.124:41838] failed to set perms (3140) on file (/run/ipa/ccaches/noggin@FEDORAPROJECT.ORG-TuEOnc)!, referer: https://ipa03.rdu3.fedoraproject.org/ipa ``` There are a lot of errors like this
Owner

Found that the ipa-otpd was failing with Aug 14 08:59:56 ipa03.rdu3.fedoraproject.org ipa-otpd[3649437]: bind.c:089: Input/output error: IO error received on bind socket: Can't contact LDAP server and restarted it which fixed the authentication issue I saw on IPA web UI.

I unfortunately didn't found the root cause of this, but this would explain the Bad credentials error as the OTP didn't work correctly.

Found that the `ipa-otpd` was failing with `Aug 14 08:59:56 ipa03.rdu3.fedoraproject.org ipa-otpd[3649437]: bind.c:089: Input/output error: IO error received on bind socket: Can't contact LDAP server` and restarted it which fixed the authentication issue I saw on IPA web UI. I unfortunately didn't found the root cause of this, but this would explain the `Bad credentials` error as the OTP didn't work correctly.
Author
Owner

Interesting. Does everyone who was seeing this have a otp enrolled? I think they might?

Note that ipa-otpd is setup as a systemd 'socket', so it listens for requests and then fires up the service. That service is sometimes getting that error. Explains why it might work after a while as the service times out and has to get started again from the socket.

I guess we need to file a ipa bug here and ask for help... I couldn't find anything already existing from a search.

All 3 ipa servers have those errors, so I don't think it's anything specific to ipa03.

And... I was able to hit the 'cannot login to the ipa web ui' issue... and otpd was working, it just rejected me:

Aug 14 17:11:30 ipa03.rdu3.fedoraproject.org ipa-otpd[7609]: kevin@FEDORAPROJECT.ORG: request rece
ived
Aug 14 17:11:30 ipa03.rdu3.fedoraproject.org ipa-otpd[7609]: kevin@FEDORAPROJECT.ORG: user query s
tart
Aug 14 17:11:30 ipa03.rdu3.fedoraproject.org ipa-otpd[7609]: kevin@FEDORAPROJECT.ORG: user query e
nd: uid=kevin,cn=users,cn=accounts,dc=fedoraproject,dc=org
Aug 14 17:11:30 ipa03.rdu3.fedoraproject.org ipa-otpd[7609]: kevin@FEDORAPROJECT.ORG: bind start: 
uid=kevin,cn=users,cn=accounts,dc=fedoraproject,dc=org
Aug 14 17:11:30 ipa03.rdu3.fedoraproject.org ipa-otpd[7609]: kevin@FEDORAPROJECT.ORG: bind end: In
valid credentials
Aug 14 17:11:30 ipa03.rdu3.fedoraproject.org ipa-otpd[7609]: kevin@FEDORAPROJECT.ORG: sent: 0 data
: 20
Aug 14 17:11:30 ipa03.rdu3.fedoraproject.org ipa-otpd[7609]: kevin@FEDORAPROJECT.ORG: ..sent: 20 d
ata: 20
Aug 14 17:11:30 ipa03.rdu3.fedoraproject.org ipa-otpd[7609]: kevin@FEDORAPROJECT.ORG: response sent: Access-Reject

So, not convinced this is the issue... :(

Interesting. Does everyone who was seeing this have a otp enrolled? I think they might? Note that ipa-otpd is setup as a systemd 'socket', so it listens for requests and then fires up the service. That service is sometimes getting that error. Explains why it might work after a while as the service times out and has to get started again from the socket. I guess we need to file a ipa bug here and ask for help... I couldn't find anything already existing from a search. All 3 ipa servers have those errors, so I don't think it's anything specific to ipa03. And... I was able to hit the 'cannot login to the ipa web ui' issue... and otpd was working, it just rejected me: ``` Aug 14 17:11:30 ipa03.rdu3.fedoraproject.org ipa-otpd[7609]: kevin@FEDORAPROJECT.ORG: request rece ived Aug 14 17:11:30 ipa03.rdu3.fedoraproject.org ipa-otpd[7609]: kevin@FEDORAPROJECT.ORG: user query s tart Aug 14 17:11:30 ipa03.rdu3.fedoraproject.org ipa-otpd[7609]: kevin@FEDORAPROJECT.ORG: user query e nd: uid=kevin,cn=users,cn=accounts,dc=fedoraproject,dc=org Aug 14 17:11:30 ipa03.rdu3.fedoraproject.org ipa-otpd[7609]: kevin@FEDORAPROJECT.ORG: bind start: uid=kevin,cn=users,cn=accounts,dc=fedoraproject,dc=org Aug 14 17:11:30 ipa03.rdu3.fedoraproject.org ipa-otpd[7609]: kevin@FEDORAPROJECT.ORG: bind end: In valid credentials Aug 14 17:11:30 ipa03.rdu3.fedoraproject.org ipa-otpd[7609]: kevin@FEDORAPROJECT.ORG: sent: 0 data : 20 Aug 14 17:11:30 ipa03.rdu3.fedoraproject.org ipa-otpd[7609]: kevin@FEDORAPROJECT.ORG: ..sent: 20 d ata: 20 Aug 14 17:11:30 ipa03.rdu3.fedoraproject.org ipa-otpd[7609]: kevin@FEDORAPROJECT.ORG: response sent: Access-Reject ``` So, not convinced this is the issue... :(

Interesting. Does everyone who was seeing this have a otp enrolled? I think they might?

Yes, I have OTP enabled (but not sure if I'm still affected as I didn't use accounts.fp since my last post)

> Interesting. Does everyone who was seeing this have a otp enrolled? I think they might? Yes, I have OTP enabled (but not sure if I'm still affected as I didn't use accounts.fp since my last post)
Owner

In case of IPA web UI it usually helps me to just do ipa user-unlock, but I'm not sure if accounts.fedoraproject.org is the same problem and I'm also not sure why the account get locked in first place.

EDIT: One idea crossed my mind, isn't there some grace period after giving the wrong login credentials before it will let you try again.

In case of IPA web UI it usually helps me to just do `ipa user-unlock`, but I'm not sure if accounts.fedoraproject.org is the same problem and I'm also not sure why the account get locked in first place. EDIT: One idea crossed my mind, isn't there some grace period after giving the wrong login credentials before it will let you try again.
Contributor

Does everyone who was seeing this have a otp enrolled?

I have OTP enrolled.

isn't there some grace period after giving the wrong login credentials before it will let you try again

This could be exacerbating things, though there has definitely been some amount of false "bad credentials" happening. I use 1Password, so zero opportunity to typo anything. (Unless someone is trying to brute force my password and locking my account! Clankers?)

> Does everyone who was seeing this have a otp enrolled? I have OTP enrolled. > isn't there some grace period after giving the wrong login credentials before it will let you try again This could be exacerbating things, though there has definitely been some amount of false "bad credentials" happening. I use 1Password, so zero opportunity to typo anything. (Unless someone is trying to brute force my password and locking my account! Clankers?)
Author
Owner

So, I went down this path too, but everytime I (or someone else) was having problems logging in and I checked with 'ipa user-status ' it said they were not locked, and 'ipa user-unlock' didn't seem to do anything. ;(

As far as the time limits, I set them to 10 seconds a while ago, and the number of failed logins is 100...

So, if it is this thing, it's acting in a way that doesn't seem as described.

So, I went down this path too, but everytime I (or someone else) was having problems logging in and I checked with 'ipa user-status <user>' it said they were not locked, and 'ipa user-unlock' didn't seem to do anything. ;( As far as the time limits, I set them to 10 seconds a while ago, and the number of failed logins is 100... So, if it is this thing, it's acting in a way that doesn't seem as described.

Do we know for sure if this issue only affects users with 2FA enabled or if that's a red herring? If this is 2FA related, it would be ideal to have it sorted before the provenpackager 2FA flag date at the end of September.

(EDIT: If it helps, I also have 2FA enabled and hit this again today)

Do we know for sure if this issue only affects users with 2FA enabled or if that's a red herring? If this is 2FA related, it would be ideal to have it sorted before the provenpackager 2FA flag date at the end of September. (EDIT: If it helps, I also have 2FA enabled and hit this again today)
Owner

We are not sure, but it looks like a common pattern.

We are not sure, but it looks like a common pattern.

I can log into accounts, but I can no longer log into id.fedoraproject.org or id.centos.org since enabling 2FA OTPs. I now persistently get 401 errors.

I can log into accounts, but I can no longer log into id.fedoraproject.org or id.centos.org since enabling 2FA OTPs. I now persistently get 401 errors.
Author
Owner

Huh, thats different and the first report we have seen of that. By "log into id.fedoraproject.org or id.centos.org" you mean you try and log into some application, you don't have a kerberos ticket and it redirects to id to ask your credentials?

What application was it?
What error did it give? just incorrect password?

If you do have a valid kerberos ticket does it log you in?

Huh, thats different and the first report we have seen of that. By "log into id.fedoraproject.org or id.centos.org" you mean you try and log into some application, you don't have a kerberos ticket and it redirects to id to ask your credentials? What application was it? What error did it give? just incorrect password? If you _do_ have a valid kerberos ticket does it log you in?

@kevin wrote in #13482 (comment):

Huh, thats different and the first report we have seen of that. By "log into id.fedoraproject.org or id.centos.org" you mean you try and log into some application, you don't have a kerberos ticket and it redirects to id to ask your credentials?

Yup.

What application was it? What error did it give? just incorrect password?

Three applications so far: RHBZ. GitLab.com. Dist-Git.

I get "authentication failure" today, but yesterday I got "unauthorized".

If you do have a valid kerberos ticket does it log you in?

Yes, but this is not applicable on my phone or my Mac.

@kevin wrote in https://forge.fedoraproject.org/infra/tickets/issues/13482#issuecomment-1345338: > Huh, thats different and the first report we have seen of that. By "log into id.fedoraproject.org or id.centos.org" you mean you try and log into some application, you don't have a kerberos ticket and it redirects to id to ask your credentials? Yup. > What application was it? What error did it give? just incorrect password? Three applications so far: RHBZ. GitLab.com. Dist-Git. I get "authentication failure" today, but yesterday I got "unauthorized". > If you _do_ have a valid kerberos ticket does it log you in? Yes, but this is not applicable on my phone or my Mac.
Author
Owner

So, this thing turned out to be sssd on ipsilon01 being in a bad state. I am guessing that it worked for people who it had cached info for, but not for anyone else. :( I think it was caused by the ipa02 re-sync, but not sure of that. In any case, restarting sssd on ipsilon01 seems to have fixed that.

(But will not I am pretty sure fix the sporadic problems logging into accounts / ipa web ui)

So, this thing turned out to be sssd on ipsilon01 being in a bad state. I am guessing that it worked for people who it had cached info for, but not for anyone else. :( I think it was caused by the ipa02 re-sync, but not sure of that. In any case, restarting sssd on ipsilon01 seems to have fixed that. (But will not I am pretty sure fix the sporadic problems logging into accounts / ipa web ui)
Owner

So I reinstalled ipa02 and ipa03, hopefully that will make the ipa cluster more stable. Let's see if that helps with this issue as well.

So I reinstalled ipa02 and ipa03, hopefully that will make the ipa cluster more stable. Let's see if that helps with this issue as well.
Author
Owner

I've tweaked some things on ipsilon01 to avoid the bad state ( I hope ).

If folks see any issues now, can you please let us know? (and which exact issue?)

Reminder, the issues are:

  1. Cannot login to accounts.fedoraproject.org (I have not seen reports of this since the ipa cluster was all back)
  2. Cannot login to applications via dialog at id.fedoraproject.org (the ipsilon thing I hopefully fixed/mitigated)
  3. 400 or 401's when trying to login to applications
I've tweaked some things on ipsilon01 to avoid the bad state ( I hope ). If folks see any issues now, can you please let us know? (and which exact issue?) Reminder, the issues are: 1. Cannot login to accounts.fedoraproject.org (I have not seen reports of this since the ipa cluster was all back) 2. Cannot login to applications via dialog at id.fedoraproject.org (the ipsilon thing I hopefully fixed/mitigated) 3. 400 or 401's when trying to login to applications
Author
Owner

I've seen no reports in the last 5 days. If anyone is still seeing something, please let us know.

I'll keep this open for a bit more to gather more issues if any.

I've seen no reports in the last 5 days. If anyone is still seeing something, please let us know. I'll keep this open for a bit more to gather more issues if any.
Owner

Maybe it helped when I reinstalled the ipa02 and ipa03 again with you tweaking the ipsilon01.

Maybe it helped when I reinstalled the ipa02 and ipa03 again with you tweaking the ipsilon01.
Author
Owner

Yeah, I think so...

I guess I am going to close this now.

Please report any new issues.

Yeah, I think so... I guess I am going to close this now. Please report any new issues.
kevin closed this issue 2026-09-01 22:07:21 +00:00
Sign in to join this conversation.
No milestone
No assignees
9 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
infra/tickets#13482
No description provided.