Page MenuHomePhabricator

Elli777 (Elena)
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Tuesday

  • Clear sailing ahead.

User Details

User Since
May 3 2022, 12:37 PM (112 w, 5 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Elli777 [ Global Accounts ]

Recent Activity

May 12 2022

Elli777 added a comment to T229092: Investigate migrateActors script failing due to duplicate empty actor_name.

Another update from me here. I have manually applied the patch as described here https://gerrit.wikimedia.org/r/c/mediawiki/core/+/765191/1/maintenance/includes/MigrateActors.php#220
and it actually worked! I was able to migrate my DB. Very helpful, hope this patch gets approved and merged.

May 12 2022, 1:30 PM · MW-1.35-notes, MW-1.39-notes (1.39.0-wmf.27; 2022-08-29), Platform Engineering (Icebox), MediaWiki-Maintenance-system

May 9 2022

Elli777 added a comment to T229092: Investigate migrateActors script failing due to duplicate empty actor_name.

Thanks. Unfortunately this does not solve the problem either. I found the problematic table 'XXXlogging' and did the following :

May 9 2022, 12:38 PM · MW-1.35-notes, MW-1.39-notes (1.39.0-wmf.27; 2022-08-29), Platform Engineering (Icebox), MediaWiki-Maintenance-system

May 6 2022

Elli777 added a comment to T229092: Investigate migrateActors script failing due to duplicate empty actor_name.

Thanks, but for me this does not solve the issue. I update the XXXactor table to update the empty actor_id with an 'unknown' value:
update XXXactor set actor_name='unknown' where actor_id=227;

but on the next time I run update.php, it tries to insert it again with different id... It seems like a logical problem in the update process. Can someone please help because this is quite critical?

The update must be done on the individual tables where user_name is present, but not on the actor table. The actor table is populated with the contents of all the other tables.

User names that contain a ">" character (which is invalid for a user name), are treated as "external" users. That's how imports (Special:Import) are handled. The contents before the > is the wiki name (usually an interwiki prefix, but it can be a random string like "unknown" for example) and the contents after the > is the actual user name. Since those users are externals, they won't get a user id and the script should just insert a new entry for each unique external user.

This is an example of script for the revision table to update all users with empty name:

update revision set rev_user_text = 'unknown>unknown' where rev_user_text = '';

Another script for the revision table, to update users that don't have a matching user id

update revision set rev_user_text = concat('unknown>', rev_user_text), rev_user = 0 where rev_user > 0 and not exists (select * from user where user_id = rev_user);

I think this should cover most cases. Of course, that should be adapted for each table with user and user_text columns where the problem exists.

May 6 2022, 2:07 PM · MW-1.35-notes, MW-1.39-notes (1.39.0-wmf.27; 2022-08-29), Platform Engineering (Icebox), MediaWiki-Maintenance-system
Elli777 added a comment to T229092: Investigate migrateActors script failing due to duplicate empty actor_name.

The logical fix in all situations would be to update all rows with an empty user_name, or with an xx_user_id equal to 0, or non-existing xx_user_id in the user table, setting an "external" xx_user_name like "unknown>unknown" and a xx_user_id = 0.

May 6 2022, 1:38 PM · MW-1.35-notes, MW-1.39-notes (1.39.0-wmf.27; 2022-08-29), Platform Engineering (Icebox), MediaWiki-Maintenance-system

May 3 2022

Elli777 added a comment to T229092: Investigate migrateActors script failing due to duplicate empty actor_name.

Hi,
Is there any update on this? I'm experiencing same issue after upgrade from 1.27 to 1.37. Some of the wikis work, but one of them does not. I tried deleting the row with the empty "actor_name" to no avail:

May 3 2022, 12:43 PM · MW-1.35-notes, MW-1.39-notes (1.39.0-wmf.27; 2022-08-29), Platform Engineering (Icebox), MediaWiki-Maintenance-system