Tuleap Community Edition development and releases are no longer public. You have until September 30th to download packages and sources in Tuleap project. You can contact the team if you need further assistance.

    •  
      request #39753 Mediawiki migration fails
    Infos
    #39753
    Aurélien Tisné (atisne)
    2025-02-03 16:46
    2024-10-08 14:51
    41492
    Details
    Mediawiki migration fails

    I would like to migrate a legacy MediaWiki to a standalone MediaWiki.

    The migration fails. See the attached stack trace.

    Steps to reproduce:

    • Create a new project
    • Enable the MediaWiki plugin (legacy)
    • Create some pages
    • As a site admin, go to 'Plugins > MediaWiki Standalone' and click on 'Start migration'
    • On the project, when clicking on the Mediawiki menu in left menu bar, we can see "Quelque chose s'est mal passé. La construction du MediaWiki de Test MW standalone a échoué"
    • The project is now flagued "Migration failed" in the site admin interface

    I can create a standalone Mediawiki on a fresh project.

    I currently use Tuleap 15.9 on AlmaLInux.

    Mediawiki Standalone
    All
    EL9 (RockyLinux|AlmaLinux|RHEL)
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2025-02-03
    Attachments
    References
    Referenced by request #39753

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2025-01-24 15:07

    @atisne sorry for the delay, I confirm the issue.

    If you need to workaround it: in /etc/tuleap/plugins/mediawiki_standalone/LocalSettings.php transforms

    wfLoadSkin( 'MinervaNeue' );
    wfLoadSkin( 'MonoBook' );
    wfLoadSkin( 'Timeless' );
    wfLoadSkin( 'TuleapSkin' );
    wfLoadSkin( 'Vector' );
    

    into

    /*wfLoadSkin( 'MinervaNeue' );
    wfLoadSkin( 'MonoBook' );
    wfLoadSkin( 'Timeless' );
    wfLoadSkin( 'TuleapSkin' );*/
    wfLoadSkin( 'Vector' );
    

    and then re-trigger the migration for failed project with tuleap worker:enqueue tuleap.mediawiki-standalone.instance-migration '{"project_id":<project_id>,"language_code":"en"}' (replace <project_id> with the actual project ID).

    User avatar
    Thomas Gerbet (tgerbet)2025-01-24 14:52
    2024-10-08T12:06:04+02:00 [307314] [debug] PHP Fatal error:  Uncaught Exception: Unable to open file /usr/share/mediawiki-tuleap-flavor/1.35/skins/MinervaNeue/skin.json: filemtime(): stat failed for /usr/share/mediawiki-tuleap-flavor/1.35/skins/MinervaNeue/skin.json in /usr/share/mediawiki-tuleap-flavor/1.35/includes/registration/ExtensionRegistry.php:185
    Stack trace:
    #0 /usr/share/mediawiki-tuleap-flavor/1.35/includes/GlobalFunctions.php(88): ExtensionRegistry->queue()
    #1 /etc/tuleap/plugins/mediawiki_standalone/LocalSettings.php(128): wfLoadSkin()
    #2 /usr/share/mediawiki-tuleap-flavor/1.35/includes/Setup.php(143): require_once('...')
    #3 /usr/share/mediawiki-tuleap-flavor/1.35/maintenance/doMaintenance.php(91): require_once('...')
    #4 /usr/share/mediawiki-tuleap-flavor/1.35/extensions/TuleapWikiFarm/maintenance/migrateInstance.php(135): require_once('...')
    #5 {main}
      thrown in /usr/share/mediawiki-tuleap-flavor/1.35/includes/registration/ExtensionRegistry.php on line 185
    
    

    • Status changed from Acknowledged to Under implementation
    • Reported in version set to All
    User avatar
    Thomas Gerbet (tgerbet)2024-10-11 10:00

    Thanks for the report, I will take a look.


    • Status changed from New to Acknowledged
    • Assigned to changed from None to Thomas Gerbet (tgerbet)
    User avatar
    last edited by: Aurélien Tisné (atisne) 2024-10-08 14:55
    # ls /usr/share/mediawiki-tuleap-flavor/*/skins/
    /usr/share/mediawiki-tuleap-flavor/1.35/skins/:
    MonoBook  Timeless  TuleapSkin  Vector
    
    /usr/share/mediawiki-tuleap-flavor/current-lts/skins/:
    MinervaNeue  MonoBook  Timeless  TuleapSkin  Vector
    

    We can notice that the skin MinervaNeue is missing for 1.35.