Page MenuHomePhabricator

Fatal error MWException when using [[Special:NotifyTranslators]] on Meta: "CAS update failed on user_touched"
Closed, ResolvedPublicPRODUCTION ERROR

Description

I just hit

[732313cd] 2016-03-07 12:06:54: Erreur fatale de type « MWException »

When marking for translation on https://meta.wikimedia.org/w/index.php?title=Special:NotifyTranslators&tpage=9967716

Event Timeline

2016-03-07 12:06:54 mw1214 metawiki 1.27.0-wmf.15 exception ERROR: [732313cd] /wiki/Special:NotifyTranslators   MWException from line 3809 of /srv/mediawiki/php-1.27.0-wmf.15/includes/user/User.php: CAS update failed on user_touched for user ID '641408' (read from slave); the version of the user to be saved is older than the current version. {"exception_id":"732313cd"} 
[Exception MWException] (/srv/mediawiki/php-1.27.0-wmf.15/includes/user/User.php:3809) CAS update failed on user_touched for user ID '641408' (read from slave); the version of the user to be saved is older than the current version.
  #0 /srv/mediawiki/php-1.27.0-wmf.15/extensions/TranslationNotifications/SpecialNotifyTranslators.php(291): User->saveSettings()
  #1 /srv/mediawiki/php-1.27.0-wmf.15/includes/htmlform/HTMLForm.php(607): SpecialNotifyTranslators->submitNotifyTranslatorsForm(array, HTMLForm)
  #2 /srv/mediawiki/php-1.27.0-wmf.15/includes/htmlform/HTMLForm.php(504): HTMLForm->trySubmit()
  #3 /srv/mediawiki/php-1.27.0-wmf.15/extensions/TranslationNotifications/SpecialNotifyTranslators.php(70): HTMLForm->tryAuthorizedSubmit()
  #4 /srv/mediawiki/php-1.27.0-wmf.15/includes/specialpage/SpecialPage.php(407): SpecialNotifyTranslators->execute(NULL)
  #5 /srv/mediawiki/php-1.27.0-wmf.15/includes/specialpage/SpecialPageFactory.php(565): SpecialPage->run(NULL)
  #6 /srv/mediawiki/php-1.27.0-wmf.15/includes/MediaWiki.php(282): SpecialPageFactory::executePath(Title, RequestContext)
  #7 /srv/mediawiki/php-1.27.0-wmf.15/includes/MediaWiki.php(738): MediaWiki->performRequest()
  #8 /srv/mediawiki/php-1.27.0-wmf.15/includes/MediaWiki.php(519): MediaWiki->main()
Aklapper renamed this task from Fatal error « MWException » when using [[Special:NotifyTranslators]] on Meta to Fatal error MWException when using [[Special:NotifyTranslators]] on Meta: "CAS update failed on user_touched".Jul 20 2017, 9:54 AM

We should probably stop storing translationnotifications-timestamp as a user preference and instead do something similar to what Echo does for storing last seen time (https://phabricator.wikimedia.org/diffusion/ECHO/browse/master/includes/SeenTime.php)

mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:11 PM

Change 553777 had a related patch set uploaded (by Umherirrender; owner: Umherirrender):
[mediawiki/extensions/TranslationNotifications@master] Use User::getInstanceForUpdate on SpecialNotifyTranslators

https://gerrit.wikimedia.org/r/553777

Change 553777 abandoned by Umherirrender:
Use User::getInstanceForUpdate on SpecialNotifyTranslators

Reason:
Superseeded by I3d1495c6f1f9fe096bf7bd825e893d8de56a9a7d

https://gerrit.wikimedia.org/r/553777

Nikerabbit claimed this task.
Nikerabbit subscribed.

I see some entries on Logstash related to sending translation notifications, but they come from MassMessage code, which I believe is tracked in T171003: MassMessage not working for delivery to Suwikiquote or Mlwikiquote: "CAS update failed on user_touched"