[01:45:10] [[Tech]]; 2601:340:4203:B840:5476:2C78:B32:ABB; /* Remove git hub clone */ new section; https://meta.wikimedia.org/w/index.php?diff=23163341&oldid=23162175&rcid=23764858 [01:48:49] [[Tech]]; Reedy; Reverted changes by [[Special:Contributions/2601:340:4203:B840:5476:2C78:B32:ABB|2601:340:4203:B840:5476:2C78:B32:ABB]] ([[User talk:2601:340:4203:B840:5476:2C78:B32:ABB|talk]]) to last version by कन्हाई प्रसाद चौरसिया; https://meta.wikimedia.org/w/index.php?diff=23163349&oldid=23163341&rcid=23764867 [04:57:34] Hi there, I installed CentralAuth on my private wikis and everything works fine so far but, when I log in to one of my wikis using Special:CentralLogin I got the following error so is there any bug? [04:57:42] The provided authentication token is either expired or invalid. [04:59:00] This happens when I log in to meta.example.com and it redirects me to login.example.com and there this error appears. [05:02:01] These are the settings I have in my local settings in the metawiki: [05:02:02] $wgCentralAuthCookies = true; [05:02:02] $wgCentralAuthAutoNew = true; // Parameter deleted from MediaWiki 1.27 [05:02:03] $wgCentralAuthDatabase = 'centralauth'; // default is 'centralauth' [05:02:03] $wgCentralAuthAutoMigrate = true; [05:02:04] $wgCentralAuthCookieDomain = 'login.example.com'; [05:02:04] $wgCentralAuthAutoLoginWikis = array( [05:02:05]     'en.example.com' => 'enwiki', [05:02:05]     'login.example.com' => 'loginwiki', [05:02:05]     'meta.example.com' => 'metawiki', [05:02:06]     # Mapping from domain name to wiki id for other wikis to automatically login into [05:02:06] ); [05:02:07] # Create the local account on pageview, set false to require a local login to create it. [05:02:08] $wgCentralAuthCreateOnView = true; [05:02:08] # Activates the redirect to the "central login wiki" [05:02:09] $wgCentralAuthLoginWiki = 'loginwiki'; [05:02:09] # Skips the "login success" page [05:02:10] $wgCentralAuthSilentLogin = true; [05:09:50] Guest85: I would guess something wrong with your setup for session caching ($wgSessionCacheType or $wgCentralAuthSessionCacheType) [05:10:48] Thank you for replying bawolff , do you mean in login wiki or all wikis? [05:11:08] If your setup involves seperate servers, make sure all of them use a shared cache (E.g. apcu might be problematic if using multiple separate servers). I'm not sure how central auth users it, but I would assume its supposed to be shared across all wikis [05:11:12] I mean for all of them [05:11:31] I think they should all use the same session storage method [05:11:54] Sites are on the same server but under different domains and databases. [05:12:02] That should be fine [05:12:26] * bawolff should note, its been a really long time since I've looked at central auth, so take everything i say with salt [05:13:51] That's alright:)  I'll check if I can solve the caching issue and get back if the problem is not solved. Thank you for your time sir. [05:16:10] One last question bawolff do you think these settings would work? https://www.mediawiki.org/wiki/Extension:CentralAuth#Cache_issues [05:19:17] I wouldn't reccomend changing $wgMainCacheType, as that will affect everything, I would suggest limiting it to $wgCentralAuthSessionCacheType instead as that will only affect central auth [05:19:37] Otherwise, that should work. DB is slightly slower than other cache methods, but the difference is pretty small [05:20:48] There's probably a more modern way to do it, but i don't know what that is off the top of my head. [05:27:37] Alright, I'll try with $wgCentralAuthSessionCacheType then. [05:47:12] bawolff I tried the following settings but they didn't work for some reason. I placed these settings on all wikis. [05:47:12] $wgSharedDB = 'centralauth'; // or whatever database you use for central data [05:47:13] $wgSharedTables = array( 'objectcache' ); // remember to copy the table structure's to the central database first [05:47:13] $wgCentralAuthSessionCacheType = CACHE_DB; // Tell mediawiki to use objectcache database instead of nothing [05:47:14] I even tried $wgCentralAuthTokenCacheType = CACHE_DB; but no help. [06:09:24] It now stopped showing the previous error on the login wiki but now it's showing "MergeAccount Exception: Invalid wiki: enwiki" [06:12:34] Different error message probably is a step in the right direction [06:13:15] I would guess something wrong with $wgConf making it not realize that enwiki is a wiki name, but that's a pure guess [06:16:48] Yes I realised that and fixed that issue. CentralAuth is very complicated and I'm trying to make it fully functional for the last 4 days. :| [06:19:14] Well it's working now. Thank you so so much for your help sir. You saved a lot of my time. Bless ya [13:24:19] Hi there, I installed CentralAuth on my private wiki project and so far it's working fine. I was trying to set up CentralLogin and created login.example.com, meta.example.com and en.example.com. but for some strange reason I can only log in to meta and loginwiki but not on the enwiki so can someone please help me to point out if I'm doing something [13:24:19] wrong? [13:28:42] $wgCentralAuthCookies = true; [13:28:42] $wgCentralAuthAutoNew = true; [13:28:43] $wgCentralAuthDatabase = 'centralauth'; [13:28:43] $wgCentralAuthAutoMigrate = true; [13:28:44] $wgCentralAuthCookieDomain = '.example.com'; [13:28:44] $wgCentralAuthAutoLoginWikis = array( [13:28:45]     'en.example.com' => 'enwiki', [13:28:45]     'login.example.com' => 'loginwiki', [13:28:46]     'meta.example.com' => 'metawiki', [13:28:46]     # Mapping from domain name to wiki id for other wikis to automatically login into [13:28:47] ); [13:28:47] # Create the local account on pageview, set false to require a local login to create it. [13:28:48] $wgCentralAuthCreateOnView = true; [13:28:48] # Activates the redirect to the "central login wiki" [13:28:49] $wgCentralAuthLoginWiki = 'loginwiki'; [13:28:49] # Skips the "login success" page [13:28:50] $wgCentralAuthSilentLogin = true; [13:28:50] # Deprecated, will be removed soon. [13:29:11] These are the settings in my LocalSettings.php [13:39:15] Please note that the settings above are in my metawiki LocalSettings.php [13:40:30] And in the other two, I have $wgConf and shared database details. [13:52:13] Any help please?