Unable to compile Soy template in plugin module

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

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.

*Fisheye および Crucible は除く

要約

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

診断

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)]

原因

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.

ソリューション

  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.

      または

    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.

最終更新日: 2021 年 10 月 7 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.