Page MenuHomePhabricator

Fatal exception on en.wp trying to register to a course: "CAS update failed"
Closed, DuplicatePublicPRODUCTION ERROR

Description

https://en.wikipedia.org/wiki/Wikipedia:Education_noticeboard#Students_cannot_enroll_in_course_-_token_broken.3F

[V9ZSzgpAEKsAADcPAlMAAABH] 2016-09-12 07:01:34: Fatal exception of type "MWException

Event Timeline

2016-09-12 07:01:34 [V9ZSzgpAEKsAADcPAlMAAABH] mw1216 enwiki 1.28.0-wmf.18 exception ERROR: [V9ZSzgpAEKsAADcPAlMAAABH] /wiki/Special:Enroll/Hanyang_University/Information_Sociology_Project:_Exploring_Korea_through_Wikivoyage_(Fall_2016)_(Fall)   MWException from line 3848 of /srv/mediawiki/php-1.28.0-wmf.18/includes/user/User.php: CAS update failed on user_touched for user ID '29155884' (read from replica); the version of the user to be saved is older than the current version. {"exception_id":"V9ZSzgpAEKsAADcPAlMAAABH"} 
[Exception MWException] (/srv/mediawiki/php-1.28.0-wmf.18/includes/user/User.php:3848) CAS update failed on user_touched for user ID '29155884' (read from replica); the version of the user to be saved is older than the current version.
  #0 /srv/mediawiki/php-1.28.0-wmf.18/extensions/EducationProgram/includes/RoleObject.php(327): User->saveSettings()
  #1 /srv/mediawiki/php-1.28.0-wmf.18/extensions/EducationProgram/includes/rows/Course.php(767): EducationProgram\RoleObject->onEnrolled(integer, string)
  #2 /srv/mediawiki/php-1.28.0-wmf.18/extensions/EducationProgram/includes/specials/SpecialEnroll.php(255): EducationProgram\Course->enlistUsers(array, string, boolean, EducationProgram\RevisionAction)
  #3 /srv/mediawiki/php-1.28.0-wmf.18/extensions/EducationProgram/includes/specials/SpecialEnroll.php(362): EducationProgram\SpecialEnroll->doEnroll(EducationProgram\Course)
  #4 /srv/mediawiki/php-1.28.0-wmf.18/includes/htmlform/HTMLForm.php(653): EducationProgram\SpecialEnroll->handleSubmission(array, HTMLForm)
  #5 /srv/mediawiki/php-1.28.0-wmf.18/includes/htmlform/HTMLForm.php(550): HTMLForm->trySubmit()
  #6 /srv/mediawiki/php-1.28.0-wmf.18/includes/htmlform/HTMLForm.php(565): HTMLForm->tryAuthorizedSubmit()
  #7 /srv/mediawiki/php-1.28.0-wmf.18/extensions/EducationProgram/includes/specials/SpecialEnroll.php(276): HTMLForm->show()
  #8 /srv/mediawiki/php-1.28.0-wmf.18/extensions/EducationProgram/includes/specials/SpecialEnroll.php(134): EducationProgram\SpecialEnroll->showEnrollmentForm(array)
  #9 /srv/mediawiki/php-1.28.0-wmf.18/extensions/EducationProgram/includes/specials/SpecialEnroll.php(88): EducationProgram\SpecialEnroll->showEnrollmentView(EducationProgram\Course)
  #10 /srv/mediawiki/php-1.28.0-wmf.18/includes/specialpage/SpecialPage.php(522): EducationProgram\SpecialEnroll->execute(string)
  #11 /srv/mediawiki/php-1.28.0-wmf.18/includes/specialpage/SpecialPageFactory.php(584): SpecialPage->run(string)
  #12 /srv/mediawiki/php-1.28.0-wmf.18/includes/MediaWiki.php(283): SpecialPageFactory::executePath(Title, RequestContext)
  #13 /srv/mediawiki/php-1.28.0-wmf.18/includes/MediaWiki.php(750): MediaWiki->performRequest()
  #14 /srv/mediawiki/php-1.28.0-wmf.18/includes/MediaWiki.php(521): MediaWiki->main()
  #15 /srv/mediawiki/php-1.28.0-wmf.18/index.php(43): MediaWiki->run()
  #16 /srv/mediawiki/w/index.php(3): include(string)
  #17 {main}
Aklapper renamed this task from Fatal exception on en.wp trying to register to a course to Fatal exception on en.wp trying to register to a course: "CAS update failed".Sep 15 2016, 2:48 PM

Note the enwiki comment above, appears to only occur if the student trying to register does not have a gender specified in preferences - and they are prompted to "optional" select a gender to complete enrollment - but any option leads to the failure state; if they set a gender in preference first this dialog page is not presented and the enrollment passes

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