Page MenuHomeMiraheze

Upgrade to MediaWiki 1.41
Closed, ResolvedPublic

Description

Upgrade process

Process

  • Ensure backups done
  • run changeMediaWikiVersion.php --regex to upgrade wikis by alphabetical database name MirahezeFunctions' version string was changed
  • Run SQL/scripts on wikis we are upgrading, database lists exist per version, wikis-1.41.json can be ran for SQL, or we can have it generate a seperate list per upgrade phase

SQL/scripts that will need run:

mwscript sql.php all /srv/mediawiki/1.41/extensions/AbuseFilter/db_patches/mysql/patch-add-af_actor.sql
mwscript sql.php all /srv/mediawiki/1.41/extensions/AbuseFilter/db_patches/mysql/patch-add-afh_actor.sql
mwscript sql.php all /srv/mediawiki-staging/1.41/extensions/CheckUser/schema/mysql/cu_useragent_clienthints.sql
mwscript sql.php all /srv/mediawiki-staging/1.41/extensions/CheckUser/schema/mysql/cu_useragent_clienthints_map.sql
mwscript sql.php all /srv/mediawiki-staging/1.41/extensions/AntiSpoof/sql/mysql/patch-change-spoofuser-binary.sql
mwscript sql.php extension --extension=pagetriage /srv/mediawiki/1.41/extensions/PageTriage/sql/mysql/patch_ptrp_tags_updated_nullable.sql
mwscript sql.php all /srv/mediawiki-staging/1.41/maintenance/archives/patch-externallinks-drop-el_to.sql
mwscript sql.php all /srv/mediawiki-staging/1.41/maintenance/archives/patch-externallinks-el_to_default.sql
mwscript sql.php all /srv/mediawiki-staging/1.41/maintenance/archives/patch-filearchive-fa_size_to_bigint.sql
mwscript sql.php all /srv/mediawiki-staging/1.41/maintenance/archives/patch-image-img_size_to_bigint.sql
mwscript sql.php all /srv/mediawiki-staging/1.41/maintenance/archives/patch-oldimage-oi_size_to_bigint.sql
mwscript sql.php all /srv/mediawiki-staging/1.41/maintenance/archives/patch-pagelinks-target_id.sql
mwscript sql.php all /srv/mediawiki-staging/1.41/maintenance/archives/patch-uploadstash-us_size_to_bigint.sql
mwscript sql.php all /srv/mediawiki-staging/1.41/maintenance/archives/patch-user-user_is_temp.sql

add to mw-config and apply
mwscript sql.php all /srv/mediawiki/1.41/extensions/LoginNotify/sql/mysql/tables-generated.sql

apply to mhglobal
/srv/mediawiki/1.41/extensions/OATHAuth/sql/mysql/tables-generated.sql

run on all wikis:

mwscript extensions/AbuseFilter/MigrateActorsAF.php all
mwscript extensions/OATHAuth/UpdateForMultipleDevicesSupport.php all -y
mwscript fixInconsistentRedirects.php all
Wikis volunteering for beta testing
  • mockupediawiki
  • nyctocosmwiki

Related Objects

Event Timeline

MacFan4000 created this task.

Execute: sudo -u www-data php /srv/mediawiki/w/maintenance/run.php /srv/mediawiki/w/maintenance/mergeMessageFileList.php --quiet --wiki=metawikibeta --extensions-dir=/srv/mediawiki/w/extensions:/srv/mediawiki/w/skins --output /srv/mediawiki/config/ExtensionMessageFiles.php
Extension RequestSSL in /srv/mediawiki/w/extensions lacks expected entry point: extension.json or skin.json (PHP entry points are no longer supported by this script).
Extension SocialProfile in /srv/mediawiki/w/extensions lacks expected entry point: extension.json or skin.json (PHP entry points are no longer supported by this script).
Extension Wikibase in /srv/mediawiki/w/extensions lacks expected entry point: extension.json or skin.json (PHP entry points are no longer supported by this script).
Extension /srv/mediawiki/w/extensions/Maps/extensions/Validator/Validator.php does not end with .json (PHP entry points are no longer supported by this script)
Extension /srv/mediawiki/w/extensions/Maps/vendor/mediawiki/parser-hooks/ParserHooks.php does not end with .json (PHP entry points are no longer supported by this script)
ExtensionDependencyError from line 460 of /srv/mediawiki/w/includes/registration/ExtensionRegistry.php: EmbedVideo is not compatible with the current PHP version 7.4.33), it requires: >=8.0.

#0 /srv/mediawiki/w/maintenance/mergeMessageFileList.php(195): ExtensionRegistry->readFromQueue(Array)
#1 /srv/mediawiki/w/maintenance/mergeMessageFileList.php(114): MergeMessageFileList->generateMessageFileList(Array)
#2 /srv/mediawiki/w/maintenance/includes/MaintenanceRunner.php(703): MergeMessageFileList->execute()
#3 /srv/mediawiki/w/maintenance/run.php(51): MediaWiki\Maintenance\MaintenanceRunner->run()
#4 {main}
Completed (256) in 3s!
Exiting due to non-zero status.

Execute: sudo -u www-data php /srv/mediawiki/w/maintenance/run.php /srv/mediawiki/w/maintenance/mergeMessageFileList.php --quiet --wiki=metawikibeta --extensions-dir=/srv/mediawiki/w/extensions:/srv/mediawiki/w/skins --output /srv/mediawiki/config/ExtensionMessageFiles.php
Extension RequestSSL in /srv/mediawiki/w/extensions lacks expected entry point: extension.json or skin.json (PHP entry points are no longer supported by this script).
Extension SocialProfile in /srv/mediawiki/w/extensions lacks expected entry point: extension.json or skin.json (PHP entry points are no longer supported by this script).
Extension Wikibase in /srv/mediawiki/w/extensions lacks expected entry point: extension.json or skin.json (PHP entry points are no longer supported by this script).
Extension /srv/mediawiki/w/extensions/Maps/extensions/Validator/Validator.php does not end with .json (PHP entry points are no longer supported by this script)
Extension /srv/mediawiki/w/extensions/Maps/vendor/mediawiki/parser-hooks/ParserHooks.php does not end with .json (PHP entry points are no longer supported by this script)
ExtensionDependencyError from line 460 of /srv/mediawiki/w/includes/registration/ExtensionRegistry.php: EmbedVideo is not compatible with the current PHP version 7.4.33), it requires: >=8.0.

#0 /srv/mediawiki/w/maintenance/mergeMessageFileList.php(195): ExtensionRegistry->readFromQueue(Array)
#1 /srv/mediawiki/w/maintenance/mergeMessageFileList.php(114): MergeMessageFileList->generateMessageFileList(Array)
#2 /srv/mediawiki/w/maintenance/includes/MaintenanceRunner.php(703): MergeMessageFileList->execute()
#3 /srv/mediawiki/w/maintenance/run.php(51): MediaWiki\Maintenance\MaintenanceRunner->run()
#4 {main}
Completed (256) in 3s!
Exiting due to non-zero status.

I'm getting around this by adding the old version of the script to MirahezeMagic.

beta is now on 1.41, my only word of advice is don't enable CommentStreams or RatePage right now, they completely break the wiki.

MacFan4000 moved this task from Bugs to Backlog on the MediaWiki board.
Universal_Omega raised the priority of this task from Low to High.
Universal_Omega moved this task from Backlog to Upgrade Blockers on the MediaWiki board.
Universal_Omega moved this task from Backlog to Short Term on the MediaWiki (SRE) board.
Universal_Omega subscribed.
Universal_Omega changed the task status from Open to In progress.Feb 5 2024, 19:07
Universal_Omega reassigned this task from Universal_Omega to Agent_Isai.

I am not able to handle this right now, passing over to @Agent_Isai

Agent_Isai updated the task description. (Show Details)

Upgraded to 1.41! That was mostly seamless, except for one particular login bug and the Anisa having a bug similar to Fluent.