Hi Everyone,

We are getting about 11,000 of these due to a spammer getting in a
couple of years ago:

... log_id=4200
... log_id=4300
... log_id=4400
User name "Awpgkcm9ly0hjqagqrpl" is usable, cannot create an anonymous
actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this
situation.
...

$ grep -c 'anon' mw.txt
11748

I've tried manually cleaning them, but cleanupUsersWithNoId.php seems
to be missing them:

Error:
==========

# php maintenance/cleanupUsersWithNoId.php --dbuser=<user>
--dbpass=<passwd> --force --conf=LocalSettings.php

Notice: Undefined index: SERVER_NAME in
/var/www/html/w/includes/GlobalFunctions.php on line 1388
Notice: Undefined index: SERVER_NAME in
/var/www/html/w/includes/GlobalFunctions.php on line 1388
Param prefix required!

Cleans up tables that have valid usernames with no user ID

Usage: php cleanupUsersWithNoId.php
[--assign|--batch-size|--conf|--dbgroupdefault|--dbpass|--dbuser|--force|--globals|--help|--memory-limit|--mwdebug|--prefix|--profiler|--quiet|--server|--table|--wiki]
...

Try again:
==========

# php maintenance/cleanupUsersWithNoId.php --dbuser=<user>
--dbpass=<passwd> --prefix=* --force --conf=LocalSettings.php

Notice: Undefined index: SERVER_NAME in
/var/www/html/w/includes/GlobalFunctions.php on line 1388
Notice: Undefined index: SERVER_NAME in
/var/www/html/w/includes/GlobalFunctions.php on line 1388

But the entries persist.

I think I am not getting the options right. Here are the docs, but
they have not been helpful:
https://www.mediawiki.org/wiki/Manual:CleanupUsersWithNoId.php .

Does anyone know what switches I should be using to clean the unwanted users?

Jeff

_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to