Обсуждение участника:Edward Chernenko/MediaWikiDumper
Issues with images and users[править]
Great tools, but I’m having a few problems. It copies over using text.pl well enough, and seems to work great with most images. However, not all of the images from the wiki seem to copied over for me. It knows they’re there, but it won’t display the actual image. Any ideas? Also, how exactly does the script work to reserve user accounts? Following the instructions in README I got it to reserve all of the user accounts, but I’m unable to log in again. I tried setting that cron task, but what does it actually do? Any help would be appreciated, TIA, and I’ll do all I can to help too. 81.141.71.10 20:18, 23 июня 2011 (UTC)
- Hi.
- 1. Most likely a error occured when downloading some images (e.g. HTTP timeout). Run 'download-images.pl' again, it’ll download everything that hasn’t been downloaded yet.
- 2. 'user.pl' creates user accounts with blank passwords (noone can log in until the password is restored).
- 3. 'givepassword.pl' is one of the ways to restore a password, if you’re copying a wiki from Wikia (won’t work for other sites). Let’s assume you have a bot account on Wikia associated with gmail.com mailbox. When Wikia user sends a letter (via Special:Emailuser/Your_Bot on Wikia) to your bot, givepassword.pl reads this letter, generates a new password for this user and sends it back (via Emailuser on Wikia too).
If your old wiki was not on Wikia, there’s another way. Restore your own admin account by running
php maintenance/changePassword.php --user YourName --password 123456
Install Extension:User Merge and Delete. When other user needs to restore the password:
- This user should register a new account on your new wiki, e.g. MyNewAccount with password MyNewSuperPassword
- He should ask you to restore his account (proving that he was MyOldAccount before)
- You merge MyOldAccount into MyNewAccount, then rename User:MyNewAccount into User:MyOldAccount.
After that your user will be able to log in using MyOldAccount as username and MyNewSuperPassword as a password.
— Edward Chernenko? 21:00, 23 июня 2011 (UTC)
- Much thanks! I will try this ASAP. 81.141.65.91 20:01, 24 июня 2011 (UTC)
Hm, I'm still having trouble with restoring passwords. Can you tell me if I've got this right? User sends message via Special:Emailuser to bot on source wiki, and then receives new password via their email for the new wiki. Is that right? I've tried it a few times, with no success. 81.141.71.92 16:13, 26 июня 2011 (UTC)
- Use the second way (via changePassword.php and UserMerge). — Edward Chernenko? 17:46, 26 июня 2011 (UTC)
- We'd prefer to have an automated system so that it's easier to transfer all users quickly and resume editing. Are you sure there's no way to get givepassword.pl method to work correctly? 86.175.139.41 21:28, 26 июня 2011 (UTC)
- I'm sorry. givepassword.pl depends highly on both Wikia Emailuser and Gmail, and there is a number of things that can go wrong with it. Last time it was tested in January, and Wikia interface changed more than once since that time. As far as I'm concerned, now it may be not operational at all. — Edward Chernenko? 08:32, 27 июня 2011 (UTC)
- However, the second way is guaranteed to work. Please NOTE: users may resume editing before restoring their previous accounts. When you join (via UserMerge) old and new accounts together, all of their new edits will be merged in Special:Contributions. — Edward Chernenko? 08:32, 27 июня 2011 (UTC)
- Okay, thanks anyway. I managed to get all the images moving. Once I've worked out a method for transferring user accounts I'll use this tool to transfer the entire wiki. 81.141.65.25 19:42, 27 июня 2011 (UTC)
- We'd prefer to have an automated system so that it's easier to transfer all users quickly and resume editing. Are you sure there's no way to get givepassword.pl method to work correctly? 86.175.139.41 21:28, 26 июня 2011 (UTC)
File too large to import?[править]
I get an error when importing the text.txt file, which is 1.3GB in size, with error code 25, apparently meaning that it’s too large to import, even though we have plenty of free space on the server. Do you know how I could work around this? TIA. 86.175.139.73 18:38, 8 сентября 2011 (UTC)
- I’ve tested this with MySQL only. Do you use another DB? (sqlite, postgre?) There's no "error 25" in MySQL (it uses 4-digits error codes). With MySQL, I’ve imported 2Gb text.txt without any problems. — Edward Chernenko? 18:57, 8 сентября 2011 (UTC)