Unable to compile Soy template in plugin module

Still need help?

The Atlassian Community is here for you.

Ask the community

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

Summary

When accessing the Bamboo UI it may not render properly. The following error is displayed instead of the dashboard (it can appear in the logs as well):

com.atlassian.soy.renderer.SoyException: Unable to compile Soy templates at: com.atlassian.plugins.atlassian-nav-links-plugin:rotp-menu at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:162) at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2197) ... 190 more

Diagnosis

Check if the $BAMBOO_HOME/atlassian-bamboo.log files are indicating that plugins are disabled due to a timeout:

WARN [Timer-4] [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] timeout Timeout occurred before finding service dependencies for [NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.aui.plugin-integration-sal, config=osgibundle:/META-INF/spring/*.xml)]

Cause

Bamboo bundled plugin Shared Access Layer (SAL) is not being enabled due to a timeout during startup. This plugin is required to render Bamboo pages.

The cause of the shorter timeout being reached can vary but its commonly related to resource contention while Bamboo is bootstrapping or the plugin load being slowed down by something such as antivirus.

Solution

  1. Shutdown Bamboo.
  2. Add the JVM parameter:

    setenv.sh
    : ${JVM_SUPPORT_RECOMMENDED_ARGS:="-Datlassian.plugins.enable.wait=300"}
    1. In the installation folder of Bamboo edit either bin/setenv.bat (non Windows Service) or bin/setenv.sh file in a text editor.

      OR

    2. Edit Window Service Java Options. See Configuring your system properties for steps on how configure additional arguments for Bamboo running as a Windows service.
  3. Clean the cache by removing the files inside the directories below:

    $BAMBOO_HOME/caches/
    $BAMBOO_HOME/temp/

     This will remove cache files only. It will not permanently remove any plugins. These directories will be recreated during the next Bamboo startup.

  4. Start Bamboo.

Last modified on Oct 7, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.