Manage Caches interface is blank

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

Problem

When viewing the Repository caches in Administration >> Overview >> Repository settings, the Manage Caches page returns blank and the following appears in the atlassian-bamboo.log:

2017-06-22 10:09:19,358 ERROR [http-8085-exec-11] [runtime] Error executing FreeMarker template
FreeMarker template error:
An error has occurred when reading existing sub-variable "cacheDescriptions"; see cause exception! The type of the containing value was: extended_hash+string (com.atlassian.bamboo.plugins.git.GitRepository wrapped into f.e.b.StringModel)

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #list cacheProvider.cacheDescriptions...  [in template "admin/repositorySettings.ftl" in macro "manageCachesTab" at line 78, column 17]
	- Reached through: @ww.form action="repositorySettingsDe...  [in template "admin/repositorySettings.ftl" in macro "manageCachesTab" at line 39, column 9]
	- Reached through: @manageCachesTab  [in template "admin/repositorySettings.ftl" at line 19, column 9]
	~ Reached through: #nested  [in template "lib/dojo.ftl" in macro "contentPane" at line 98, column 5]
	~ Reached through: @dj.contentPane labelKey="manageCache...  [in template "admin/repositorySettings.ftl" at line 18, column 5]
	~ Reached through: #nested  [in template "lib/dojo.ftl" in macro "tabContainer" at line 66, column 5]
	~ Reached through: @dj.tabContainer headingKeys=["manage...  [in template "admin/repositorySettings.ftl" at line 17, column 1]
----

Java stack trace (for programmers):
----
freemarker.core._TemplateModelException: [... Exception message was already printed; see it above ...]
...
Caused by: java.lang.reflect.InvocationTargetException
...
Caused by: io.atlassian.util.concurrent.LazyReference$InitializationException: java.util.NoSuchElementException: 'repository.bitbucket.git.useRemoteAgentCache' doesn't map to an existing object
...
Caused by: java.util.NoSuchElementException: 'repository.bitbucket.git.useRemoteAgentCache' doesn't map to an existing object

Diagnosis

Environment

  • Git repository hosted on Bitbucket Cloud
  • Recently upgraded to Bamboo 5.15.0.1 or higher

Diagnostic Steps

  • Please run the following SQL query to see if your database is missing the parameter repository.bitbucket.git.useRemoteAgentCache:

    SELECT * FROM vcs_location 
    WHERE plugin_key LIKE '%bbCloud' 
    AND XML_DEFINITION_DATA NOT LIKE '%repository.bitbucket.git.useRemoteAgentCache%'
    AND XML_DEFINITION_DATA NOT LIKE '%HG%';
  • If the XML_DEFINITION_DATA is not only the string <repository/>, these suggest these are the cause of the blank page.

Cause

The repository.bitbucket.git.useRemoteAgentCache parameter is required by the Freemarker template that generates the data for that page. 

Resolution

Please save the configuration of each repository that you found in the Diagnostic step. This will update the configuration to add the missing parameter

 

Last modified on Jul 17, 2017

Was this helpful?

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