WMUK wiki migration/tech

From Wikimedia UK
Jump to navigation Jump to search

This page gather technical details about the wiki migration. Please don't edit this page and put comments on the talk page.

New wiki is available at http://wiki.wikimedia.org.uk. At the end of the migration, http://www.wikimedia.org.uk and http://wikimedia.org.uk will also point to it. http://uk.wikimedia.org which is the current instance hosted at the WMF will be put in read only during the migration and kept online for a few months.

Notices

The notice must be configured at MediaWiki:Anonnotice and MediaWiki:Sitenotice by an administrator.

Pre-migration old wiki notice (From 09/09/2013 to 27/09/2013)

You are on Wikimedia UK's wiki, a website that is currently hosted by the Wikimedia Foundation. The hosting for this site will be migrated from the Foundation's datacenter to the Wikimedia UK's over the last week-end of September (28-29th September). It will not be possible to migrate non-public account information. This includes watch lists, account preferences, contact email, or current password for registered users. We will recreate 'stub-accounts' on the migrated site and will communicate to you your new password if you activate "Enable email from other users" in your user profile now! Want to know more?

Post-migration old wiki notice (From 28/09/2013 to 01/04/2014)

You are visiting an archived read-only version of Wikimedia UK's website. This wiki was formerly hosted by the Wikimedia Foundation before being migrated to Wikimedia UK's server hosting in September 2013. Following migration the site url changed from http://uk.wikimedia.org to http://wiki.wikimedia.org.uk and this is where the current, editable version of the site is available. We have recreated 'stub-accounts' on the migrated site. To receive your new password, please activate "Enable email from other users" in your user profile on this site and the password for your account on the new site will be emailed to you overnight. Want to know more?

Post-migration new wiki notice (27/09/2013 to 01/01/2014)

You are on Wikimedia UK's wiki, a website that was formerly hosted by the Wikimedia Foundation. The hosting for this site was migrated from the Foundation's datacenter to the Wikimedia UK's over the last week-end of September (28-29th September). It was not possible to migrate non-public account information. This included watch lists, account preferences, contact email, or current password for registered users. 'Stub-accounts' have been created for registered users on this migrated site and a new password was communicated to users who had have activated "Enable email from other users" in their user profiles prior to migration. If you did not receive your new password, please activate "Enable email from other users" in your old user profile and your new password will be sent to you over night! Want to know more?

Data migration

Mirror WMF dump
mirrorWmfDumps.pl --projectCode=ukwikimedia --databaseName=wiki --installPath=/var/www/wiki/w/ --databaseUsername=foo
--databasePassword=bar --withPageLinks --withMetaPages --withExternalLinks --withHistory --withSiteStats --withLogging 
--withPageRestrictions --withUserGroups
Mirror images
mirrorImageFiles.pl --host=uk.wikimedia.org --path=w --directory=/var/www/wiki/w/
Re-create users
listAllUsers.pl --host=uk.wikimedia.org --path=w > users
cat users | createMediawikiUsers.pl --path=/var/www/wiki/w/ --database=wiki --databaseUsername=foo --databasePassword=bar > userpasswords

Trigger users

In addition to the notice, each user will get a message on it's talk page.

Message

The hosting for this site will be migrated from the Foundation's datacenter to the Wikimedia UK's over the last week-end of September (28-29th September). It will not be possible to migrate non-public account information. This includes watch lists, account preferences, contact email, or current password for registered users. We will recreate 'stub-accounts' on the migrated site and will communicate to you your new password if you activate "Enable email from other users" in your user profile now! Want to know more? ~~~~

script
cat users | leaveMessageOnTheTalkPage.pl --host=uk.wikimedia.org --path=w --username="WMUK Wiki Migration Team" --password=foobar

Email new password

Subject

Wikimedia UK's wiki migration notice

Message

Dear contributor

Since its creation, Wikimedia UK's wiki has been hosted by the Wikimedia Foundation. The hosting for this site was migrated from the Foundation's datacenter to the Wikimedia UK's over the last week-end of September (28-29th September). It was not possible to migrate non-public account information. This includes watch lists, account preferences, contact email, or current password for registered users.

We have recreated 'stub-accounts' on the migrated site and want to communicate to you your new password:

  • user: <accountname>
  • password: <accountpassword>

Please log in soon at possible: http://wiki.wikimedia.org.uk/w/index.php?title=Special:UserLogin

When you have logged in please change the default password to your personal preference and update your contact email

If you want to know more about this migration: https://wiki.wikimedia.org/wiki/WMUK_wiki_migration

Script (running each night after the migration day)
cat userpasswords | grep Kelson | ./sendNewPasswordToUsers.pl --username=foo --password=bar --host=uk.wikimedia.org --path=w --userCount=1 > userpasswords_next

Known issues

  • The import of logs was partial, only 600 entries out of 60k. (Seems solved now?) Yes check.svg Done Kelson (talk) 12:00, 29 September 2013 (UTC)
  • Special:Contributions is broken (doesn't list old contributions), probably because users were re-created on this wiki with different user_id. Yes check.svg Done Kelson (talk) 12:00, 29 September 2013 (UTC)
  • Special:Log has a fatal (blank page) when crossing this timestamp: [1] (while [2] works) Yes check.svg Done Kelson (talk) 19:23, 30 September 2013 (UTC)
  • Revision IDs change, so oldid/diff links are not compatible with those to the old wiki. Possible "solutions":
    • don't redirect old domain to the new,
    • use an apache redirect to send people accessing those IDs to a warning,
    • redirect to another domain where the old wiki is parked instead.
  • [enhancement] Upon login with the temporary password, user should be forced to change it.