UPM refuses to load and Page not found error shows up when accessing it in the UI
After upgrading Bamboo or a sudden restart, UPM becomes unavailable. ADD-ONS menu (Overview - > ADD-ONS) is missing some key items including: Find new add-ons, Manage add-ons, Purchased add-ons and Application Navigator. Accessing UPM in the browser shows a "Page not Found" error and following error might show up when accessing Bamboo:
2014-01-20 10:59:57,835 ERROR [http-bio-8085-exec-11] [BambooFreemarkerManagerSoyHelpers] Error while rendering soy template: navlinks.templates.appswitcher.switcher
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:124)
at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:52)
at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:45)
at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:38)
...
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalStateException: Required plugin module com.atlassian.plugins.atlassian-nav-links-plugin:rotp-menu was either missing or disabled
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2234)
....
at com.google.common.cache.LocalCache$LocalManualCache.getUnchecked(LocalCache.java:4834)
at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:105)
... 157 more
Caused by: java.lang.IllegalStateException: Required plugin module com.atlassian.plugins.atlassian-nav-links-plugin:rotp-menu was either missing or disabled
at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:110)
at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.access$200(WebResourceTemplateSetFactory.java:93)
....
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)
... 175 more
ADD-ONS menu with missing items:
Cause
Corruption in the files under <bamboo-home> directory, specifically the "bundled-plugins" folder seems to be root cause for this issue.
Workaround
- Stop Bamboo completely, run commands like "ps ax |grep amb" to make sure no frozen process is running in the background, if there are any stop them with "kill -9 (process id)".
- Navigate to your <bamboo-home> directory and move "jms-store", "temp", "caches", "bundled-plugins" to a location outside this directory.
- Refresh <bamboo-installation> directory and start Bamboo again.
- Also, make sure Java version is matching the version of Bamboo and JAVA_HOME is correctly configured to look into the JDK directory. Refer to: Supported platforms for more details.