Error viewing migrated space
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
You recently upgraded Confluence and are now encountering a stack trace when accessing any page in a given space. Accessing other spaces works as expected.
The following appears in the onscreen stack trace:
caused by: java.lang.RuntimeException: Error rendering template for decorator sharedcomments
at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:186)
caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/decorators/components/sharedcomments.vmd'
at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.loadResource(ConfigurableResourceManager.java:401)
Stack Trace:[hide]
java.lang.RuntimeException: Error rendering template for decorator root
at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:186)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.apache.velocity.Template.merge(Template.java:328)
at org.apache.velocity.Template.merge(Template.java:235)
...
Caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/decorators/components/<something>.vmd'
Cause
The space(s) in question were created using an older template. Some of the content of these legacy templates are no longer available.
Workaround
- Navigate to
<confluence-base_url>/spaces/choosetheme.action?key=<space_key>
- This should present an interface for accessing the properties assigned to the given space
- Click the
Themes
tab - Select "Default" (this will remove the custom theme and allow the space to render normally)