Upgrade the Demo Package
Last modified by Eleni Cojocariu on 2026/08/13 15:14
Steps
To upgrade an XWiki instance installed from the standalone (demo) distribution, install the new version beside the old one and move your data across:
- Back up the configuration files, the permanent data (the /data directory, which already contains the HSQLDB database) and, optionally, the log files.
- Check the Release Notes of every version between the one you are running and the one you are upgrading to, in particular the sections named
"Issues specific to XWiki <version>"and any change to the prerequisites. - Download the new version as you did when installing the distribution.
- Stop the XWiki instance, to prevent file corruption and database inconsistencies.
- Install the new version in a different directory, keeping both installations.
- Keep the new configuration files when you never customized the old ones, and otherwise merge the old files into the new ones instead of copying them over, since the new version may have added options.
- Copy the data directory from the old instance to the new one.
- Check that migrations are enabled, as described in Database Upgrade.
- Start the new instance.
- Upgrade the flavor from a browser, which the Distribution Wizard offers as soon as you log in.
The new instance then serves the content of the old one, which stays untouched in its own directory until you remove it.
FAQ
How to do the merge of the files on Unix operating systems?
If you are using a Unix system, some commands help you do the merge instead of doing it fully manually.
What if the migration of the database fails?
If the migration process fails, drop the DATABASECHANGELOG and DATABASECHANGELOGLOCK tables from your database and then restart the migration. This should allow the migration to proceed without further issues.
More
To find more about the current topic, you can search or use the table below and filter the columns to narrow your choices.