-
Bug
-
Resolution: Unresolved
-
Medium
-
5.7.4, 5.8.18, 5.9.8, 9.1.1
-
55
-
Severity 3 - Minor
-
33
-
Issue Summary
The recent fix in Confluence 5.7.4 ( ) means that on each restart following a plugin update/upgrade/install, Confluence attempts to re-migrate all our "unmigrated" pages (1,800 pages and their attachments) because we have some unknown macros in those pages. These pages seem to get re-migrated again if we update any plugin, enable/re-enable plugins followed by a restart.CONF-35004
This is polluting the change history of the pages because it adds another version on each page. It also appears that the attachments on those pages are getting re-indexed.
I understand the fix may have been intentional but it's having some bad side-effects.
Also related:
Steps to Reproduce
- Set up a 8.5.20 instance.
- Install a third party plugin such as the Content Formatting for Confluence plugin version 7.2.4.
- Identify an affected page with a section of Wiki Markup.
- Upgrade the third party plugin (for example, Mosaic (new owner) version 8.10.0).
- Upgrade Confluence 8.5.20 to 9.2.1
- Restart the instance.
Expected Results
No unexpected messages displayed in the UI or application logs and no new, unnecessary versions created.
Actual Results
See notes below.
Notes on re-opening the bug
When this issue occurs, one or two symptoms will be present:
- First, Confluence will display a Migration of unmigrated content due to installation of a new plugin message for an affected page within the All updates landing page.
- Second, the following message may appear in the application logs once directly during the first startup of Confluence after an upgrade of the instance. Here's an example:
2025-03-27 10:59:07,358 INFO [macro-migration:thread-1] [render.xhtml.migration.ErrorReportingV2Renderer] render Unable to render content on page BIN:My Test\nWrapping content in unmigrated wiki markup macro due to system error: index -1, length 0
Workaround
A workaround has been added to the description of related ticket CONF-32837, which provides a method via SQL to disable the remigration job on restarts. As with all database manipulation tasks, please be sure to test this on a non-Production environment first.
In the release of 5.10.8, a system variable is added to turn off the remigration behavior during startup. To use this feature:
- Open CONF_INSTALL_FOLDER/bin/setenv.sh (setenv.bat or service under Windows)
- Locate "CATALINA_OPTS" and add the below line to the file:
CATALINA_OPTS="-Dconfluence.startup.remigration.disable=true ${CATALINA_OPTS}" - Save the file and restart Tomcat.
This workaround has been verified to work for Confluence 9.x and would need to be present in the setenv file prior to the first restart of Confluence after an upgrade.
- is related to
-
CONFSERVER-32318 Macro Migration Service is Automatically Set to True After Upgrade
-
- Closed
-
-
CONFSERVER-35185 Page containing an unknown macro is counted as unmigrated content
-
- Closed
-
-
CONFSERVER-32837 Make the Macro remigration job configurable
- Gathering Interest
- mentioned in
-
Page No Confluence page found with the given URL.
-
Page No Confluence page found with the given URL.
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
Form Name |
---|
Hello All,
This issue has been both reported and confirmed on a recent version of Confluence and therefore has been subsequently re-opened. It will be monitored for further activity and continue to be reviewed in accordance to our Bugfix Policy. Please note the workaround provided above in the meantime if this issue is run into.