Page MenuHomePhabricator

No central session found
Closed, DeclinedPublicPRODUCTION ERROR

Description

Error
normalized_message
No central session found
exception.trace
Impact

122 entries in the last 7 days. Latest entries seen today (6th Jan) on loginwiki.

Notes
  • Seems to be affecting temporary accounts mostly.

Details

Request URL
https://login.wikimedia.org/wiki/Special:CentralAutoLogin/validateSession?token=*&type=*&useformat=*&wikiid=*

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Seems to be affecting temporary accounts mostly.

In a small sample I checked, about 80% are temporary accounts. Mostly it happens on /validateSession but there are also a few /refreshCookies.

The linked reqId has two log events:
Expected key global:centralautologin-token:centralauth:<token>:<wiki> found.
No central session found
so it's not a token store miss (which would lead to a different error anways). Seems to be the case for other instances of the error as well. The line that throws this warning, on the other hand, shouldn't be reachable after a session store hit (since session store objects always have a session ID). So what seems to be happening is that the central session expires or gets deleted between /createSession and /validateSession (or the central login end step and /refreshSession). That happening a hundred times a week by random chance seems very implausible.

I don't think we ever delete central sessions (which is actually somewhat surprising - shouldn't at least sessionIdWasReset() do that?) so I have no idea how this could happen, other than some sort of instrastructure failure (but RESTBagOStuff should be logging those).

This is being logged as a warning with no stack trace. Do we want to log more detailed information with ->debug() here @Tgr? A trace will be really useful here.

This was added as temporary logging for T372702: editors are repeatedly getting logged out (August 2024) and it being logged as a warning, we can ignore for now.

It's still happening anyways but not very frequently - seeing 10 occurrences so far today.