CAS update failed on user_touched for user ID # (User.php line 3889)
by Evans, Richard K. (GRC-H000)
Hello.. I'm getting an error when I run the SemanticMediawiki maintenance script "rebuildData.php"
It consistently crashes on the same article ID and generates the following message:
[72bdb30ca5d03c4cd6978192] [no req] MWException from line 3889 of /var/www/html/mywiki/includes/user/User.php: CAS update failed on user_touched for user ID '18' (read from replica); the version of the user to be saved is older than the current version.
I investigated, and it turns out that User ID '18' is an account I created for my Parsoid service to use. The article is page_id '7108' which corresponds to a Flow talk page that I have edited using the VisualEditor.
Back then (the PageID ~ 7000 era :-) ) .. was when I was installing Echo, Flow, VisualEditor and the Parsoid server.. and I had some messy issues getting them all up and running.. and I think this maintenance script error is a byproduct of that messy phase. Those extensions are all running well and playing nice together I think and so my hope is that if I can "repair" the database, this error with the maintenance script will do away.
Can anyone help me understand what might be going on? .. and how to debug and fix it?
* MW: 1.28.2
* PHP: 5.6.32
* MariaDB: 5.5.56,
* SMW: 2.5.2
* VisualEditor: 0.1.0 (93528b7) 16:23, 25 October 2016
* Parsoid: 0.7.1+git
(P.S. .. SMW folks say this is not a SMW issue)