Details
-
Bug
-
Resolution: Fixed
-
Medium
-
5.9.5
-
15
-
Severity 2 - Major
-
Description
Summary
Confluence that are deployed on SunOS have the potential to encounter this issue after they upgrade to Confluence 5.9 and above.
After the upgrade, the JIRA macro will not be able to render as per the screenshot attached below :
You can also see the following error thrown in the logs :
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy
In addition to that you will also see the following error in the logs :
[xhtml.view.macro.ViewMacroMarshaller] marshalInternal Error rendering macro: jira java.lang.UnsatisfiedLinkError: /app/atlassian/confluence/atlassian-confluence-5.9.3/temp/snappy-unknown-c8836370-8f1e-45b8-88dd-418fac2dc69d-libsnappyjava.so: ld.so.1: java: fatal: libstdc++.so.6: open failed: No such file or directory
the possible root-cause for this issue could be that the newer version of the confluence-jira-plugin is utilizing the snappy library but the older version of the plugin does not. We are still not able to know why SunOS does not load the library properly in this case.
Workaround 1
- Shut down Confluence
- Search for libstdc++.so.6 by running the following command to find the library :
cd / find usr | grep libstdc++.so
- Add the following parameters in setenv.sh or setenv.bat depending on whether you are using Windows or Linux based system :
LD_LIBRARY_PATH=$LD_LIBRARY_PATH":/usr/sfw/lib/amd64:/usr/sfw/lib" export LD_LIBRARY_PATH
Please note that your path might vary, please refer to the path output in step 2 and change the path accordingly.
- Start Confluence
Workaround 2
- Upgrade to Confluence 5.10
- Stop your confluence
- Download this plugin confluence-jira-plugin-6.0.7.jar
- Go to <CONFLUENCE_INSTALL>\confluence\WEB-INF\atlassian-bundled-plugins folder
- Remove the confluence-jira-plugin-x.x.x.jar from the folder
- Put the new downloaded jar into the directory
- Clear plugin cache
- Restart the Confluence