Page MenuHomePhabricator

Changing password in MW 1.27.1 throws internal error: "CAS update failed on user_touched for user ID"
Closed, DuplicatePublic

Description

Changing a password under preferences seems to go well, but at the end the following shows up:

Internal error
[fcf93b829a8b942d68f566b2] /index.php?title=Special:ChangeCredentials/MediaWiki%5CAuth%5CPasswordAuthenticationRequest&returnto=Special%3APreferences MWException from line 3811 of /u01/mediawiki/includes/user/User.php: CAS update failed on user_touched for user ID '2' (read from slave); the version of the user to be saved is older than the current version.
Backtrace:
#0 /u01/mediawiki/includes/session/SessionManager.php(306): User->saveSettings()
#1 /u01/mediawiki/includes/specials/SpecialChangeCredentials.php(219): MediaWiki\Session\SessionManager->invalidateSessionsForUser(User)
#2 /u01/mediawiki/includes/specials/SpecialChangeCredentials.php(107): SpecialChangeCredentials->success()
#3 /u01/mediawiki/includes/specialpage/SpecialPage.php(479): SpecialChangeCredentials->execute(string)
#4 /u01/mediawiki/includes/specialpage/SpecialPageFactory.php(576): SpecialPage->run(string)
#5 /u01/mediawiki/includes/MediaWiki.php(282): SpecialPageFactory::executePath(Title, RequestContext)
#6 /u01/mediawiki/includes/MediaWiki.php(745): MediaWiki->performRequest()
#7 /u01/mediawiki/includes/MediaWiki.php(519): MediaWiki->main()
#8 /u01/mediawiki/index.php(43): MediaWiki->run()
#9 {main}

And password hasn't been changed. Field 'user_touched' seems to be updated though.

Event Timeline

In the error_log the following:

[Tue Oct 04 07:19:22 2016] [error] [client 161.90.80.198] PHP Notice: Uncommitted DB writes (transaction from DatabaseBase::query (LinkBatch::doQuery (for Skin::preloadExistence))). in /u01/mediawiki/includes/db/Database.php on line 3303, referer: http://oraclewiki.ao-srv.com/index.php?title=Special:ChangeCredentials/MediaWiki%5CAuth%5CPasswordAuthenticationRequest&returnto=Special%3APreferences

Was thinking that it might be the skin so did a try with another default skin in MediaWiki but that gave the same result.

Aklapper renamed this task from Changing password in Mediawiki 1.27.1 throws an internal error to Changing password in MW 1.27.1 throws internal error: "CAS update failed on user_touched for user ID".Oct 30 2016, 1:34 PM