Cannot configure Hipchat Plugin with 404 error
Platform Notice: Server, Data Center, and Cloud By Request - This article was written for the Atlassian server and data center platforms but may also be useful for Atlassian Cloud customers. If completing instructions in this article would help you, please contact Atlassian Support and mention it.
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
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
When configuring the built-in HipChat plugin, the following error is reported on screen:
The following appears in the atlassian-bitbucket.log file
2016-12-20 15:12:09,386 ERROR [http-nio-7990-exec-7] <Username> @1C2VL2Tx912x16413660x3 t9f8ii 10.10.123.32,127.0.0.1 "GET /plugins/servlet/repo-hipchat-settings/projects/GIO/repos/chef-repo HTTP/1.1" c.a.p.s.ServletModuleContainerServlet com.atlassian.soy.renderer.SoyException: Unable to compile Soy templates at: com.atlassian.stash.plugins.stash-hipchat-integration-plugin:soy-server-resources
javax.servlet.ServletException: com.atlassian.soy.renderer.SoyException: Unable to compile Soy templates at: com.atlassian.stash.plugins.stash-hipchat-integration-plugin:soy-server-resources
at com.atlassian.bitbucket.internal.hipchat.notification.configuration.web.HipChatRepoSettingsServlet.handleSoyError(HipChatRepoSettingsServlet.java:84) ~[na:na]
at com.atlassian.bitbucket.internal.hipchat.notification.configuration.web.HipChatRepoSettingsServlet.render(HipChatRepoSettingsServlet.java:100) ~[na:na]
at com.atlassian.bitbucket.internal.hipchat.notification.configuration.web.HipChatRepoSettingsServlet.doGet(HipChatRepoSettingsServlet.java:55) ~[na:na]
Caused by: com.atlassian.soy.renderer.SoyException: Unable to compile Soy templates at: com.atlassian.stash.plugins.stash-hipchat-integration-plugin:soy-server-resources
at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:135) ~[na:na]
at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:45) ~[na:na]
at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:39) ~[na:na]
Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalStateException: Required plugin module com.atlassian.plugins.base-hipchat-integration-plugin:soy-resources was either missing or disabled
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2203) ~[guava-18.0.jar:na]
at com.google.common.cache.LocalCache.get(LocalCache.java:3937) ~[guava-18.0.jar:na]
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941) ~[guava-18.0.jar:na]
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824) ~[guava-18.0.jar:na]
at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4830) ~[guava-18.0.jar:na]
at com.atlassian.soy.impl.WebResourceTemplateSetFactory.get(WebResourceTemplateSetFactory.java:60) ~[na:na]
at com.atlassian.soy.impl.DefaultSoyManager.strainTofu(DefaultSoyManager.java:196) ~[na:na]
at com.atlassian.soy.impl.DefaultSoyManager.access$100(DefaultSoyManager.java:32) ~[na:na]
at com.atlassian.soy.impl.DefaultSoyManager$1.load(DefaultSoyManager.java:65) ~[na:na]
at com.atlassian.soy.impl.DefaultSoyManager$1.load(DefaultSoyManager.java:62) ~[na:na]
Caused by: java.lang.IllegalStateException: Required plugin module com.atlassian.plugins.base-hipchat-integration-plugin:soy-resources was either missing or disabled
at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:91) ~[na:na]
at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:103) ~[na:na]
at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:95) ~[na:na]
at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.access$200(WebResourceTemplateSetFactory.java:78) ~[na:na]
at com.atlassian.soy.impl.WebResourceTemplateSetFactory.findRequiredTemplates(WebResourceTemplateSetFactory.java:72) ~[na:na]
at com.atlassian.soy.impl.WebResourceTemplateSetFactory.access$000(WebResourceTemplateSetFactory.java:33) ~[na:na]
at com.atlassian.soy.impl.WebResourceTemplateSetFactory$1.load(WebResourceTemplateSetFactory.java:50) ~[na:na]
at com.atlassian.soy.impl.WebResourceTemplateSetFactory$1.load(WebResourceTemplateSetFactory.java:47) ~[na:na]
Diagnosis
Diagnostic Steps
Check to ensure that all modules under the "Atlassian Hipchat Integration Plugin", are enabled:
1. Navigate to Administration > Add-ons > Manage Add-ons
2. Select Atlassian Hipchat Integration Plugin
3. Expand the modules enabled section and ensure all modules are enabled.
Cause
There was a problem loading this plugin and following appears under the installed system plugins:
Resolution
- Shut Bitbucket Server down.
- Backup and remove the following directories. They will be rebuilt when Bitbucket Server starts again.
$BITBUCKET_HOME/plugins/.bundled-plugins/
$BITBUCKET_HOME/plugins/.osgi-cache/
- Restart Bitbucket Server.
- Upon starting up, Bitbucket Server will re-extract the required plugins from <Bitbucket Server installation directory>/atlassian-bitbucket/WEB-INF/classes/bundled-plugins.zip and rebuild those plugin directories.