[MediaWiki-l] MCR Migration issue

classic Classic list List threaded Threaded
3 messages Options
eQT
Reply | Threaded
Open this post in threaded view
|

[MediaWiki-l] MCR Migration issue

eQT
Trying to run update.php on an old 1.15.1 mediawiki (to 1.32.3)

Getting
'Content model must be stored in the database for multi content revision
migration'

Any ideas how to fix?

Thanks,
~ Greg

******************* Details ************************
...uploadstash table already exists.
...user_former_groups table already exists.
...have rev_sha1 field in revision table.
...batch conversion of user_options: [ec6437cd046faa26dac0f3cd] [no req]
  MWException from line 259 of
/opt/mediawiki/1.32.3/includes/Revision/RevisionSt
ore.php: Content model must be stored in the database for multi content
revision migration.
Backtrace:
#0 /opt/mediawiki/1.32.3/includes/Revision/RevisionStoreFactory.php(133):
MediaWiki\Revision\RevisionStore->setContentHandlerUseDB(boolean)
#1 /opt/mediawiki/1.32.3/includes/ServiceWiring.php(429):
MediaWiki\Revision\RevisionStoreFactory->getRevisionStore()
#2 /opt/mediawiki/1.32.3/includes/services/ServiceContainer.php(430):
MediaWiki\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)
#3 /opt/mediawiki/1.32.3/includes/services/ServiceContainer.php(414):
MediaWiki\Services\ServiceContainer->createService(string)
#4 /opt/mediawiki/1.32.3/includes/MediaWikiServices.php(774):
MediaWiki\Services\ServiceContainer->getService(string)
#5 /opt/mediawiki/1.32.3/includes/ServiceWiring.php(418):
MediaWiki\MediaWikiServices->getRevisionStore()
#6 /opt/mediawiki/1.32.3/includes/services/ServiceContainer.php(430):
MediaWiki\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)
#7 /opt/mediawiki/1.32.3/includes/services/ServiceContainer.php(414):
MediaWiki\Services\ServiceContainer->createService(string)
#8 /opt/mediawiki/1.32.3/includes/MediaWikiServices.php(758):
MediaWiki\Services\ServiceContainer->getService(string)
#9 /opt/mediawiki/1.32.3/includes/Revision.php(72):
MediaWiki\MediaWikiServices->getRevisionLookup()
#10 /opt/mediawiki/1.32.3/includes/Revision.php(134):
Revision::getRevisionLookup()
#11
/opt/mediawiki/1.32.3/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(136):
Revision::newFromTitle(Title)
#12
/opt/mediawiki/1.32.3/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(105):
MediaWikiGadgetsDefinitionRepo->fetchStructuredList()
#13
/opt/mediawiki/1.32.3/includes/libs/objectcache/WANObjectCache.php(1277):
MediaWikiGadgetsDefinitionRepo->{closure}(boolean, integer, array, NULL)
#14
/opt/mediawiki/1.32.3/includes/libs/objectcache/WANObjectCache.php(1150):
WANObjectCache->doGetWithSetCallback(string, integer, Closure, array)
#15
/opt/mediawiki/1.32.3/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(112):
WANObjectCache->getWithSetCallback(string, integer, Closure
, array)
#16
/opt/mediawiki/1.32.3/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(31):
MediaWikiGadgetsDefinitionRepo->loadGadgets()
#17 /opt/mediawiki/1.32.3/extensions/Gadgets/includes/GadgetRepo.php(71):
MediaWikiGadgetsDefinitionRepo->getGadgetIds()
#18 /opt/mediawiki/1.32.3/extensions/Gadgets/includes/GadgetHooks.php(47):
GadgetRepo->getStructuredList()
#19 /opt/mediawiki/1.32.3/includes/Hooks.php(174):
GadgetHooks::userGetDefaultOptions(array)
#20 /opt/mediawiki/1.32.3/includes/Hooks.php(202): Hooks::callHook(string,
array, array, NULL)
#21 /opt/mediawiki/1.32.3/includes/user/User.php(1807): Hooks::run(string,
array)
#22 /opt/mediawiki/1.32.3/includes/user/User.php(1819):
User::getDefaultOptions()
#23 /opt/mediawiki/1.32.3/maintenance/convertUserOptions.php(96):
User::getDefaultOption(string)
#24 /opt/mediawiki/1.32.3/maintenance/convertUserOptions.php(67):
ConvertUserOptions->convertOptionBatch(Wikimedia\Rdbms\ResultWrapper,
Wikimedia\Rdbms\Da
tabaseMysqli)
#25 /opt/mediawiki/1.32.3/includes/installer/DatabaseUpdater.php(1189):
ConvertUserOptions->execute()
#26 /opt/mediawiki/1.32.3/includes/installer/DatabaseUpdater.php(485):
DatabaseUpdater->doMigrateUserOptions()
#27 /opt/mediawiki/1.32.3/includes/installer/DatabaseUpdater.php(449):
DatabaseUpdater->runUpdates(array, boolean)
#28 /opt/mediawiki/1.32.3/maintenance/update.php(203):
DatabaseUpdater->doUpdates(array)
#29 /opt/mediawiki/1.32.3/maintenance/doMaintenance.php(94):
UpdateMediaWiki->execute()
#30 /opt/mediawiki/1.32.3/maintenance/update.php(248): require_once(string)
#31 /opt/mediawiki/mediawikifarm/bin/mwscript.php(28): require(string)
#32 {main}


eQuality Technology

*Let's work together*

https://equality-tech.com
follow us: https://twitter.com/eQualityTech
*creators of https://QualityBox.us <https://QualityBox.us> *
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: MCR Migration issue

John Doe-27
When upgrading from such an old version it is recommended to upgrade in
steps. IE to 1.20 then 1.25,1.30 and then to the current version

On Fri, Aug 30, 2019 at 2:48 PM eQuality Technology <[hidden email]>
wrote:

> Trying to run update.php on an old 1.15.1 mediawiki (to 1.32.3)
>
> Getting
> 'Content model must be stored in the database for multi content revision
> migration'
>
> Any ideas how to fix?
>
> Thanks,
> ~ Greg
>
> ******************* Details ************************
> ...uploadstash table already exists.
> ...user_former_groups table already exists.
> ...have rev_sha1 field in revision table.
> ...batch conversion of user_options: [ec6437cd046faa26dac0f3cd] [no req]
>   MWException from line 259 of
> /opt/mediawiki/1.32.3/includes/Revision/RevisionSt
> ore.php: Content model must be stored in the database for multi content
> revision migration.
> Backtrace:
> #0 /opt/mediawiki/1.32.3/includes/Revision/RevisionStoreFactory.php(133):
> MediaWiki\Revision\RevisionStore->setContentHandlerUseDB(boolean)
> #1 /opt/mediawiki/1.32.3/includes/ServiceWiring.php(429):
> MediaWiki\Revision\RevisionStoreFactory->getRevisionStore()
> #2 /opt/mediawiki/1.32.3/includes/services/ServiceContainer.php(430):
> MediaWiki\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)
> #3 /opt/mediawiki/1.32.3/includes/services/ServiceContainer.php(414):
> MediaWiki\Services\ServiceContainer->createService(string)
> #4 /opt/mediawiki/1.32.3/includes/MediaWikiServices.php(774):
> MediaWiki\Services\ServiceContainer->getService(string)
> #5 /opt/mediawiki/1.32.3/includes/ServiceWiring.php(418):
> MediaWiki\MediaWikiServices->getRevisionStore()
> #6 /opt/mediawiki/1.32.3/includes/services/ServiceContainer.php(430):
> MediaWiki\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)
> #7 /opt/mediawiki/1.32.3/includes/services/ServiceContainer.php(414):
> MediaWiki\Services\ServiceContainer->createService(string)
> #8 /opt/mediawiki/1.32.3/includes/MediaWikiServices.php(758):
> MediaWiki\Services\ServiceContainer->getService(string)
> #9 /opt/mediawiki/1.32.3/includes/Revision.php(72):
> MediaWiki\MediaWikiServices->getRevisionLookup()
> #10 /opt/mediawiki/1.32.3/includes/Revision.php(134):
> Revision::getRevisionLookup()
> #11
>
> /opt/mediawiki/1.32.3/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(136):
> Revision::newFromTitle(Title)
> #12
>
> /opt/mediawiki/1.32.3/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(105):
> MediaWikiGadgetsDefinitionRepo->fetchStructuredList()
> #13
> /opt/mediawiki/1.32.3/includes/libs/objectcache/WANObjectCache.php(1277):
> MediaWikiGadgetsDefinitionRepo->{closure}(boolean, integer, array, NULL)
> #14
> /opt/mediawiki/1.32.3/includes/libs/objectcache/WANObjectCache.php(1150):
> WANObjectCache->doGetWithSetCallback(string, integer, Closure, array)
> #15
>
> /opt/mediawiki/1.32.3/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(112):
> WANObjectCache->getWithSetCallback(string, integer, Closure
> , array)
> #16
>
> /opt/mediawiki/1.32.3/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(31):
> MediaWikiGadgetsDefinitionRepo->loadGadgets()
> #17 /opt/mediawiki/1.32.3/extensions/Gadgets/includes/GadgetRepo.php(71):
> MediaWikiGadgetsDefinitionRepo->getGadgetIds()
> #18 /opt/mediawiki/1.32.3/extensions/Gadgets/includes/GadgetHooks.php(47):
> GadgetRepo->getStructuredList()
> #19 /opt/mediawiki/1.32.3/includes/Hooks.php(174):
> GadgetHooks::userGetDefaultOptions(array)
> #20 /opt/mediawiki/1.32.3/includes/Hooks.php(202): Hooks::callHook(string,
> array, array, NULL)
> #21 /opt/mediawiki/1.32.3/includes/user/User.php(1807): Hooks::run(string,
> array)
> #22 /opt/mediawiki/1.32.3/includes/user/User.php(1819):
> User::getDefaultOptions()
> #23 /opt/mediawiki/1.32.3/maintenance/convertUserOptions.php(96):
> User::getDefaultOption(string)
> #24 /opt/mediawiki/1.32.3/maintenance/convertUserOptions.php(67):
> ConvertUserOptions->convertOptionBatch(Wikimedia\Rdbms\ResultWrapper,
> Wikimedia\Rdbms\Da
> tabaseMysqli)
> #25 /opt/mediawiki/1.32.3/includes/installer/DatabaseUpdater.php(1189):
> ConvertUserOptions->execute()
> #26 /opt/mediawiki/1.32.3/includes/installer/DatabaseUpdater.php(485):
> DatabaseUpdater->doMigrateUserOptions()
> #27 /opt/mediawiki/1.32.3/includes/installer/DatabaseUpdater.php(449):
> DatabaseUpdater->runUpdates(array, boolean)
> #28 /opt/mediawiki/1.32.3/maintenance/update.php(203):
> DatabaseUpdater->doUpdates(array)
> #29 /opt/mediawiki/1.32.3/maintenance/doMaintenance.php(94):
> UpdateMediaWiki->execute()
> #30 /opt/mediawiki/1.32.3/maintenance/update.php(248): require_once(string)
> #31 /opt/mediawiki/mediawikifarm/bin/mwscript.php(28): require(string)
> #32 {main}
>
>
> eQuality Technology
>
> *Let's work together*
>
> https://equality-tech.com
> follow us: https://twitter.com/eQualityTech
> *creators of https://QualityBox.us <https://QualityBox.us> *
> _______________________________________________
> MediaWiki-l mailing list
> To unsubscribe, go to:
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
eQT
Reply | Threaded
Open this post in threaded view
|

Re: MCR Migration issue

eQT
Thanks John,

I upgraded incrementally to 1.27.3 first, and it worked.  However, I don't
think that was the cause of my initial error. I had to disable a
LocalSettings.php file that included settings and extensions that were only
present in the target 1.32.3 version (I'm running a wiki farm).

Thanks,

Greg

eQuality Technology

*Let's work together*

https://equality-tech.com
follow us: https://twitter.com/eQualityTech
*creators of https://QualityBox.us <https://QualityBox.us> *


On Fri, Aug 30, 2019 at 2:51 PM John <[hidden email]> wrote:

> When upgrading from such an old version it is recommended to upgrade in
> steps. IE to 1.20 then 1.25,1.30 and then to the current version
>
> On Fri, Aug 30, 2019 at 2:48 PM eQuality Technology <
> [hidden email]>
> wrote:
>
> > Trying to run update.php on an old 1.15.1 mediawiki (to 1.32.3)
> >
> > Getting
> > 'Content model must be stored in the database for multi content revision
> > migration'
> >
> > Any ideas how to fix?
> >
> > Thanks,
> > ~ Greg
> >
> > ******************* Details ************************
> > ...uploadstash table already exists.
> > ...user_former_groups table already exists.
> > ...have rev_sha1 field in revision table.
> > ...batch conversion of user_options: [ec6437cd046faa26dac0f3cd] [no req]
> >   MWException from line 259 of
> > /opt/mediawiki/1.32.3/includes/Revision/RevisionSt
> > ore.php: Content model must be stored in the database for multi content
> > revision migration.
> > Backtrace:
> > #0 /opt/mediawiki/1.32.3/includes/Revision/RevisionStoreFactory.php(133):
> > MediaWiki\Revision\RevisionStore->setContentHandlerUseDB(boolean)
> > #1 /opt/mediawiki/1.32.3/includes/ServiceWiring.php(429):
> > MediaWiki\Revision\RevisionStoreFactory->getRevisionStore()
> > #2 /opt/mediawiki/1.32.3/includes/services/ServiceContainer.php(430):
> >
> MediaWiki\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)
> > #3 /opt/mediawiki/1.32.3/includes/services/ServiceContainer.php(414):
> > MediaWiki\Services\ServiceContainer->createService(string)
> > #4 /opt/mediawiki/1.32.3/includes/MediaWikiServices.php(774):
> > MediaWiki\Services\ServiceContainer->getService(string)
> > #5 /opt/mediawiki/1.32.3/includes/ServiceWiring.php(418):
> > MediaWiki\MediaWikiServices->getRevisionStore()
> > #6 /opt/mediawiki/1.32.3/includes/services/ServiceContainer.php(430):
> >
> MediaWiki\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)
> > #7 /opt/mediawiki/1.32.3/includes/services/ServiceContainer.php(414):
> > MediaWiki\Services\ServiceContainer->createService(string)
> > #8 /opt/mediawiki/1.32.3/includes/MediaWikiServices.php(758):
> > MediaWiki\Services\ServiceContainer->getService(string)
> > #9 /opt/mediawiki/1.32.3/includes/Revision.php(72):
> > MediaWiki\MediaWikiServices->getRevisionLookup()
> > #10 /opt/mediawiki/1.32.3/includes/Revision.php(134):
> > Revision::getRevisionLookup()
> > #11
> >
> >
> /opt/mediawiki/1.32.3/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(136):
> > Revision::newFromTitle(Title)
> > #12
> >
> >
> /opt/mediawiki/1.32.3/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(105):
> > MediaWikiGadgetsDefinitionRepo->fetchStructuredList()
> > #13
> > /opt/mediawiki/1.32.3/includes/libs/objectcache/WANObjectCache.php(1277):
> > MediaWikiGadgetsDefinitionRepo->{closure}(boolean, integer, array, NULL)
> > #14
> > /opt/mediawiki/1.32.3/includes/libs/objectcache/WANObjectCache.php(1150):
> > WANObjectCache->doGetWithSetCallback(string, integer, Closure, array)
> > #15
> >
> >
> /opt/mediawiki/1.32.3/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(112):
> > WANObjectCache->getWithSetCallback(string, integer, Closure
> > , array)
> > #16
> >
> >
> /opt/mediawiki/1.32.3/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(31):
> > MediaWikiGadgetsDefinitionRepo->loadGadgets()
> > #17 /opt/mediawiki/1.32.3/extensions/Gadgets/includes/GadgetRepo.php(71):
> > MediaWikiGadgetsDefinitionRepo->getGadgetIds()
> > #18
> /opt/mediawiki/1.32.3/extensions/Gadgets/includes/GadgetHooks.php(47):
> > GadgetRepo->getStructuredList()
> > #19 /opt/mediawiki/1.32.3/includes/Hooks.php(174):
> > GadgetHooks::userGetDefaultOptions(array)
> > #20 /opt/mediawiki/1.32.3/includes/Hooks.php(202):
> Hooks::callHook(string,
> > array, array, NULL)
> > #21 /opt/mediawiki/1.32.3/includes/user/User.php(1807):
> Hooks::run(string,
> > array)
> > #22 /opt/mediawiki/1.32.3/includes/user/User.php(1819):
> > User::getDefaultOptions()
> > #23 /opt/mediawiki/1.32.3/maintenance/convertUserOptions.php(96):
> > User::getDefaultOption(string)
> > #24 /opt/mediawiki/1.32.3/maintenance/convertUserOptions.php(67):
> > ConvertUserOptions->convertOptionBatch(Wikimedia\Rdbms\ResultWrapper,
> > Wikimedia\Rdbms\Da
> > tabaseMysqli)
> > #25 /opt/mediawiki/1.32.3/includes/installer/DatabaseUpdater.php(1189):
> > ConvertUserOptions->execute()
> > #26 /opt/mediawiki/1.32.3/includes/installer/DatabaseUpdater.php(485):
> > DatabaseUpdater->doMigrateUserOptions()
> > #27 /opt/mediawiki/1.32.3/includes/installer/DatabaseUpdater.php(449):
> > DatabaseUpdater->runUpdates(array, boolean)
> > #28 /opt/mediawiki/1.32.3/maintenance/update.php(203):
> > DatabaseUpdater->doUpdates(array)
> > #29 /opt/mediawiki/1.32.3/maintenance/doMaintenance.php(94):
> > UpdateMediaWiki->execute()
> > #30 /opt/mediawiki/1.32.3/maintenance/update.php(248):
> require_once(string)
> > #31 /opt/mediawiki/mediawikifarm/bin/mwscript.php(28): require(string)
> > #32 {main}
> >
> >
> > eQuality Technology
> >
> > *Let's work together*
> >
> > https://equality-tech.com
> > follow us: https://twitter.com/eQualityTech
> > *creators of https://QualityBox.us <https://QualityBox.us> *
> > _______________________________________________
> > MediaWiki-l mailing list
> > To unsubscribe, go to:
> > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> >
> _______________________________________________
> MediaWiki-l mailing list
> To unsubscribe, go to:
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l