nahidunlimited@mwmaint2002:~$ mwscript extensions/OATHAuth/maintenance/disableOATHAuthForUser.php --wiki=metawiki <x>
Instead of disabling the 2FA of the user, running the above script gives me the following error,
Wikimedia\Services\NoSuchServiceException from line 431 of /srv/mediawiki/php-1.42.0-wmf.12/vendor/wikimedia/services/src/ServiceContainer.php: No such service: OATHAuthUserRepository #0 /srv/mediawiki/php-1.42.0-wmf.12/vendor/wikimedia/services/src/ServiceContainer.php(411): Wikimedia\Services\ServiceContainer->createService('OATHAuthUserRep...') #1 /srv/mediawiki/php-1.42.0-wmf.12/includes/MediaWikiServices.php(351): Wikimedia\Services\ServiceContainer->getService('OATHAuthUserRep...') #2 /srv/mediawiki/php-1.42.0-wmf.12/extensions/OATHAuth/src/OATHAuthServices.php(62): MediaWiki\MediaWikiServices->getService('OATHAuthUserRep...') #3 /srv/mediawiki/php-1.42.0-wmf.12/extensions/OATHAuth/maintenance/disableOATHAuthForUser.php(31): MediaWiki\Extension\OATHAuth\OATHAuthServices->getUserRepository() #4 /srv/mediawiki/php-1.42.0-wmf.12/maintenance/includes/MaintenanceRunner.php(703): DisableOATHAuthForUser->execute() #5 /srv/mediawiki/php-1.42.0-wmf.12/maintenance/run.php(51): MediaWiki\Maintenance\MaintenanceRunner->run() #6 /srv/mediawiki/multiversion/MWScript.php(158): require_once('/srv/mediawiki/...') #7 {main}
Then I tried using the special page on Meta, https://meta.wikimedia.org/wiki/Special:DisableOATHForUser. This too was showing the following error,
[03952002-1314-4556-8007-af0799a881ae] 2024-01-08 06:11:14: Fatal exception of type "Error"
Looks like a similar error also occurred on this user's end: T354492