Wiki source code of Distribution Wizard

Version 58.1 by Valdis Vitolins on 2014/07/17

Hide last authors
Sorin Burjan 1.1 1 {{box cssClass="floatinginfobox" title="**Contents**"}}
Marius Dumitru Florea 16.1 2 {{toc/}}
Sorin Burjan 1.1 3 {{/box}}
4
Marius Dumitru Florea 15.1 5 Starting with XWiki 4.2, the Distribution Wizard (also known as DW) was introduced as an experimental feature which helps users migrate their XWiki instances to newer versions without having to manually import the XAR (wiki pages) corresponding to their new version.
Sorin Burjan 1.1 6
Vincent Massol 50.1 7 XWiki's Distribution Wizard comes as an aid to ease the migration and installation of the desired user interface (UI, the default set of wiki pages) in your flavour. It works using XWiki's Extension Manager to automatically detect your XWiki version to search, resolve, download and install the UI corresponding to your version. It requires an internet connection in order to work.
Sorin Burjan 1.1 8
Marius Dumitru Florea 15.1 9 = Clean Install =
Sorin Burjan 1.1 10
Vincent Massol 50.1 11 After putting your XWiki WAR inside your Servlet Container (Tomcat, Jetty, etc.) you start XWiki. When XWiki is first accessed, it will trigger the Distribution Wizard. If the wizard fails to appear check the [[troubleshooting section>>||anchor="troubleshooting"]].
Sorin Burjan 1.1 12
Marius Dumitru Florea 15.1 13 == Welcome Step ==
Sorin Burjan 1.1 14
15 Upon first access, you will be greeted by the Distribution Wizard, offering you the 3 possible options:
Marius Dumitru Florea 15.1 16
Marius Dumitru Florea 36.1 17 * **Continue**: when choosing this option, you will move to the next step of the Distribution Wizard
18 * **Later**: DW will prompt you again after XWiki is restarted
19 * **Never**: Discards the DW and you will have to manually import the XAR
Sorin Burjan 1.1 20
Valdis Vitolins 57.1 21 {{image reference="dw-welcomeStep.png"/}}
Sorin Burjan 1.1 22
Marius Dumitru Florea 15.1 23 == User Interface ==
24
Sorin Burjan 1.1 25 The first step will check your XWiki version and will propose a version of the UI which is suited for your version.
26
Marius Dumitru Florea 15.1 27 * Click on **Install** to install the proposed UI. This will resolve the extensions that are going to be installed.(((
Valdis Vitolins 57.1 28 {{image reference="dw-uiStep.png"/}}
Marius Dumitru Florea 15.1 29 )))
30 * Click on the **Continue** button. This will start the actual installation of the previously resolved extensions.(((
Valdis Vitolins 57.1 31 {{image reference="dw-uiStep-installPlan.png"/}}
Marius Dumitru Florea 15.1 32 )))
33 * You will be prompted to insert credentials for the Administrator, which are **Admin/admin**.(((
Valdis Vitolins 57.1 34 {{image reference="dw-uiStep-login.png"/}}
Marius Dumitru Florea 15.1 35 )))
Sorin Burjan 1.1 36 * After the instalation is complete, you can click on the Continue button to proceed to the next step.
Marius Dumitru Florea 15.1 37 * Since this is a clean install, steps 2 and 3 are skipped.
Sorin Burjan 1.1 38
Thomas Mortagne 26.1 39 == Report step ==
40
Valdis Vitolins 57.1 41 {{info}}
42 Since 5.4
43 {{/info}}
Thomas Mortagne 28.1 44
Thomas Mortagne 26.1 45 The last step display all changes brought to the wiki.
46
47 {{image reference="dw-report.png"/}}
48
Marius Dumitru Florea 20.1 49 = Upgrade =
Sorin Burjan 1.1 50
51 Distribution Wizard also allows you to perform an upgrade without having to manually import the XAR file.
52
Marius Dumitru Florea 15.1 53 == User Interface ==
Sorin Burjan 1.1 54
Marius Dumitru Florea 41.1 55 * The Distribution Wizard detects that the UI version is not the latest and proposes to upgrade. Click on the **Upgrade** button. After the required dependencies are resolved, click **Continue** button to begin the actual installation of the new UI.(((
56 {{image reference="dw-uiStep-upgrade.png"/}}
Marius Dumitru Florea 15.1 57 )))
Valdis Vitolins 58.1 58 * During the instalation you might get merge conflicts. Althrough XWiki does automatically a 3 way merge, sometimes the merge might fail. Solve your conflict and click on(((
Valdis Vitolins 57.1 59 Continue**{{image reference="DW_Upgrade_4.png"/}}**
Marius Dumitru Florea 15.1 60 )))
Marius Dumitru Florea 20.1 61
Thomas Mortagne 28.1 62 == Wikis ==
Marius Dumitru Florea 20.1 63
Valdis Vitolins 57.1 64 {{info}}
65 Since 5.3
66 {{/info}}
Marius Dumitru Florea 20.1 67
Thomas Mortagne 28.1 68 Distribution Wizard list all the existing wikis with the recommended user interface version that needs to be installed in order to update the default set of wiki pages.
Marius Dumitru Florea 20.1 69
Valdis Vitolins 57.1 70 {{image reference="dw-wikisStep.png"/}}
Marius Dumitru Florea 23.1 71
Marius Dumitru Florea 20.1 72 == Extensions ==
Marius Dumitru Florea 23.1 73
Valdis Vitolins 57.1 74 {{image reference="dw-extensionsStep-checkForUpdates.png"/}}
Marius Dumitru Florea 24.1 75
Marius Dumitru Florea 53.1 76 In the last step you can upgrade the extensions that you may have installed on your wikis. If you are on a subwiki then you can only check for updates for the extensions installed on that subwiki. On the main wiki global administrators can choose between:
77
Marius Dumitru Florea 56.1 78 * computing the upgrade plan only for the main wiki + global namespace
Marius Dumitru Florea 53.1 79 * computing the upgrade plan for the entire farm (all wikis + global namespace)
80
Marius Dumitru Florea 56.1 81 The first option is suited when each wiki in the farm is managed by a different entity while the second option is suited when the farm is managed by a single entity. Obviously computing the upgrade plan for the entire farm takes longer (with the number of wikis) than computing the upgrade plan only for the main wiki.
Marius Dumitru Florea 53.1 82
Valdis Vitolins 57.1 83 {{image reference="dw-extensionsStep-computingUpgradePlan.png"/}}
Marius Dumitru Florea 53.1 84
85 After the upgrade plan is computed there are two categories of extensions listed, as you can see in the image below:
86
Marius Dumitru Florea 24.1 87 * invalid: they don't work with the current XWiki version so they must be upgraded
88 * outdated: they should work with the current XWiki version but there is a newer version available that probably has bug fixes, improvements or new features
89
Marius Dumitru Florea 56.1 90 Under each category, the extensions are sorted by their name, grouped by the namespace (wiki) where they are installed and paginated. In order to complete this step you have to upgrade the invalid extensions. Upgrading the outdated extensions is optional as you can do it later from the [[Extension Updater>>doc:extensions:Extension.Extension Manager Application||anchor="HExtensionUpdater"]] section in the administration.
Marius Dumitru Florea 24.1 91
Valdis Vitolins 57.1 92 {{image reference="dw-extensionsStep.png"/}}
Marius Dumitru Florea 49.1 93
94 = Upgrade with Repair =
95
96 In order to be able to do 3-way automatic merges, the Extension Manager, used by the Distribution Wizard, needs to know the user interface version (i.e. default set of wiki pages) that was previously installed. When this information is not available the Distribution Wizard asks the user. This can happen for instance when you upgrade from a very old XWiki version where the default set of wiki pages wasn't installed through the Extension Manager. First you need to tell the Distribution Wizard if you are performing an upgrade or not.
97
Valdis Vitolins 57.1 98 {{image reference="dw-uiStep-repair-upgradeQuestion.png"/}}
Marius Dumitru Florea 49.1 99
100 Then you need to select the previous version. You should find your version in the provided list. Otherwise you can click on the pencil icon to enter a different version.
101
Valdis Vitolins 57.1 102 {{image reference="dw-uiStep-repair-selectPreviousVersion.png"/}}
Marius Dumitru Florea 49.1 103
104 Once you select a version the Distribution Wizard shows you the extension id that corresponds to that version. Make sure it is the right id.
105
Valdis Vitolins 57.1 106 {{image reference="dw-uiStep-repair-suggestPreviousId.png"/}}
Marius Dumitru Florea 49.1 107
108 If it's not the right extension id then you should click on the pencil icon to change it.
109
Valdis Vitolins 57.1 110 {{image reference="dw-uiStep-repair-editPreviousId.png"/}}
Marius Dumitru Florea 49.1 111
112 Next you need to repair the previous UI extension. Just click on the Repair button.
113
Valdis Vitolins 57.1 114 {{image reference="dw-uiStep-repair.png"/}}
Marius Dumitru Florea 49.1 115
116 Finally you should be able to upgrade the default set of wiki pages like in a normal upgrade.
117
118 If you have multiple wikis, then the **Wikis** step will allow you to repair the user interface on each of the available wikis. The process is the same as for the main wiki, the one described above.
119
Valdis Vitolins 57.1 120 {{image reference="dw-wikisStep-repairPreviousUI.png"/}}
Vincent Massol 50.1 121
Vincent Massol 51.1 122 {{id name="troubleshooting"/}}
Valdis Vitolins 57.1 123
Vincent Massol 50.1 124 = Troubleshooting =
125
126 == The wizard fails to appear at startup ==
127
128 If you're doing a first time install and the Distribution Wizard doesn't appear it's probably because you've copied some directories from an existing install. Namely, the Distribution Wizard looks for status files located in your permanent directory (the ##environment.permanentDirectory## property in ##xwiki.properties##).
129
Valdis Vitolins 58.1 130 Thus you'll need to remove the ##.../jobs/status/distribution/status.xml## file located inside your permanent directory (##/var/lib/xwiki/...## for [[APT installation>>AdminGuide.InstallationViaAPT]] or ##/var/lib/tomcatX/webapps/...## for [[WAR installation>>AdminGuide.InstallationWAR]]).
Vincent Massol 50.1 131
132 Now, if you have done an upgrade of the XWiki WAR, you'll need to be logged with a user having Admin rights to see the Distribution Wizard appear.

Get Connected